////////////////////////////////////////////////////////// // This class has been automatically generated on // Fri Apr 23 20:17:55 2010 by ROOT version 5.22/00 // from TTree physics/physics // found on file: ZeeNp5.wzD3PD.root ////////////////////////////////////////////////////////// #ifndef dummy_h #define dummy_h #include #include #include #include #include class dummy : public TSelector { public : int m_testvar; void printAddress() { cout << "This = " << this << std::endl;}; TTree *fChain; //!pointer to the analyzed TTree or TChain dummy(TTree * /*tree*/ =0): m_testvar(-999) { std::cout << "In constructor" << endl; printAddress(); std::cout << "Testvar in constructor: " << m_testvar << std::endl << std::endl; }; virtual ~dummy() { } virtual Int_t Version() const { return 2; } 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 Int_t GetEntry(Long64_t entry, Int_t getall = 0) { return fChain ? fChain->GetTree()->GetEntry(entry, getall) : 0; } 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(dummy,0); }; #endif #ifdef dummy_cxx void dummy::Init(TTree *tree) { // The Init() function is called when the selector needs to initialize // a new tree or chain. Typically here the branch addresses and branch // pointers of the tree will be set. // It is normally 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 on PROOF // (once per file to be processed). // Set object pointer // Set branch addresses and branch pointers if (!tree) return; fChain = tree; fChain->SetMakeClass(1); } Bool_t dummy::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. It is normally not necessary to make changes // to the generated code, but the routine can be extended by the // user if needed. The return value is currently not used. return kTRUE; } #endif // #ifdef dummy_cxx