Re: TH2 Projection in respect to generic axis

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Fri, 16 Oct 2009 08:14:52 +0200


This functionality (although not very precise) could be implemented in the ProjectionXX functions.
However the solution is to start from a Tree and instead of

    T.Draw("y:x")
do

    T.Draw("transform(x):transform(y)")
where transform are functions linear or not of the variables x and y.

Rene Brun

Vito Di Benedetto wrote:
> Dear ROOT experts,
> I would like to get the Projection of a TH2F histogram in respect to a
> generic axis.
> I saw the methods ProjectionX and ProjectionY, I wondering if there is
> a such kind of method for a generic axis y=a*x+b.
>
> Thanks in advance,
> Vito
>
>
Received on Fri Oct 16 2009 - 08:14:49 CEST

This archive was generated by hypermail 2.2.0 : Fri Oct 16 2009 - 11:50:02 CEST