Re: Fill TH2 with TTree

From: Jean-Eric Campagne <campagne_at_lal.in2p3.fr>
Date: Wed, 11 May 2005 13:39:54 +0200


Fine! Thanks J.E

--On mercredi 11 mai 2005 13:25 +0200 Rene Brun <brun_at_pcroot.cern.ch> wrote:

> Jean-eric,
>
> This is quite simple. do:
> tree.Draw("x:y","z")
>
> or, if you want to add a selection
> tree.Draw("x:y","z*(u<v)")
>
> Rene Brun
>
>
> On Wed, 11 May 2005, Jean-Eric Campagne wrote:
>
>> Hello,
>> Is there a simple way to project a TTree with 3 variables (x,y,z) into a
>> TH2 (x,y) with z as a weight?
>> If possible I would like to avoid h2d->Fill(x,y,z) as I do not know a
>> priori the Xlow/high values and Ylow/high value...
>> Regards
>> Jean-Eric
>>
>>
>> ........................................................................
>> ... .LAL - IN2P3 - CNRS
>> .LAL - B.P 34 - 91898 Orsay Cedex - France
>> .Piece 108
>> .Tel +33 (0)1 64 46 84 29
>> .Fax +33 (0)1 64 46 83 97
>> ........................................................................
>> ...
>>
>>
>

...........................................................................
.LAL - IN2P3 - CNRS
.LAL - B.P 34 - 91898 Orsay Cedex - France
.Piece 108
.Tel +33 (0)1 64 46 84 29

.Fax +33 (0)1 64 46 83 97
...........................................................................
Received on Wed May 11 2005 - 13:40:00 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:07 MET