SetOptStat : Integral in histogram range

Dear expert,

I am sorry for this very simple question.
I would like drawing a TH1F with the OptStat, having the integral (or the entries number) in the corresponding x-range of the histogram, the mean value and the rms.

I used the option:
gStyle->SetOptStat(“imr”);

but I see the Entries number in the OptStat that is indipendent by the TH1F x-range.
How can I see the number of entries according to the x-range?

Thank you for any kind of help
Francesco

The “Entries” are always for the entire axis range.
The “Mean”, “Std Dev”, and “Integral” depend on the axis range.

1 Like

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