Re: ntuple into profile projection.

Rene Brun (Rene.Brun@cern.ch)
Wed, 16 Apr 1997 10:44:39 +0200


OLSZEWSKI@vsk02.ifj.edu.pl wrote:
>
> Hi,
>
> I am not sure what is the proper way to project an ntuple into a profile
> histogram. I would like to predefine a profile TProfile with "x" range
> and number of bins, and "y" range. If I use then Draw("x:y>>hprof",..,"prof")
> should I still put cut on "y" or shall it be automatically done via hprof
> predefined "y" range?
>
> Andrzej.

With the version currently on the Web, you cannot create a Profile
and give it to the Draw command. This problem has been reported
by Wolfgang Korsch and is now fixed in our version.
The fix will appear on the Web very likely tomorrow Thursday.

Note that if you define a cut along y in the TProfile constructor,
you do not need to specify again the cut in the TTree::Draw call.

Rene Brun