////////////////////////////////////////////////////////// // This class has been automatically generated on // Wed Feb 20 12:19:03 2013 by ROOT version 5.34/01 // from TChain tree/ ////////////////////////////////////////////////////////// #ifndef mytree_h #define mytree_h #include #include #include #include #include // Header file for the classes stored in the TTree if any. // Fixed size dimensions of array or collections stored in the TTree if any. class mytree : public TSelector { public : //mystuff TH1D * h; TTree *fChain; //!pointer to the analyzed TTree or TChain // Declaration of leaf types Float_t metaQa; Float_t distMetaHit; Float_t selectedMeta; Float_t chi2Inner; Float_t chi2Outer; Float_t mdcdEdx; Float_t sector; Float_t tofdEdx; Float_t rpcInd; Float_t showerSum0; Float_t showerSum1; Float_t showerSum2; Float_t r; Float_t sys; Float_t chi2; Float_t mom; Float_t charge; Float_t beta; Float_t theta; Float_t phi; Float_t mass; Float_t pid; // List of branches TBranch *b_metaQa; //! TBranch *b_distMetaHit; //! TBranch *b_selectedMeta; //! TBranch *b_chi2Inner; //! TBranch *b_chi2Outer; //! TBranch *b_mdcdEdx; //! TBranch *b_sector; //! TBranch *b_tofdEdx; //! TBranch *b_rpcInd; //! TBranch *b_showerSum0; //! TBranch *b_showerSum1; //! TBranch *b_showerSum2; //! TBranch *b_r; //! TBranch *b_sys; //! TBranch *b_chi2; //! TBranch *b_mom; //! TBranch *b_charge; //! TBranch *b_beta; //! TBranch *b_theta; //! TBranch *b_phi; //! TBranch *b_mass; //! TBranch *b_pid; //! mytree(TTree * /*tree*/ =0) : fChain(0) { } virtual ~mytree() { } 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(mytree,0); }; #endif #ifdef mytree_cxx void mytree::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 branch addresses and branch pointers if (!tree) return; fChain = tree; fChain->SetMakeClass(1); fChain->SetBranchAddress("metaQa", &metaQa, &b_metaQa); fChain->SetBranchAddress("distMetaHit", &distMetaHit, &b_distMetaHit); fChain->SetBranchAddress("selectedMeta", &selectedMeta, &b_selectedMeta); fChain->SetBranchAddress("chi2Inner", &chi2Inner, &b_chi2Inner); fChain->SetBranchAddress("chi2Outer", &chi2Outer, &b_chi2Outer); fChain->SetBranchAddress("mdcdEdx", &mdcdEdx, &b_mdcdEdx); fChain->SetBranchAddress("sector", §or, &b_sector); fChain->SetBranchAddress("tofdEdx", &tofdEdx, &b_tofdEdx); fChain->SetBranchAddress("rpcInd", &rpcInd, &b_rpcInd); fChain->SetBranchAddress("showerSum0", &showerSum0, &b_showerSum0); fChain->SetBranchAddress("showerSum1", &showerSum1, &b_showerSum1); fChain->SetBranchAddress("showerSum2", &showerSum2, &b_showerSum2); fChain->SetBranchAddress("r", &r, &b_r); fChain->SetBranchAddress("sys", &sys, &b_sys); fChain->SetBranchAddress("chi2", &chi2, &b_chi2); fChain->SetBranchAddress("mom", &mom, &b_mom); fChain->SetBranchAddress("charge", &charge, &b_charge); fChain->SetBranchAddress("beta", &beta, &b_beta); fChain->SetBranchAddress("theta", &theta, &b_theta); fChain->SetBranchAddress("phi", &phi, &b_phi); fChain->SetBranchAddress("mass", &mass, &b_mass); fChain->SetBranchAddress("pid", &pid, &b_pid); } Bool_t mytree::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 mytree_cxx