Aamer,
It doesn't work on subtracted histograms. I had to 'roll-my-own' to do that (though there might be something existing that does this that I just didn't find).
As I recall |root] does unbinned mean, so you get the same result regardless of binning. It's not clear what it does the case of subtracted histograms, but if the histograms is asymmetric the result can be wildly wrong.
-Art S.
A.E. Snyder, The Former Group C (TFC) \!c*p?/ SLAC Mail Stop #95 ((. .)) Box 4349 | Stanford, Ca, USA, 94309 '\|/` e-mail:snyder_at_slac.stanford.edu o phone:650-926-2701 _ http://www.slac.stanford.edu/~snyder BaBar FAX:707-313-0250 Collaboration & Fermi/GLAST
On Tue, 13 Sep 2011, Aamer Wali Rauf wrote:
> Hi,
> I have always assumed (and thus used) that the TH1::GetMean(1) method gives out the weighted mean value
> of the x-axis of the histogram. Visibly it looks to me that way but is it really so? Can someone
> comment on that please?
>
> Thanks in advance,
> Aamer
>
>
Received on Tue Sep 13 2011 - 21:50:42 CEST
This archive was generated by hypermail 2.2.0 : Tue Sep 13 2011 - 23:50:02 CEST