The detail of TH1::GetEntries()

When I try to use the getEntries() to get the entries of a histogram,I found there is a difference between getEntries() and Integral(). I have already known integral() cound return the whole p.d.f of the histogram but I dont know how the getEntries() works.By the way, what the real meaning of the entries of the histgram which obtained by divide().
Thank you.

Hi Lianzhou,

The GetEntries() returns the number of times you called Fill() (or SetBinContent() or the like). Without accounting for weights. The Integral(), on the other hand, is the sum of weights of all entries.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.