Re: Entries in TH2F

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Dec 11 1998 - 08:38:53 MET


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



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:40 MET