////////////////////////////////////////////////////////// // This class has been automatically generated on // Mon Aug 29 16:40:42 2005 by ROOT version 4.04/02 // from TTree t/mytree // found on file: treehouse.root ////////////////////////////////////////////////////////// #ifndef tsel_h #define tsel_h #include #include #include #include class tsel : public TSelector { public : TTree *fChain; //!pointer to the analyzed TTree or TChain // Declaration of leave types Int_t mul; Float_t Eg[3]; //[mul] // List of branches TBranch *b_mul; //! TBranch *b_Eg; //! tsel(TTree *tree=0) { } virtual ~tsel() { } virtual Int_t Version() const {return 1;} virtual void Begin(TTree *tree); virtual void SlaveBegin(TTree *tree); virtual void Init(TTree *tree); virtual Bool_t Notify(); virtual Bool_t Process(Long64_t entry); virtual void SetOption(const char *option) { fOption = option; } virtual void SetObject(TObject *obj) { fObject = obj; } virtual void SetInputList(TList *input) {fInput = input;} virtual TList *GetOutputList() const { return fOutput; } virtual void SlaveTerminate(); virtual void Terminate(); ClassDef(tsel,0); }; #endif #ifdef tsel_cxx void tsel::Init(TTree *tree) { // The Init() function is called when the selector needs to initialize // a new tree or chain. Typically here the branch addresses of the tree // will be set. It is normaly not necessary to make changes to the // generated code, but the routine can be extended by the user if needed. // Init() will be called many times when running with PROOF. // Set branch addresses if (tree == 0) return; fChain = tree; fChain->SetMakeClass(1); fChain->SetBranchAddress("mul",&mul); fChain->SetBranchAddress("Eg",Eg); } Bool_t tsel::Notify() { // The Notify() function is called when a new file is opened. This // can be either for a new TTree in a TChain or when when a new TTree // is started when using PROOF. Typically here the branch pointers // will be retrieved. It is normaly not necessary to make changes // to the generated code, but the routine can be extended by the // user if needed. // Get branch pointers b_mul = fChain->GetBranch("mul"); b_Eg = fChain->GetBranch("Eg"); return kTRUE; } #endif // #ifdef tsel_cxx