////////////////////////////////////////////////////////// // This class has been automatically generated // (Thu Jun 5 11:44:22 2003 by ROOT version3.03/07) // from TTree ntp13/1-3 Tau Ntuple // found on file: example1.root ////////////////////////////////////////////////////////// #ifndef myselect_h #define myselect_h #include #include #include #include class myselect : public TSelector { public : TTree *fChain; //!pointer to the analyzed TTree or TChain //Declaration of leaves types Float_t th_miss_p_cm; Float_t mag_miss_p_cm; Float_t pt_p_cm; Double_t pi0daughterenergy; Double_t pi0energy; //List of branches TBranch *b_th_miss_p_cm; //! TBranch *b_mag_miss_p_cm; //! TBranch *b_pt_p_cm; //! TBranch *b_pi0daughterenergy; //! TBranch *b_pi0energy; //! myselect(TTree *tree=0) { } ~myselect() { } void Begin(TTree *tree); void Init(TTree *tree); Bool_t Notify(); Bool_t Process(Int_t entry); Bool_t ProcessCut(Int_t entry); void ProcessFill(Int_t entry); void SetOption(const char *option) { fOption = option; } void SetObject(TObject *obj) { fObject = obj; } void SetInputList(TList *input) {fInput = input;} TList *GetOutputList() const { return fOutput; } void Terminate(); }; #endif #ifdef myselect_cxx void myselect::Init(TTree *tree) { // Set branch addresses if (tree == 0) return; fChain = tree; fChain->SetMakeClass(1); fChain->SetBranchAddress("th_miss_p_cm",&th_miss_p_cm); fChain->SetBranchAddress("mag_miss_p_cm",&mag_miss_p_cm); fChain->SetBranchAddress("pt_p_cm",&pt_p_cm); fChain->SetBranchAddress("pi0daughterenergy",&pi0daughterenergy); fChain->SetBranchAddress("pi0energy",&pi0energy); } Bool_t myselect::Notify() { // Called when loading a new file. // Get branch pointers. b_th_miss_p_cm = fChain->GetBranch("th_miss_p_cm"); b_mag_miss_p_cm = fChain->GetBranch("mag_miss_p_cm"); b_pt_p_cm = fChain->GetBranch("pt_p_cm"); b_pi0daughterenergy = fChain->GetBranch("pi0daughterenergy"); b_pi0energy = fChain->GetBranch("pi0energy"); return kTRUE; } #endif // #ifdef myselect_cxx