TH1: mean depends on lower/upper limit of bins

When I try to display data in a 1D-histogram (say, values from 0 to 5), then the “mean” given in the statistics box depends on my histogram limits:

h = new TH1F(“x”,“x”,100,1,3); …
will display a different mean than
h = new TH1F(“x”,“x”,100,0,4); …

I assume that root only uses the values between the lower & upper limit to calculate the mean - how can I change that, in other words: How can I make root display the mean of the whole array, indepently of which part of it I display (and the same for the RMS etc.)?

Thanks in advance,

see : … tOverflows


in your program call