Number of entries in bins

Hi All,

I have a quick question. Is there a way to get the number of entries in a specific bin for a histogram? Something that does the following:

h1 is the histogram:

double n = h1->getBin(3)->getEntries();

Thanks,
Indigo

see class TProfile

Rene

Hi–

I would also like to get the number of entries in each bin of my histogram, to make sure that they are integer numbers. (I wish to use these histograms to build a TEfficiency object.)

How do I convert my TH1 into a TProfile (keeping the number of entries in each bin and the corresp. errors) so that I can use the TProfile::GetBinEntries method?

Thanks,
Andrew