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
> ...........................................................................
>
>
Received on Wed May 11 2005 - 13:25:28 MEST
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:07 MET