[ROOT] Fill weighting with a TTree column.

From: Artur Kalinowski (akalinow@fuw.edu.pl)
Date: Wed Mar 27 2002 - 17:16:07 MET


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