Re: [ROOT] GetBinEntries in a 2D histograms

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Nov 24 2004 - 08:38:11 MET


Hi Martin,

The TH1, TH2 classes do not store the bin entries in addition to the sum of
weights per bin. Use TProfile and TProfile2D instead.
Then you can use, eg TProfile2D::GetBinEntries

Rene Brun

Martin Simard wrote:
> 
> Hi Rooters,
> 
> is there a simple way to get the number of entries in each bin in a 2D
> histograms? GetBinContent gives the number of entries with weight.
> 
> Thanks
> Martin
> 
> msimard@slac.stanford.edu



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:10 MET