Re: Entries in TH2F

Rene Brun (Rene.Brun@cern.ch)
Fri, 11 Dec 1998 08:38:53 +0100


Norbert Danneberg wrote:
>
> Hi Rooters,
>
> how is the number of entries in two dimensional Histograms claculated ?
> When I book two different two-dimensional histos of TH2F, lets say
>
> TH2F* Track2DHist = new TH2F("Track2DHist",
> HistTitle,
> 70,-70,70,70,-70,70);
>
> TH2F* Track2DHist2 = new TH2F("Track2DHist2",
> HistTitle,
> 70,-3,3,70,-3,3);
>
> , they both contain the same number of entries although the
> distribution is gaussian and in the second case only a few should be
> left over.
>

This is the expected behaviour. The reported number of entries
via TH1::GetEntries correspond to the number of Fill calls
including underflows and overflows.

Rene Brun