Histo GetEntries for specific area


I would like to open a saved histo and get the files, but not for the whole range ie if XAxis is MET, with min=0 and max =800 how would I get the number of entries between 200 and 600?

Thanks in advance!


Assuming that you have filled your histogram with weights=1, you can use
TH1::Integral(int bin1, int bin2)