Projection and histo maximum

From: Manuel Mussini <Manuel.Mussini_at_bo.infn.it>
Date: Sun, 31 Jan 2010 11:59:27 -0600


Hi all,
I'm doing this two simple things (I havo to cast fSlices[0] because it's previously declared as TH1D):

fSlices[i] = ((TH2D *)fSlices[0])->ProjectionY(name, 12, 21); fSlices[i]->GetYaxis()->SetRangeUser(0., fSlices[i]->GetMaximum() * 1.2);

My problem is that it looks like the TH1D::fMaximum data member is not evaluated for the projected object so I get a wrong y axis setting when I draw it!

Is this correct? Is there a TH1 method to evaluate it or I have to do it manually?

Thanks in advance!

Bye... Received on Sun Jan 31 2010 - 18:59:42 CET

This archive was generated by hypermail 2.2.0 : Mon Feb 01 2010 - 17:50:01 CET