Hi,
To work around the problem do:
Double_t stats[10];
for(int i=0;i<10;i++) { stats[i] = 0; };
myhist->PutStats(stats); //effectively reset the statistics.
After executing this code, the histo will recalculate its statistics.
Cheers,
Philippe.
-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of mignon@ganil.fr
Sent: Friday, March 01, 2002 4:09 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] TH1F::SetBins() and mean value
Hi,
After using SetBins(), keeping the same number of bin but changing the
axis limits, I get what I expected when i draw the TH1F but GetMean()
always send the former value.
Why ?
How can I change that ?
--
Alexis Mignon
GANIL
Bd Henri Becqurel
14076 CAEN Cedex 5
France
tel: +(33) (0)231454680
e-mail : mignon@ganil.fr
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:43 MET