Re: [ROOT] questions about MakeSelector

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Nov 28 2003 - 18:24:15 MET


Hi Paolo,

Why do you want to generate a code with MakeSelector if you want to use
your original class? just to get the Begin, Terminate, etc functions for free?
OK, we could provide an option in TTree::MakeSelector to do this.

Rene Brun

paolo maestro wrote:
> 
> Hi rooters,
> I have a root Tree h1 filled with a class Event
> (very similar to the example  in the root/tutorial directory)
> containing simple variables (float  etot, int ncount) and
> also a  TClonesArray* fHits  of a class Hit.
> To analyze the Trees in different files,
> I made a TChain and used the MakeSelector method.
> In the resulting h1analysis.h class I read
> 
> class h1analysis:public TSelector
> {
>     public:
> //Event *fEvent;
> Int_t       ncount;
> Float_t    etot;
> etc...
> ...
> ...
> }
> 
> I wonder:
> why the line Event* is commented?
> why the class Hit and the TClonesArray are not mentioned  in h1analysis class?
> 
> How can I read in the method Process of h1analysis class   the content of the
> TClonesArray ?
> Thanks
>             Paolo



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:17 MET