Getting GetSumOfWeights() from TTree

Hi

I would like to ask, if is possible to get the GetSumOfWeights() from a TTree, like one can do from a TH1.

Thanks

Alex