TH1::GetBinContent returns the sum of weights for a given bin number. If you want to know both the number of entries per bin and the sum of weights, use a TProfile that you fill with profile->Fill(x,x,weight) Rene Brun kirti wrote: > > sorry for putting the wrong subject in my previous mail > > kirti wrote: > > > Hi, > > I have a simple question. > > If I define a 1D histogram say h1->Fill(x,weight), the how can I get > > the information of the "weights" of each individual bin back, just > > like I get the information of the Bin Content by GetBinContent? > > Thanks, > > Kirti. > > > > > > -- > ******************************************************************************** > The more exotic, the more abstract the knowledge, the more profound will be its consequences. > > Kirti Ranjan | Delhi University Group | MS 357, Fermilab | Batavia, ILLINOIS 60510, USA > Phone :630-840-3062 (Off) | 630-840-3449 (res) > ********************************************************************************
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:08 MET