**Next message:**Rene Brun: "Re: [ROOT] Mean calculation in TH1"**Previous message:**Andrei Kuznetsov: "[ROOT] Mean calculation in TH1"**In reply to:**Remi Mommsen: "[ROOT] Compile problem with 4.00/08d"**Next in thread:**Rene Brun: "Re: [ROOT] Mean calculation in TH1"**Reply:**Rene Brun: "Re: [ROOT] Mean calculation in TH1"**Messages sorted by:**[ date ] [ thread ] [ subject ] [ author ]

Hello, it looks like ROOT calculates fTsumwx (and hence Mean of a histogram) in TH1 incorrectly. But if you perform your_histogram->GetXaxis()->SetRange(a,b); after the filling (or "zoom" by hands) it works correctly. It looks likes in the first case it is not used the center of bin when fTsumwx is calculated. Best regards, Andrei.

**Next message:**Rene Brun: "Re: [ROOT] Mean calculation in TH1"**Previous message:**Andrei Kuznetsov: "[ROOT] Mean calculation in TH1"**In reply to:**Remi Mommsen: "[ROOT] Compile problem with 4.00/08d"**Next in thread:**Rene Brun: "Re: [ROOT] Mean calculation in TH1"**Reply:**Rene Brun: "Re: [ROOT] Mean calculation in TH1"**Messages sorted by:**[ date ] [ thread ] [ subject ] [ author ]

*
This archive was generated by hypermail 2b29
: Sun Jan 02 2005 - 05:50:09 MET
*