[ROOT] TProfile2D::ProjectionX ?

From: Patois Yannick (patois@ganil.fr)
Date: Fri Jun 22 2001 - 12:10:16 MEST


Hi rooters,

I have filled a TProfile2D with values. Now, I would like to get the
average of the value (z axis) on X axis. I expect to have something like
TProfile *TProfile2D::ProjectionX(); But TProjectionX returns a TH1D
that is (as far as I can see it) simply filled by sum of the value for
each bins, which is not consistant with the purpose of a profile
histogram.

How can I do this (without messing with the internal of TProfile2D
geting values and weigth for each point and such) ?

	Yannick



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:50 MET