Hi Artur,
You will be glad to hear that this problem has been
fixed yesterday (really I mean it :) ).
> Is there a simple way to do this?
Update your cvs repository and try again :)
Cheers,
Philippe.
-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Artur Kalinowski
Sent: Wednesday, March 27, 2002 10:16 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] Fill weighting with a TTree column.
Hi,
I use 3.03/02 version on Cern Linux RH 6.1
I have Tree with such structure:
event --|
|-fEvtHdr.fWeight
|-fHits.fTotal[] <- TClonesArray
|-fHits.fChId[]
|
|-somethig else
I try to draw somethig like this:
data->Draw("fHits.fTotal","fEvtHdr.fWeight");
And only first item from fTotal array gets proper weight, other get
simply 1.
I figured out somethig like this:
data->Draw("fHits.fTotal","fEvtHdr.fWeight*(fHits.fChId/fHits.fChId)");
(I make matrix 1 from fChId)
Is there a simples way to do this?
Thank you,
Artur
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:47 MET