Hi Andreas,
Could you make your question more precise?
How do you want to relate your variables
-via TTree::Draw
-via a script?
I need more info about your ntuple (eg result of TTree::Print).
Do you know about TTree::MakeClass? For example, if you have
an ntuple named "ntuple", you can do:
ntuple.MakeClass("ntuple").
This will produce two files: ntuple.h and ntuple.C
See comments in the file ntuple.C
Rene Brun
On Mon, 15 Jul 2002, Andreas Salzburger wrote:
> dear roottalk-members,
>
> i haven't done a lot with ntuples yet, but now i have to use cbnt
> (combined physics ntuple) to make
> my analysis.
> as the combined physics ntuple has various branches with different numbers
> of filled objects (classified by indices like Ntravt, Ntrack, Npar, ...),
> i can't just for instance look over nevnt (Tree -> GetEntries()) and
> calculate values like (phi_generated - phi_reconstructed), when
> phi_generated is numbered by an index called pgen and phi_reconstructed by
> an inces called ntrackr.
>
> does anyone know how i could relate them (declaring an Event?).
> This would help me a lot.
>
> Thanks,
> Andi
>
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:59 MET