Re: [ROOT] TProfile2D::ProjectionX ?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Jun 22 2001 - 12:51:15 MEST


Hi Yannick,

TProfile::ProjectionX returns a TH1D* not a TProfile*

Functions like TProfile2D::ProfileX and TProfile2D::ProfileY could be
implemented. Are volunteer to do the job?

Rene Brun

Patois Yannick wrote:
> 
> 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