////////////////////////////////////////////////////////// // This class has been automatically generated on // Wed May 2 13:15:10 2018 by ROOT version 6.12/06 // from TTree tree/tree // found on file: trackingNtuple_1.root ////////////////////////////////////////////////////////// #ifndef TrackingNtuple_h #define TrackingNtuple_h #include #include #include // Header file for the classes stored in the TTree if any. #include using std::vector; class TrackingNtuple { public : TTree *fChain; //!pointer to the analyzed TTree or TChain Int_t fCurrent; //!current Tree number in a TChain // Fixed size dimensions of array or collections stored in the TTree if any. // Declaration of leaf types ULong64_t event; UInt_t lumi; UInt_t run; vector *trk_px; vector *trk_py; vector *trk_pz; vector *trk_pt; vector *trk_inner_px; vector *trk_inner_py; vector *trk_inner_pz; vector *trk_inner_pt; vector *trk_outer_px; vector *trk_outer_py; vector *trk_outer_pz; vector *trk_outer_pt; vector *trk_eta; vector *trk_lambda; vector *trk_cotTheta; vector *trk_phi; vector *trk_dxy; vector *trk_dz; vector *trk_ptErr; vector *trk_etaErr; vector *trk_lambdaErr; vector *trk_phiErr; vector *trk_dxyErr; vector *trk_dzErr; vector *trk_refpoint_x; vector *trk_refpoint_y; vector *trk_refpoint_z; vector *trk_nChi2; vector *trk_q; vector *trk_nValid; vector *trk_nInvalid; vector *trk_nPixel; vector *trk_nStrip; vector *trk_nPixelLay; vector *trk_nStripLay; vector *trk_n3DLay; vector *trk_nOuterLost; vector *trk_nInnerLost; vector *trk_algo; vector *trk_originalAlgo; vector *trk_algoMask; vector *trk_stopReason; vector *trk_isHP; vector *trk_seedIdx; vector *trk_vtxx; vector *trk_vtxy; vector *trk_vtxz; vector > *trk_shareFrac; vector > *trk_simTrkIdx; vector *trk_genIdx; vector *trk_genDR; vector *sim_event; vector *sim_bunchCrossing; vector *sim_pdgId; vector > *sim_genPdgIds; vector *sim_isFromBHadron; vector *sim_px; vector *sim_py; vector *sim_pz; vector *sim_pt; vector *sim_eta; vector *sim_phi; vector *sim_pca_pt; vector *sim_pca_eta; vector *sim_pca_lambda; vector *sim_pca_cotTheta; vector *sim_pca_phi; vector *sim_pca_dxy; vector *sim_pca_dz; vector *sim_q; vector *sim_nValid; vector *sim_nPixel; vector *sim_nStrip; vector *sim_nLay; vector *sim_nPixelLay; vector *sim_n3DLay; vector > *sim_trkIdx; vector > *sim_shareFrac; vector > *sim_seedIdx; vector *sim_parentVtxIdx; vector > *sim_decayVtxIdx; Float_t bsp_x; Float_t bsp_y; Float_t bsp_z; Float_t bsp_sigmax; Float_t bsp_sigmay; Float_t bsp_sigmaz; vector *see_fitok; vector *see_px; vector *see_py; vector *see_pz; vector *see_pt; vector *see_eta; vector *see_phi; vector *see_dxy; vector *see_dz; vector *see_ptErr; vector *see_etaErr; vector *see_phiErr; vector *see_dxyErr; vector *see_dzErr; vector *see_chi2; vector *see_statePt; vector *see_stateTrajX; vector *see_stateTrajY; vector *see_stateTrajPx; vector *see_stateTrajPy; vector *see_stateTrajPz; vector *see_q; vector *see_nValid; vector *see_nPixel; vector *see_nGlued; vector *see_nStrip; vector *see_nPhase2OT; vector *see_algo; vector *see_stopReason; vector *see_trkIdx; vector > *see_shareFrac; vector > *see_simTrkIdx; vector *see_offset; vector *see_Et; vector *see_hoe; vector > *see_isBarrel; vector > *see_layerOrDiskNr; vector > *see_isValidPos; vector > *see_dRZPos; vector > *see_dPhiPos; vector > *see_isValidNeg; vector > *see_dRZNeg; vector > *see_dPhiNeg; vector *see_isECALDriven; vector *see_sclIdx; vector *initsee_cnt; UInt_t initsee_tot; vector *vtx_x; vector *vtx_y; vector *vtx_z; vector *vtx_xErr; vector *vtx_yErr; vector *vtx_zErr; vector *vtx_ndof; vector *vtx_chi2; vector *vtx_fake; vector *vtx_valid; vector > *vtx_trkIdx; vector *gen_px; vector *gen_py; vector *gen_pz; vector *gen_charge; vector *gen_pdgId; vector *gen_vx; vector *gen_vy; vector *gen_vz; vector *gen_status; vector *gen_mother; vector *gen_isTauDecayProduct; vector *gen_isDirectHadronDecayProduct; vector *gen_isPrompt; vector *simvtx_event; vector *simvtx_bunchCrossing; vector *simvtx_processType; vector *simvtx_x; vector *simvtx_y; vector *simvtx_z; vector > *simvtx_sourceSimIdx; vector > *simvtx_daughterSimIdx; vector *simpv_idx; vector *scl_e; vector *scl_px; vector *scl_py; vector *scl_pz; vector *scl_x; vector *scl_y; vector *scl_z; vector *scl_hoe; float truePileup; int inTimePileup; vector *outOfTimePileup; // List of branches TBranch *b_event; //! TBranch *b_lumi; //! TBranch *b_run; //! TBranch *b_trk_px; //! TBranch *b_trk_py; //! TBranch *b_trk_pz; //! TBranch *b_trk_pt; //! TBranch *b_trk_inner_px; //! TBranch *b_trk_inner_py; //! TBranch *b_trk_inner_pz; //! TBranch *b_trk_inner_pt; //! TBranch *b_trk_outer_px; //! TBranch *b_trk_outer_py; //! TBranch *b_trk_outer_pz; //! TBranch *b_trk_outer_pt; //! TBranch *b_trk_eta; //! TBranch *b_trk_lambda; //! TBranch *b_trk_cotTheta; //! TBranch *b_trk_phi; //! TBranch *b_trk_dxy; //! TBranch *b_trk_dz; //! TBranch *b_trk_ptErr; //! TBranch *b_trk_etaErr; //! TBranch *b_trk_lambdaErr; //! TBranch *b_trk_phiErr; //! TBranch *b_trk_dxyErr; //! TBranch *b_trk_dzErr; //! TBranch *b_trk_refpoint_x; //! TBranch *b_trk_refpoint_y; //! TBranch *b_trk_refpoint_z; //! TBranch *b_trk_nChi2; //! TBranch *b_trk_q; //! TBranch *b_trk_nValid; //! TBranch *b_trk_nInvalid; //! TBranch *b_trk_nPixel; //! TBranch *b_trk_nStrip; //! TBranch *b_trk_nPixelLay; //! TBranch *b_trk_nStripLay; //! TBranch *b_trk_n3DLay; //! TBranch *b_trk_nOuterLost; //! TBranch *b_trk_nInnerLost; //! TBranch *b_trk_algo; //! TBranch *b_trk_originalAlgo; //! TBranch *b_trk_algoMask; //! TBranch *b_trk_stopReason; //! TBranch *b_trk_isHP; //! TBranch *b_trk_seedIdx; //! TBranch *b_trk_vtxx; //! TBranch *b_trk_vtxy; //! TBranch *b_trk_vtxz; //! TBranch *b_trk_shareFrac; //! TBranch *b_trk_simTrkIdx; //! TBranch *b_trk_genIdx; //! TBranch *b_trk_genDR; //! TBranch *b_sim_event; //! TBranch *b_sim_bunchCrossing; //! TBranch *b_sim_pdgId; //! TBranch *b_sim_genPdgIds; //! TBranch *b_sim_isFromBHadron; //! TBranch *b_sim_px; //! TBranch *b_sim_py; //! TBranch *b_sim_pz; //! TBranch *b_sim_pt; //! TBranch *b_sim_eta; //! TBranch *b_sim_phi; //! TBranch *b_sim_pca_pt; //! TBranch *b_sim_pca_eta; //! TBranch *b_sim_pca_lambda; //! TBranch *b_sim_pca_cotTheta; //! TBranch *b_sim_pca_phi; //! TBranch *b_sim_pca_dxy; //! TBranch *b_sim_pca_dz; //! TBranch *b_sim_q; //! TBranch *b_sim_nValid; //! TBranch *b_sim_nPixel; //! TBranch *b_sim_nStrip; //! TBranch *b_sim_nLay; //! TBranch *b_sim_nPixelLay; //! TBranch *b_sim_n3DLay; //! TBranch *b_sim_trkIdx; //! TBranch *b_sim_shareFrac; //! TBranch *b_sim_seedIdx; //! TBranch *b_sim_parentVtxIdx; //! TBranch *b_sim_decayVtxIdx; //! TBranch *b_bsp_x; //! TBranch *b_bsp_y; //! TBranch *b_bsp_z; //! TBranch *b_bsp_sigmax; //! TBranch *b_bsp_sigmay; //! TBranch *b_bsp_sigmaz; //! TBranch *b_see_fitok; //! TBranch *b_see_px; //! TBranch *b_see_py; //! TBranch *b_see_pz; //! TBranch *b_see_pt; //! TBranch *b_see_eta; //! TBranch *b_see_phi; //! TBranch *b_see_dxy; //! TBranch *b_see_dz; //! TBranch *b_see_ptErr; //! TBranch *b_see_etaErr; //! TBranch *b_see_phiErr; //! TBranch *b_see_dxyErr; //! TBranch *b_see_dzErr; //! TBranch *b_see_chi2; //! TBranch *b_see_statePt; //! TBranch *b_see_stateTrajX; //! TBranch *b_see_stateTrajY; //! TBranch *b_see_stateTrajPx; //! TBranch *b_see_stateTrajPy; //! TBranch *b_see_stateTrajPz; //! TBranch *b_see_q; //! TBranch *b_see_nValid; //! TBranch *b_see_nPixel; //! TBranch *b_see_nGlued; //! TBranch *b_see_nStrip; //! TBranch *b_see_nPhase2OT; //! TBranch *b_see_algo; //! TBranch *b_see_stopReason; //! TBranch *b_see_trkIdx; //! TBranch *b_see_shareFrac; //! TBranch *b_see_simTrkIdx; //! TBranch *b_see_offset; //! TBranch *b_see_Et; //! TBranch *b_see_hoe; //! TBranch *b_see_isBarrel; //! TBranch *b_see_layerOrDiskNr; //! TBranch *b_see_isValidPos; //! TBranch *b_see_dRZPos; //! TBranch *b_see_dPhiPos; //! TBranch *b_see_isValidNeg; //! TBranch *b_see_dRZNeg; //! TBranch *b_see_dPhiNeg; //! TBranch *b_see_isECALDriven; //! TBranch *b_see_sclIdx; //! TBranch *b_initsee_cnt; //! TBranch *b_initsee_tot; //! TBranch *b_vtx_x; //! TBranch *b_vtx_y; //! TBranch *b_vtx_z; //! TBranch *b_vtx_xErr; //! TBranch *b_vtx_yErr; //! TBranch *b_vtx_zErr; //! TBranch *b_vtx_ndof; //! TBranch *b_vtx_chi2; //! TBranch *b_vtx_fake; //! TBranch *b_vtx_valid; //! TBranch *b_vtx_trkIdx; //! TBranch *b_gen_px; //! TBranch *b_gen_py; //! TBranch *b_gen_pz; //! TBranch *b_gen_charge; //! TBranch *b_gen_pdgId; //! TBranch *b_gen_vx; //! TBranch *b_gen_vy; //! TBranch *b_gen_vz; //! TBranch *b_gen_status; //! TBranch *b_gen_mother; //! TBranch *b_gen_isTauDecayProduct; //! TBranch *b_gen_isDirectHadronDecayProduct; //! TBranch *b_gen_isPrompt; //! TBranch *b_simvtx_event; //! TBranch *b_simvtx_bunchCrossing; //! TBranch *b_simvtx_processType; //! TBranch *b_simvtx_x; //! TBranch *b_simvtx_y; //! TBranch *b_simvtx_z; //! TBranch *b_simvtx_sourceSimIdx; //! TBranch *b_simvtx_daughterSimIdx; //! TBranch *b_simpv_idx; //! TBranch *b_scl_e; //! TBranch *b_scl_px; //! TBranch *b_scl_py; //! TBranch *b_scl_pz; //! TBranch *b_scl_x; //! TBranch *b_scl_y; //! TBranch *b_scl_z; //! TBranch *b_scl_hoe; //! TBranch *b_truePileup; //! TBranch *b_inTimePileup; //! TBranch *b_outOfTimePileup; //! TrackingNtuple(TTree *tree=0); virtual ~TrackingNtuple(); 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 Bool_t Notify(); virtual void Show(Long64_t entry = -1); }; TrackingNtuple::TrackingNtuple(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("trackingNtuple_1.root"); if (!f || !f->IsOpen()) { f = new TFile("trackingNtuple_1.root"); } TDirectory * dir = (TDirectory*)f->Get("trackingNtuple_1.root:/trackingNtuple"); dir->GetObject("tree",tree); } Init(tree); } TrackingNtuple::~TrackingNtuple() { if (!fChain) return; delete fChain->GetCurrentFile(); } Int_t TrackingNtuple::GetEntry(Long64_t entry) { // Read contents of entry. if (!fChain) return 0; return fChain->GetEntry(entry); } Long64_t TrackingNtuple::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 TrackingNtuple::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_px = 0; trk_py = 0; trk_pz = 0; trk_pt = 0; trk_inner_px = 0; trk_inner_py = 0; trk_inner_pz = 0; trk_inner_pt = 0; trk_outer_px = 0; trk_outer_py = 0; trk_outer_pz = 0; trk_outer_pt = 0; trk_eta = 0; trk_lambda = 0; trk_cotTheta = 0; trk_phi = 0; trk_dxy = 0; trk_dz = 0; trk_ptErr = 0; trk_etaErr = 0; trk_lambdaErr = 0; trk_phiErr = 0; trk_dxyErr = 0; trk_dzErr = 0; trk_refpoint_x = 0; trk_refpoint_y = 0; trk_refpoint_z = 0; trk_nChi2 = 0; trk_q = 0; trk_nValid = 0; trk_nInvalid = 0; trk_nPixel = 0; trk_nStrip = 0; trk_nPixelLay = 0; trk_nStripLay = 0; trk_n3DLay = 0; trk_nOuterLost = 0; trk_nInnerLost = 0; trk_algo = 0; trk_originalAlgo = 0; trk_algoMask = 0; trk_stopReason = 0; trk_isHP = 0; trk_seedIdx = 0; trk_vtxx = 0; trk_vtxy = 0; trk_vtxz = 0; trk_shareFrac = 0; trk_simTrkIdx = 0; trk_genIdx = 0; trk_genDR = 0; sim_event = 0; sim_bunchCrossing = 0; sim_pdgId = 0; sim_genPdgIds = 0; sim_isFromBHadron = 0; sim_px = 0; sim_py = 0; sim_pz = 0; sim_pt = 0; sim_eta = 0; sim_phi = 0; sim_pca_pt = 0; sim_pca_eta = 0; sim_pca_lambda = 0; sim_pca_cotTheta = 0; sim_pca_phi = 0; sim_pca_dxy = 0; sim_pca_dz = 0; sim_q = 0; sim_nValid = 0; sim_nPixel = 0; sim_nStrip = 0; sim_nLay = 0; sim_nPixelLay = 0; sim_n3DLay = 0; sim_trkIdx = 0; sim_shareFrac = 0; sim_seedIdx = 0; sim_parentVtxIdx = 0; sim_decayVtxIdx = 0; see_fitok = 0; see_px = 0; see_py = 0; see_pz = 0; see_pt = 0; see_eta = 0; see_phi = 0; see_dxy = 0; see_dz = 0; see_ptErr = 0; see_etaErr = 0; see_phiErr = 0; see_dxyErr = 0; see_dzErr = 0; see_chi2 = 0; see_statePt = 0; see_stateTrajX = 0; see_stateTrajY = 0; see_stateTrajPx = 0; see_stateTrajPy = 0; see_stateTrajPz = 0; see_q = 0; see_nValid = 0; see_nPixel = 0; see_nGlued = 0; see_nStrip = 0; see_nPhase2OT = 0; see_algo = 0; see_stopReason = 0; see_trkIdx = 0; see_shareFrac = 0; see_simTrkIdx = 0; see_offset = 0; see_Et = 0; see_hoe = 0; see_isBarrel = 0; see_layerOrDiskNr = 0; see_isValidPos = 0; see_dRZPos = 0; see_dPhiPos = 0; see_isValidNeg = 0; see_dRZNeg = 0; see_dPhiNeg = 0; see_isECALDriven = 0; see_sclIdx = 0; initsee_cnt = 0; vtx_x = 0; vtx_y = 0; vtx_z = 0; vtx_xErr = 0; vtx_yErr = 0; vtx_zErr = 0; vtx_ndof = 0; vtx_chi2 = 0; vtx_fake = 0; vtx_valid = 0; vtx_trkIdx = 0; gen_px = 0; gen_py = 0; gen_pz = 0; gen_charge = 0; gen_pdgId = 0; gen_vx = 0; gen_vy = 0; gen_vz = 0; gen_status = 0; gen_mother = 0; gen_isTauDecayProduct = 0; gen_isDirectHadronDecayProduct = 0; gen_isPrompt = 0; simvtx_event = 0; simvtx_bunchCrossing = 0; simvtx_processType = 0; simvtx_x = 0; simvtx_y = 0; simvtx_z = 0; simvtx_sourceSimIdx = 0; simvtx_daughterSimIdx = 0; simpv_idx = 0; scl_e = 0; scl_px = 0; scl_py = 0; scl_pz = 0; scl_x = 0; scl_y = 0; scl_z = 0; scl_hoe = 0; outOfTimePileup = 0; // Set branch addresses and branch pointers if (!tree) return; fChain = tree; fCurrent = -1; fChain->SetMakeClass(1); fChain->SetBranchAddress("event", &event, &b_event); fChain->SetBranchAddress("lumi", &lumi, &b_lumi); fChain->SetBranchAddress("run", &run, &b_run); fChain->SetBranchAddress("trk_px", &trk_px, &b_trk_px); fChain->SetBranchAddress("trk_py", &trk_py, &b_trk_py); fChain->SetBranchAddress("trk_pz", &trk_pz, &b_trk_pz); fChain->SetBranchAddress("trk_pt", &trk_pt, &b_trk_pt); fChain->SetBranchAddress("trk_inner_px", &trk_inner_px, &b_trk_inner_px); fChain->SetBranchAddress("trk_inner_py", &trk_inner_py, &b_trk_inner_py); fChain->SetBranchAddress("trk_inner_pz", &trk_inner_pz, &b_trk_inner_pz); fChain->SetBranchAddress("trk_inner_pt", &trk_inner_pt, &b_trk_inner_pt); fChain->SetBranchAddress("trk_outer_px", &trk_outer_px, &b_trk_outer_px); fChain->SetBranchAddress("trk_outer_py", &trk_outer_py, &b_trk_outer_py); fChain->SetBranchAddress("trk_outer_pz", &trk_outer_pz, &b_trk_outer_pz); fChain->SetBranchAddress("trk_outer_pt", &trk_outer_pt, &b_trk_outer_pt); fChain->SetBranchAddress("trk_eta", &trk_eta, &b_trk_eta); fChain->SetBranchAddress("trk_lambda", &trk_lambda, &b_trk_lambda); fChain->SetBranchAddress("trk_cotTheta", &trk_cotTheta, &b_trk_cotTheta); fChain->SetBranchAddress("trk_phi", &trk_phi, &b_trk_phi); fChain->SetBranchAddress("trk_dxy", &trk_dxy, &b_trk_dxy); fChain->SetBranchAddress("trk_dz", &trk_dz, &b_trk_dz); fChain->SetBranchAddress("trk_ptErr", &trk_ptErr, &b_trk_ptErr); fChain->SetBranchAddress("trk_etaErr", &trk_etaErr, &b_trk_etaErr); fChain->SetBranchAddress("trk_lambdaErr", &trk_lambdaErr, &b_trk_lambdaErr); fChain->SetBranchAddress("trk_phiErr", &trk_phiErr, &b_trk_phiErr); fChain->SetBranchAddress("trk_dxyErr", &trk_dxyErr, &b_trk_dxyErr); fChain->SetBranchAddress("trk_dzErr", &trk_dzErr, &b_trk_dzErr); fChain->SetBranchAddress("trk_refpoint_x", &trk_refpoint_x, &b_trk_refpoint_x); fChain->SetBranchAddress("trk_refpoint_y", &trk_refpoint_y, &b_trk_refpoint_y); fChain->SetBranchAddress("trk_refpoint_z", &trk_refpoint_z, &b_trk_refpoint_z); fChain->SetBranchAddress("trk_nChi2", &trk_nChi2, &b_trk_nChi2); fChain->SetBranchAddress("trk_q", &trk_q, &b_trk_q); fChain->SetBranchAddress("trk_nValid", &trk_nValid, &b_trk_nValid); fChain->SetBranchAddress("trk_nInvalid", &trk_nInvalid, &b_trk_nInvalid); fChain->SetBranchAddress("trk_nPixel", &trk_nPixel, &b_trk_nPixel); fChain->SetBranchAddress("trk_nStrip", &trk_nStrip, &b_trk_nStrip); fChain->SetBranchAddress("trk_nPixelLay", &trk_nPixelLay, &b_trk_nPixelLay); fChain->SetBranchAddress("trk_nStripLay", &trk_nStripLay, &b_trk_nStripLay); fChain->SetBranchAddress("trk_n3DLay", &trk_n3DLay, &b_trk_n3DLay); fChain->SetBranchAddress("trk_nOuterLost", &trk_nOuterLost, &b_trk_nOuterLost); fChain->SetBranchAddress("trk_nInnerLost", &trk_nInnerLost, &b_trk_nInnerLost); fChain->SetBranchAddress("trk_algo", &trk_algo, &b_trk_algo); fChain->SetBranchAddress("trk_originalAlgo", &trk_originalAlgo, &b_trk_originalAlgo); fChain->SetBranchAddress("trk_algoMask", &trk_algoMask, &b_trk_algoMask); fChain->SetBranchAddress("trk_stopReason", &trk_stopReason, &b_trk_stopReason); fChain->SetBranchAddress("trk_isHP", &trk_isHP, &b_trk_isHP); fChain->SetBranchAddress("trk_seedIdx", &trk_seedIdx, &b_trk_seedIdx); fChain->SetBranchAddress("trk_vtxx", &trk_vtxx, &b_trk_vtxx); fChain->SetBranchAddress("trk_vtxy", &trk_vtxy, &b_trk_vtxy); fChain->SetBranchAddress("trk_vtxz", &trk_vtxz, &b_trk_vtxz); fChain->SetBranchAddress("trk_shareFrac", &trk_shareFrac, &b_trk_shareFrac); fChain->SetBranchAddress("trk_simTrkIdx", &trk_simTrkIdx, &b_trk_simTrkIdx); fChain->SetBranchAddress("trk_genIdx", &trk_genIdx, &b_trk_genIdx); fChain->SetBranchAddress("trk_genDR", &trk_genDR, &b_trk_genDR); fChain->SetBranchAddress("sim_event", &sim_event, &b_sim_event); fChain->SetBranchAddress("sim_bunchCrossing", &sim_bunchCrossing, &b_sim_bunchCrossing); fChain->SetBranchAddress("sim_pdgId", &sim_pdgId, &b_sim_pdgId); fChain->SetBranchAddress("sim_genPdgIds", &sim_genPdgIds, &b_sim_genPdgIds); fChain->SetBranchAddress("sim_isFromBHadron", &sim_isFromBHadron, &b_sim_isFromBHadron); fChain->SetBranchAddress("sim_px", &sim_px, &b_sim_px); fChain->SetBranchAddress("sim_py", &sim_py, &b_sim_py); fChain->SetBranchAddress("sim_pz", &sim_pz, &b_sim_pz); fChain->SetBranchAddress("sim_pt", &sim_pt, &b_sim_pt); fChain->SetBranchAddress("sim_eta", &sim_eta, &b_sim_eta); fChain->SetBranchAddress("sim_phi", &sim_phi, &b_sim_phi); fChain->SetBranchAddress("sim_pca_pt", &sim_pca_pt, &b_sim_pca_pt); fChain->SetBranchAddress("sim_pca_eta", &sim_pca_eta, &b_sim_pca_eta); fChain->SetBranchAddress("sim_pca_lambda", &sim_pca_lambda, &b_sim_pca_lambda); fChain->SetBranchAddress("sim_pca_cotTheta", &sim_pca_cotTheta, &b_sim_pca_cotTheta); fChain->SetBranchAddress("sim_pca_phi", &sim_pca_phi, &b_sim_pca_phi); fChain->SetBranchAddress("sim_pca_dxy", &sim_pca_dxy, &b_sim_pca_dxy); fChain->SetBranchAddress("sim_pca_dz", &sim_pca_dz, &b_sim_pca_dz); fChain->SetBranchAddress("sim_q", &sim_q, &b_sim_q); fChain->SetBranchAddress("sim_nValid", &sim_nValid, &b_sim_nValid); fChain->SetBranchAddress("sim_nPixel", &sim_nPixel, &b_sim_nPixel); fChain->SetBranchAddress("sim_nStrip", &sim_nStrip, &b_sim_nStrip); fChain->SetBranchAddress("sim_nLay", &sim_nLay, &b_sim_nLay); fChain->SetBranchAddress("sim_nPixelLay", &sim_nPixelLay, &b_sim_nPixelLay); fChain->SetBranchAddress("sim_n3DLay", &sim_n3DLay, &b_sim_n3DLay); fChain->SetBranchAddress("sim_trkIdx", &sim_trkIdx, &b_sim_trkIdx); fChain->SetBranchAddress("sim_shareFrac", &sim_shareFrac, &b_sim_shareFrac); fChain->SetBranchAddress("sim_seedIdx", &sim_seedIdx, &b_sim_seedIdx); fChain->SetBranchAddress("sim_parentVtxIdx", &sim_parentVtxIdx, &b_sim_parentVtxIdx); fChain->SetBranchAddress("sim_decayVtxIdx", &sim_decayVtxIdx, &b_sim_decayVtxIdx); fChain->SetBranchAddress("bsp_x", &bsp_x, &b_bsp_x); fChain->SetBranchAddress("bsp_y", &bsp_y, &b_bsp_y); fChain->SetBranchAddress("bsp_z", &bsp_z, &b_bsp_z); fChain->SetBranchAddress("bsp_sigmax", &bsp_sigmax, &b_bsp_sigmax); fChain->SetBranchAddress("bsp_sigmay", &bsp_sigmay, &b_bsp_sigmay); fChain->SetBranchAddress("bsp_sigmaz", &bsp_sigmaz, &b_bsp_sigmaz); fChain->SetBranchAddress("see_fitok", &see_fitok, &b_see_fitok); fChain->SetBranchAddress("see_px", &see_px, &b_see_px); fChain->SetBranchAddress("see_py", &see_py, &b_see_py); fChain->SetBranchAddress("see_pz", &see_pz, &b_see_pz); fChain->SetBranchAddress("see_pt", &see_pt, &b_see_pt); fChain->SetBranchAddress("see_eta", &see_eta, &b_see_eta); fChain->SetBranchAddress("see_phi", &see_phi, &b_see_phi); fChain->SetBranchAddress("see_dxy", &see_dxy, &b_see_dxy); fChain->SetBranchAddress("see_dz", &see_dz, &b_see_dz); fChain->SetBranchAddress("see_ptErr", &see_ptErr, &b_see_ptErr); fChain->SetBranchAddress("see_etaErr", &see_etaErr, &b_see_etaErr); fChain->SetBranchAddress("see_phiErr", &see_phiErr, &b_see_phiErr); fChain->SetBranchAddress("see_dxyErr", &see_dxyErr, &b_see_dxyErr); fChain->SetBranchAddress("see_dzErr", &see_dzErr, &b_see_dzErr); fChain->SetBranchAddress("see_chi2", &see_chi2, &b_see_chi2); fChain->SetBranchAddress("see_statePt", &see_statePt, &b_see_statePt); fChain->SetBranchAddress("see_stateTrajX", &see_stateTrajX, &b_see_stateTrajX); fChain->SetBranchAddress("see_stateTrajY", &see_stateTrajY, &b_see_stateTrajY); fChain->SetBranchAddress("see_stateTrajPx", &see_stateTrajPx, &b_see_stateTrajPx); fChain->SetBranchAddress("see_stateTrajPy", &see_stateTrajPy, &b_see_stateTrajPy); fChain->SetBranchAddress("see_stateTrajPz", &see_stateTrajPz, &b_see_stateTrajPz); fChain->SetBranchAddress("see_q", &see_q, &b_see_q); fChain->SetBranchAddress("see_nValid", &see_nValid, &b_see_nValid); fChain->SetBranchAddress("see_nPixel", &see_nPixel, &b_see_nPixel); fChain->SetBranchAddress("see_nGlued", &see_nGlued, &b_see_nGlued); fChain->SetBranchAddress("see_nStrip", &see_nStrip, &b_see_nStrip); fChain->SetBranchAddress("see_nPhase2OT", &see_nPhase2OT, &b_see_nPhase2OT); fChain->SetBranchAddress("see_algo", &see_algo, &b_see_algo); fChain->SetBranchAddress("see_stopReason", &see_stopReason, &b_see_stopReason); fChain->SetBranchAddress("see_trkIdx", &see_trkIdx, &b_see_trkIdx); fChain->SetBranchAddress("see_shareFrac", &see_shareFrac, &b_see_shareFrac); fChain->SetBranchAddress("see_simTrkIdx", &see_simTrkIdx, &b_see_simTrkIdx); fChain->SetBranchAddress("see_offset", &see_offset, &b_see_offset); fChain->SetBranchAddress("see_Et", &see_Et, &b_see_Et); fChain->SetBranchAddress("see_hoe", &see_hoe, &b_see_hoe); fChain->SetBranchAddress("see_isBarrel", &see_isBarrel, &b_see_isBarrel); fChain->SetBranchAddress("see_layerOrDiskNr", &see_layerOrDiskNr, &b_see_layerOrDiskNr); fChain->SetBranchAddress("see_isValidPos", &see_isValidPos, &b_see_isValidPos); fChain->SetBranchAddress("see_dRZPos", &see_dRZPos, &b_see_dRZPos); fChain->SetBranchAddress("see_dPhiPos", &see_dPhiPos, &b_see_dPhiPos); fChain->SetBranchAddress("see_isValidNeg", &see_isValidNeg, &b_see_isValidNeg); fChain->SetBranchAddress("see_dRZNeg", &see_dRZNeg, &b_see_dRZNeg); fChain->SetBranchAddress("see_dPhiNeg", &see_dPhiNeg, &b_see_dPhiNeg); fChain->SetBranchAddress("see_isECALDriven", &see_isECALDriven, &b_see_isECALDriven); fChain->SetBranchAddress("see_sclIdx", &see_sclIdx, &b_see_sclIdx); fChain->SetBranchAddress("initsee_cnt", &initsee_cnt, &b_initsee_cnt); fChain->SetBranchAddress("initsee_tot", &initsee_tot, &b_initsee_tot); fChain->SetBranchAddress("vtx_x", &vtx_x, &b_vtx_x); fChain->SetBranchAddress("vtx_y", &vtx_y, &b_vtx_y); fChain->SetBranchAddress("vtx_z", &vtx_z, &b_vtx_z); fChain->SetBranchAddress("vtx_xErr", &vtx_xErr, &b_vtx_xErr); fChain->SetBranchAddress("vtx_yErr", &vtx_yErr, &b_vtx_yErr); fChain->SetBranchAddress("vtx_zErr", &vtx_zErr, &b_vtx_zErr); fChain->SetBranchAddress("vtx_ndof", &vtx_ndof, &b_vtx_ndof); fChain->SetBranchAddress("vtx_chi2", &vtx_chi2, &b_vtx_chi2); fChain->SetBranchAddress("vtx_fake", &vtx_fake, &b_vtx_fake); fChain->SetBranchAddress("vtx_valid", &vtx_valid, &b_vtx_valid); fChain->SetBranchAddress("vtx_trkIdx", &vtx_trkIdx, &b_vtx_trkIdx); fChain->SetBranchAddress("gen_px", &gen_px, &b_gen_px); fChain->SetBranchAddress("gen_py", &gen_py, &b_gen_py); fChain->SetBranchAddress("gen_pz", &gen_pz, &b_gen_pz); fChain->SetBranchAddress("gen_charge", &gen_charge, &b_gen_charge); fChain->SetBranchAddress("gen_pdgId", &gen_pdgId, &b_gen_pdgId); fChain->SetBranchAddress("gen_vx", &gen_vx, &b_gen_vx); fChain->SetBranchAddress("gen_vy", &gen_vy, &b_gen_vy); fChain->SetBranchAddress("gen_vz", &gen_vz, &b_gen_vz); fChain->SetBranchAddress("gen_status", &gen_status, &b_gen_status); fChain->SetBranchAddress("gen_mother", &gen_mother, &b_gen_mother); fChain->SetBranchAddress("gen_isTauDecayProduct", &gen_isTauDecayProduct, &b_gen_isTauDecayProduct); fChain->SetBranchAddress("gen_isDirectHadronDecayProduct", &gen_isDirectHadronDecayProduct, &b_gen_isDirectHadronDecayProduct); fChain->SetBranchAddress("gen_isPrompt", &gen_isPrompt, &b_gen_isPrompt); fChain->SetBranchAddress("simvtx_event", &simvtx_event, &b_simvtx_event); fChain->SetBranchAddress("simvtx_bunchCrossing", &simvtx_bunchCrossing, &b_simvtx_bunchCrossing); fChain->SetBranchAddress("simvtx_processType", &simvtx_processType, &b_simvtx_processType); fChain->SetBranchAddress("simvtx_x", &simvtx_x, &b_simvtx_x); fChain->SetBranchAddress("simvtx_y", &simvtx_y, &b_simvtx_y); fChain->SetBranchAddress("simvtx_z", &simvtx_z, &b_simvtx_z); fChain->SetBranchAddress("simvtx_sourceSimIdx", &simvtx_sourceSimIdx, &b_simvtx_sourceSimIdx); fChain->SetBranchAddress("simvtx_daughterSimIdx", &simvtx_daughterSimIdx, &b_simvtx_daughterSimIdx); fChain->SetBranchAddress("simpv_idx", &simpv_idx, &b_simpv_idx); fChain->SetBranchAddress("scl_e", &scl_e, &b_scl_e); fChain->SetBranchAddress("scl_px", &scl_px, &b_scl_px); fChain->SetBranchAddress("scl_py", &scl_py, &b_scl_py); fChain->SetBranchAddress("scl_pz", &scl_pz, &b_scl_pz); fChain->SetBranchAddress("scl_x", &scl_x, &b_scl_x); fChain->SetBranchAddress("scl_y", &scl_y, &b_scl_y); fChain->SetBranchAddress("scl_z", &scl_z, &b_scl_z); fChain->SetBranchAddress("scl_hoe", &scl_hoe, &b_scl_hoe); fChain->SetBranchAddress("truePileup", &truePileup, &b_truePileup); fChain->SetBranchAddress("inTimePileup", &inTimePileup, &b_inTimePileup); fChain->SetBranchAddress("outOfTimePileup", &outOfTimePileup, &b_outOfTimePileup); Notify(); } Bool_t TrackingNtuple::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 TrackingNtuple::Show(Long64_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (!fChain) return; fChain->Show(entry); } Int_t TrackingNtuple::Cut(Long64_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. return 1; } #endif // #ifdef tree_cxx