Binning w/o entering?

Is there a way to obtain the bin a value (‘x’) would go in if I did put in a particular histogram. Seems to be I used to do it, but can’t remember how and don’t see an obvious command in TH1.h or TH1F.h.

I want to use it to reject events for which the variable is in a highly spikey back ground bin and it seems like an easy way to do it is to look at the background histogram for whether or not x lands in a high background bin. The background is highly spikey – detector cracks – so I can’t just use some broad cuts. I need a look up table. I could I guess compute it ‘by hand’ from the binsizes and boundaries of the histogram, but I’d rather use the machinery that’s already there, if possible.


Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.