////////////////////////////////////////////////////////// // This class has been automatically generated on // Wed Jun 20 10:04:24 2018 by ROOT version 5.34/39 // from TTree eventTree/Event tree // found on file: L1Ntuple_EBTP_HGCalTP_L1_L1TTracklet_onMC_L1_FEVTHLTDEBUG_TRACK_GEN_TT_nevt_10.root ////////////////////////////////////////////////////////// #ifndef eventTree_h #define eventTree_h #include #include #include // Header file for the classes stored in the TTree if any. #include #include // Fixed size dimensions of array or collections stored in the TTree if any. class eventTree { public : TTree *fChain; //!pointer to the analyzed TTree or TChain Int_t fCurrent; //!current Tree number in a TChain // Declaration of leaf types vector *trk_pt; vector *trk_eta; vector *trk_phi; vector *trk_d0; vector *trk_z0; vector *trk_chi2; vector *trk_nstub; vector *trk_genuine; vector *trk_loose; vector *trk_unknown; vector *trk_combinatoric; vector *trk_fake; vector *trk_matchtp_pdgid; vector *trk_matchtp_pt; vector *trk_matchtp_eta; vector *trk_matchtp_phi; vector *trk_matchtp_z0; vector *trk_matchtp_dxy; vector *tp_pt; vector *tp_eta; vector *tp_phi; vector *tp_dxy; vector *tp_d0; vector *tp_z0; vector *tp_d0_prod; vector *tp_z0_prod; vector *tp_pdgid; vector *tp_nmatch; vector *tp_nstub; vector *tp_eventid; vector *tp_charge; vector *matchtrk_pt; vector *matchtrk_eta; vector *matchtrk_phi; vector *matchtrk_z0; vector *matchtrk_d0; vector *matchtrk_chi2; vector *matchtrk_nstub; // List of branches TBranch *b_trk_pt; //! TBranch *b_trk_eta; //! TBranch *b_trk_phi; //! TBranch *b_trk_d0; //! TBranch *b_trk_z0; //! TBranch *b_trk_chi2; //! TBranch *b_trk_nstub; //! TBranch *b_trk_genuine; //! TBranch *b_trk_loose; //! TBranch *b_trk_unknown; //! TBranch *b_trk_combinatoric; //! TBranch *b_trk_fake; //! TBranch *b_trk_matchtp_pdgid; //! TBranch *b_trk_matchtp_pt; //! TBranch *b_trk_matchtp_eta; //! TBranch *b_trk_matchtp_phi; //! TBranch *b_trk_matchtp_z0; //! TBranch *b_trk_matchtp_dxy; //! TBranch *b_tp_pt; //! TBranch *b_tp_eta; //! TBranch *b_tp_phi; //! TBranch *b_tp_dxy; //! TBranch *b_tp_d0; //! TBranch *b_tp_z0; //! TBranch *b_tp_d0_prod; //! TBranch *b_tp_z0_prod; //! TBranch *b_tp_pdgid; //! TBranch *b_tp_nmatch; //! TBranch *b_tp_nstub; //! TBranch *b_tp_eventid; //! TBranch *b_tp_charge; //! TBranch *b_matchtrk_pt; //! TBranch *b_matchtrk_eta; //! TBranch *b_matchtrk_phi; //! TBranch *b_matchtrk_z0; //! TBranch *b_matchtrk_d0; //! TBranch *b_matchtrk_chi2; //! TBranch *b_matchtrk_nstub; //! eventTree(TTree *tree=0); virtual ~eventTree(); virtual Int_t Cut(Long64_t entry); virtual Int_t GetEntry(Long64_t entry); virtual Long64_t LoadTree(Long64_t entry); virtual void Init(TTree *tree); virtual void Loop(); virtual Bool_t Notify(); virtual void Show(Long64_t entry = -1); }; #endif #ifdef eventTree_cxx eventTree::eventTree(TTree *tree) : fChain(0) { // if parameter tree is not specified (or zero), connect the file // used to generate this class and read the Tree. if (tree == 0) { TFile *f = (TFile*)gROOT->GetListOfFiles()->FindObject("L1Ntuple_EBTP_HGCalTP_L1_L1TTracklet_onMC_L1_FEVTHLTDEBUG_TRACK_GEN_TT_nevt_10.root"); if (!f || !f->IsOpen()) { f = new TFile("L1Ntuple_EBTP_HGCalTP_L1_L1TTracklet_onMC_L1_FEVTHLTDEBUG_TRACK_GEN_TT_nevt_10.root"); } TDirectory * dir = (TDirectory*)f->Get("L1Ntuple_EBTP_HGCalTP_L1_L1TTracklet_onMC_L1_FEVTHLTDEBUG_TRACK_GEN_TT_nevt_10.root:/l1TrackTree"); dir->GetObject("eventTree",tree); } Init(tree); } eventTree::~eventTree() { if (!fChain) return; delete fChain->GetCurrentFile(); } Int_t eventTree::GetEntry(Long64_t entry) { // Read contents of entry. if (!fChain) return 0; return fChain->GetEntry(entry); } Long64_t eventTree::LoadTree(Long64_t entry) { // Set the environment to read one entry if (!fChain) return -5; Long64_t centry = fChain->LoadTree(entry); if (centry < 0) return centry; if (fChain->GetTreeNumber() != fCurrent) { fCurrent = fChain->GetTreeNumber(); Notify(); } return centry; } void eventTree::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 trk_pt = 0; trk_eta = 0; trk_phi = 0; trk_d0 = 0; trk_z0 = 0; trk_chi2 = 0; trk_nstub = 0; trk_genuine = 0; trk_loose = 0; trk_unknown = 0; trk_combinatoric = 0; trk_fake = 0; trk_matchtp_pdgid = 0; trk_matchtp_pt = 0; trk_matchtp_eta = 0; trk_matchtp_phi = 0; trk_matchtp_z0 = 0; trk_matchtp_dxy = 0; tp_pt = 0; tp_eta = 0; tp_phi = 0; tp_dxy = 0; tp_d0 = 0; tp_z0 = 0; tp_d0_prod = 0; tp_z0_prod = 0; tp_pdgid = 0; tp_nmatch = 0; tp_nstub = 0; tp_eventid = 0; tp_charge = 0; matchtrk_pt = 0; matchtrk_eta = 0; matchtrk_phi = 0; matchtrk_z0 = 0; matchtrk_d0 = 0; matchtrk_chi2 = 0; matchtrk_nstub = 0; // Set branch addresses and branch pointers if (!tree) return; fChain = tree; fCurrent = -1; fChain->SetMakeClass(1); fChain->SetBranchAddress("trk_pt", &trk_pt, &b_trk_pt); fChain->SetBranchAddress("trk_eta", &trk_eta, &b_trk_eta); fChain->SetBranchAddress("trk_phi", &trk_phi, &b_trk_phi); fChain->SetBranchAddress("trk_d0", &trk_d0, &b_trk_d0); fChain->SetBranchAddress("trk_z0", &trk_z0, &b_trk_z0); fChain->SetBranchAddress("trk_chi2", &trk_chi2, &b_trk_chi2); fChain->SetBranchAddress("trk_nstub", &trk_nstub, &b_trk_nstub); fChain->SetBranchAddress("trk_genuine", &trk_genuine, &b_trk_genuine); fChain->SetBranchAddress("trk_loose", &trk_loose, &b_trk_loose); fChain->SetBranchAddress("trk_unknown", &trk_unknown, &b_trk_unknown); fChain->SetBranchAddress("trk_combinatoric", &trk_combinatoric, &b_trk_combinatoric); fChain->SetBranchAddress("trk_fake", &trk_fake, &b_trk_fake); fChain->SetBranchAddress("trk_matchtp_pdgid", &trk_matchtp_pdgid, &b_trk_matchtp_pdgid); fChain->SetBranchAddress("trk_matchtp_pt", &trk_matchtp_pt, &b_trk_matchtp_pt); fChain->SetBranchAddress("trk_matchtp_eta", &trk_matchtp_eta, &b_trk_matchtp_eta); fChain->SetBranchAddress("trk_matchtp_phi", &trk_matchtp_phi, &b_trk_matchtp_phi); fChain->SetBranchAddress("trk_matchtp_z0", &trk_matchtp_z0, &b_trk_matchtp_z0); fChain->SetBranchAddress("trk_matchtp_dxy", &trk_matchtp_dxy, &b_trk_matchtp_dxy); fChain->SetBranchAddress("tp_pt", &tp_pt, &b_tp_pt); fChain->SetBranchAddress("tp_eta", &tp_eta, &b_tp_eta); fChain->SetBranchAddress("tp_phi", &tp_phi, &b_tp_phi); fChain->SetBranchAddress("tp_dxy", &tp_dxy, &b_tp_dxy); fChain->SetBranchAddress("tp_d0", &tp_d0, &b_tp_d0); fChain->SetBranchAddress("tp_z0", &tp_z0, &b_tp_z0); fChain->SetBranchAddress("tp_d0_prod", &tp_d0_prod, &b_tp_d0_prod); fChain->SetBranchAddress("tp_z0_prod", &tp_z0_prod, &b_tp_z0_prod); fChain->SetBranchAddress("tp_pdgid", &tp_pdgid, &b_tp_pdgid); fChain->SetBranchAddress("tp_nmatch", &tp_nmatch, &b_tp_nmatch); fChain->SetBranchAddress("tp_nstub", &tp_nstub, &b_tp_nstub); fChain->SetBranchAddress("tp_eventid", &tp_eventid, &b_tp_eventid); fChain->SetBranchAddress("tp_charge", &tp_charge, &b_tp_charge); fChain->SetBranchAddress("matchtrk_pt", &matchtrk_pt, &b_matchtrk_pt); fChain->SetBranchAddress("matchtrk_eta", &matchtrk_eta, &b_matchtrk_eta); fChain->SetBranchAddress("matchtrk_phi", &matchtrk_phi, &b_matchtrk_phi); fChain->SetBranchAddress("matchtrk_z0", &matchtrk_z0, &b_matchtrk_z0); fChain->SetBranchAddress("matchtrk_d0", &matchtrk_d0, &b_matchtrk_d0); fChain->SetBranchAddress("matchtrk_chi2", &matchtrk_chi2, &b_matchtrk_chi2); fChain->SetBranchAddress("matchtrk_nstub", &matchtrk_nstub, &b_matchtrk_nstub); Notify(); } Bool_t eventTree::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; } void eventTree::Show(Long64_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (!fChain) return; fChain->Show(entry); } Int_t eventTree::Cut(Long64_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. return 1; } #endif // #ifdef eventTree_cxx