Hello,
Is there a way to figure out the number of entries in a bin of a histogram that has had its entries weighted? For example, is there a way to do something like:
TH1D *myHisto = new TH1D("myHisto","myHisto",5,0,5);
myHisto->Fill(1,0.2);
myHisto->Fill(1,0.23);
myHisto->Fill(1,0.9);
myHisto->FunctionThatReturnsNumberOfEntriesInBin(); // THIS IS WHAT I NEED
Is there something like FunctionThatReturnsNumberOfEntriesInBin() that would tell me that the bin containing 1 had 3 entries placed in it, even though the bin content is 0.2+0.23+0.9=1.33?
Thank you.