////////////////////////////////////////////////////////// // This class has been automatically generated // (Wed Aug 16 10:21:34 2000 by ROOT version 2.23/11) // from TTree Global/Global // found on file: hms-zee-example.root ////////////////////////////////////////////////////////// #ifndef emstudy_h #define emstudy_h #if !defined(__CINT__) || defined(__MAKECINT__) #include #include #endif class emstudy { public : TTree *fTree; //pointer to the analyzed TTree or TChain TTree *fCurrent; //pointer to the current TTree //Declaration of leaves types Int_t CH_nch; Float_t CH_chE[100]; Float_t CH_cheta[100]; Float_t CH_chphi[100]; Float_t CH_chpt[100]; Float_t CH_chpx[100]; Float_t CH_chpy[100]; Float_t CH_chpz[100]; Float_t CH_chq[100]; Int_t CH_matchpv[100]; Int_t CH_matchsv[100]; Float_t CH_pvtxchi2[100]; Float_t CH_svtxchi2[100]; Int_t CHMC_nchmc; Float_t CHMC_chmcE[100]; Float_t CHMC_chmceta[100]; Float_t CHMC_chmcphi[100]; Float_t CHMC_chmcpt[100]; Float_t CHMC_chmcpx[100]; Float_t CHMC_chmcpy[100]; Float_t CHMC_chmcpz[100]; Float_t CHMC_chmcq[100]; Float_t CHMC_r[100]; Int_t CHVTX_nchvtx; Float_t CHVTX_chxvtx[20]; Float_t CHVTX_chyvtx[20]; Float_t CHVTX_chzvtx[20]; Int_t EMPART_nempart; Float_t EMPART_E_core[4]; Float_t EMPART_E_iso[4]; Float_t EMPART_elike[4]; Float_t EMPART_emE[4]; Float_t EMPART_emeta[4]; Float_t EMPART_emfrac[4]; Int_t EMPART_emid[4]; Float_t EMPART_emmass; Float_t EMPART_emphi[4]; Float_t EMPART_empt[4]; Float_t EMPART_empx[4]; Float_t EMPART_empy[4]; Float_t EMPART_empz[4]; Float_t EMPART_fEM1[4]; Float_t EMPART_fEM2[4]; Float_t EMPART_fEM3[4]; Float_t EMPART_fEM4[4]; Float_t EMPART_fFH1[4]; Float_t EMPART_fPshwr[4]; Float_t EMPART_hm_chi2[4][2]; Float_t EMPART_iso[4]; Int_t EMPART_mtch_cl[4]; Int_t EMPART_mtch_cln[4]; Int_t EMPART_mtch_tr[4]; Float_t EMPART_xEM1[4]; Float_t EMPART_xEM2[4]; Float_t EMPART_xEM3[4]; Float_t EMPART_xEM4[4]; Float_t EMPART_xPshwr[4]; Float_t EMPART_yEM1[4]; Float_t EMPART_yEM2[4]; Float_t EMPART_yEM3[4]; Float_t EMPART_yEM4[4]; Float_t EMPART_yPshwr[4]; Float_t EMPART_zEM1[4]; Float_t EMPART_zEM2[4]; Float_t EMPART_zEM3[4]; Float_t EMPART_zEM4[4]; Float_t EMPART_zPshwr[4]; Int_t EvtInfo_MinB; Int_t EvtInfo_Nevt; Int_t EvtInfo_Nrun; Int_t GTRACK_ngtrk; Float_t GTRACK_dphidir[1000]; Float_t GTRACK_dqoverpt[1000]; Float_t GTRACK_drmin[1000]; Float_t GTRACK_drsig[1000]; Float_t GTRACK_dtanl[1000]; Float_t GTRACK_dzca[1000]; Int_t GTRACK_gtindex[1000]; Int_t GTRACK_mcidx[1000]; Int_t GTRACK_ncft[1000]; Int_t GTRACK_nsmt[1000]; Float_t GTRACK_phidir[1000]; Float_t GTRACK_qoverpt[1000]; Float_t GTRACK_rc[1000]; Float_t GTRACK_rsig[1000]; Float_t GTRACK_tanl[1000]; Float_t GTRACK_tanth[1000]; Float_t GTRACK_xc[1000]; Float_t GTRACK_yc[1000]; Float_t GTRACK_zc[1000]; Float_t GTRACK_zca[1000]; Float_t JCAL_JEME; Float_t JCAL_JHadE; Float_t JCAL_JTotalE; Int_t JCAL_Jncells; Int_t JCCG_JCCGnjet; Float_t JCCG_JCCGCHF[20]; Float_t JCCG_JCCGE[20]; Float_t JCCG_JCCGEMF[20]; Float_t JCCG_JCCGEta[20]; Float_t JCCG_JCCGEtaW[20]; Float_t JCCG_JCCGHotF[20]; Float_t JCCG_JCCGICDF[20]; Float_t JCCG_JCCGNitm[20]; Float_t JCCG_JCCGNps[20]; Float_t JCCG_JCCGNtrk[20]; Float_t JCCG_JCCGPT[20]; Float_t JCCG_JCCGPhi[20]; Float_t JCCG_JCCGPhiW[20]; Float_t JCCG_JCCGPx[20]; Float_t JCCG_JCCGPy[20]; Float_t JCCG_JCCGPz[20]; Float_t JCCG_JCCGmass; Float_t JCCG_JCCGn90[20]; Float_t JCCG_JCCGsET[20]; Float_t JCCG_JCCGvPT[20]; Int_t MCEM_nmcem; Float_t MCEM_emcE[4]; Float_t MCEM_emceta[4]; Int_t MCEM_emcid[4]; Float_t MCEM_emcmass; Float_t MCEM_emcphi[4]; Float_t MCEM_emcpt[4]; Float_t MCEM_emcpx[4]; Float_t MCEM_emcpy[4]; Float_t MCEM_emcpz[4]; Float_t MCEM_pmcvx; Float_t MCEM_pmcvy; Float_t MCEM_pmcvz; Int_t MCINFO_ngtrks; Int_t MCINFO_mcid[1000]; Int_t MCINFO_mult[1000]; Int_t MCTRK_nmctrk; Int_t MCTRK_gindex[5000]; Float_t MCTRK_gpx[5000]; Float_t MCTRK_gpy[5000]; Float_t MCTRK_gpz[5000]; Int_t MCTRK_gvtx[5000]; Int_t MCTRK_id[5000]; Int_t MCVTX_nmcvtx; Int_t MCVTX_gntrk[300]; Int_t MCVTX_gvflag[300]; Int_t MCVTX_gvtype[300]; Float_t MCVTX_gx[300]; Float_t MCVTX_gy[300]; Float_t MCVTX_gz[300]; Float_t MET_MET; Float_t MET_MEphi; Float_t MET_MEx; Float_t MET_MEy; Int_t PVRECO_prnvtx; Int_t PVRECO_prattgt0[100]; Int_t PVRECO_prattgt1[100]; Int_t PVRECO_prattgt2[100]; Int_t PVRECO_prattgt3[100]; Int_t PVRECO_prattgt4[100]; Int_t PVRECO_prattgt5[100]; Int_t PVRECO_prattgt6[100]; Int_t PVRECO_prattgt7[100]; Int_t PVRECO_prattgt8[100]; Int_t PVRECO_prattgt9[100]; Float_t PVRECO_prchisq[100]; Int_t PVRECO_prndof[100]; Int_t PVRECO_prntrk[100]; Float_t PVRECO_prsigx[100]; Float_t PVRECO_prsigy[100]; Float_t PVRECO_prsigz[100]; Float_t PVRECO_prx[100]; Float_t PVRECO_pry[100]; Float_t PVRECO_prz[100]; Int_t PVSEL_psnvtx; Int_t PVSEL_psattgt0[100]; Int_t PVSEL_psattgt1[100]; Int_t PVSEL_psattgt2[100]; Int_t PVSEL_psattgt3[100]; Int_t PVSEL_psattgt4[100]; Int_t PVSEL_psattgt5[100]; Int_t PVSEL_psattgt6[100]; Int_t PVSEL_psattgt7[100]; Int_t PVSEL_psattgt8[100]; Int_t PVSEL_psattgt9[100]; Float_t PVSEL_pschisq[100]; Int_t PVSEL_psndof[100]; Int_t PVSEL_psntrk[100]; Float_t PVSEL_pssigx[100]; Float_t PVSEL_pssigy[100]; Float_t PVSEL_pssigz[100]; Float_t PVSEL_psx[100]; Float_t PVSEL_psy[100]; Float_t PVSEL_psz[100]; Int_t SVRECO_srnvtx; Int_t SVRECO_srattgt0[100]; Int_t SVRECO_srattgt1[100]; Int_t SVRECO_srattgt2[100]; Int_t SVRECO_srattgt3[100]; Int_t SVRECO_srattgt4[100]; Int_t SVRECO_srattgt5[100]; Int_t SVRECO_srattgt6[100]; Int_t SVRECO_srattgt7[100]; Int_t SVRECO_srattgt8[100]; Int_t SVRECO_srattgt9[100]; Float_t SVRECO_srchisq[100]; Int_t SVRECO_srndof[100]; Int_t SVRECO_srntrk[100]; Float_t SVRECO_srsigx[100]; Float_t SVRECO_srsigy[100]; Float_t SVRECO_srsigz[100]; Float_t SVRECO_srx[100]; Float_t SVRECO_sry[100]; Float_t SVRECO_srz[100]; Int_t SVSEL_ssnvtx; Int_t SVSEL_ssattgt0[100]; Int_t SVSEL_ssattgt1[100]; Int_t SVSEL_ssattgt2[100]; Int_t SVSEL_ssattgt3[100]; Int_t SVSEL_ssattgt4[100]; Int_t SVSEL_ssattgt5[100]; Int_t SVSEL_ssattgt6[100]; Int_t SVSEL_ssattgt7[100]; Int_t SVSEL_ssattgt8[100]; Int_t SVSEL_ssattgt9[100]; Float_t SVSEL_sschisq[100]; Int_t SVSEL_ssndof[100]; Int_t SVSEL_ssntrk[100]; Float_t SVSEL_sssigx[100]; Float_t SVSEL_sssigy[100]; Float_t SVSEL_sssigz[100]; Float_t SVSEL_ssx[100]; Float_t SVSEL_ssy[100]; Float_t SVSEL_ssz[100]; Int_t TAU_ntaus; Float_t TAU_tauE[4]; Float_t TAU_tauchf[4]; Float_t TAU_tauemf[4]; Float_t TAU_taueta[4]; Float_t TAU_tauhot[4]; Float_t TAU_tauicdf[4]; Float_t TAU_taumass; Float_t TAU_tauntrk[4]; Float_t TAU_tauphi[4]; Float_t TAU_tauprf[4]; Float_t TAU_taupt[4]; Float_t TAU_taupx[4]; Float_t TAU_taupy[4]; Float_t TAU_taupz[4]; Float_t TAU_taurms[4]; Int_t TRK_ntrk; Float_t TRK_pvx; Float_t TRK_pvy; Float_t TRK_pvz; Float_t TRK_tE[4]; Float_t TRK_teta[4]; Int_t TRK_tid[4]; Float_t TRK_tmass; Float_t TRK_tphi[4]; Float_t TRK_tpt[4]; Float_t TRK_tpx[4]; Float_t TRK_tpy[4]; Float_t TRK_tpz[4]; //List of branches TBranch *b_CH; TBranch *b_CHMC; TBranch *b_CHVTX; TBranch *b_EMPART; TBranch *b_EvtInfo; TBranch *b_GTRACK; TBranch *b_JCAL; TBranch *b_JCCG; TBranch *b_MCEM; TBranch *b_MCINFO; TBranch *b_MCTRK; TBranch *b_MCVTX; TBranch *b_MET; TBranch *b_PVRECO; TBranch *b_PVSEL; TBranch *b_SVRECO; TBranch *b_SVSEL; TBranch *b_TAU; TBranch *b_TRK; emstudy(TTree *tree=0); ~emstudy() {;} Int_t GetEntry(Int_t entry); Int_t LoadTree(Int_t entry); void Init(TTree *tree); void Loop(); void Notify(); void Show(Int_t entry = -1); bool emobject(const Int_t index); }; #endif #ifdef emstudy_cxx emstudy::emstudy(TTree *tree) { // 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("hms-zee-example.root"); if (!f) { f = new TFile("hms-zee-example.root"); } tree = (TTree*)gDirectory->Get("Global"); } Init(tree); } Int_t emstudy::GetEntry(Int_t entry) { // Read contents of entry. if (!fTree) return 0; return fTree->GetEntry(entry); } Int_t emstudy::LoadTree(Int_t entry) { // Set the environment to read one entry if (!fTree) return -5; Int_t centry = fTree->LoadTree(entry); if (centry < 0) return centry; if (fTree->GetTree() != fCurrent) { fCurrent = fTree->GetTree(); Notify(); } return centry; } void emstudy::Init(TTree *tree) { // Set branch addresses if (tree == 0) return; fTree = tree; fCurrent = 0; fTree->SetBranchAddress("CH",&CH_nch); fTree->SetBranchAddress("CHMC",&CHMC_nchmc); fTree->SetBranchAddress("CHVTX",&CHVTX_nchvtx); fTree->SetBranchAddress("EMPART",&EMPART_nempart); fTree->SetBranchAddress("EvtInfo",&EvtInfo_MinB); fTree->SetBranchAddress("GTRACK",>RACK_ngtrk); fTree->SetBranchAddress("JCAL",&JCAL_JEME); fTree->SetBranchAddress("JCCG",&JCCG_JCCGnjet); fTree->SetBranchAddress("MCEM",&MCEM_nmcem); fTree->SetBranchAddress("MCINFO",&MCINFO_ngtrks); fTree->SetBranchAddress("MCTRK",&MCTRK_nmctrk); fTree->SetBranchAddress("MCVTX",&MCVTX_nmcvtx); fTree->SetBranchAddress("MET",&MET_MET); fTree->SetBranchAddress("PVRECO",&PVRECO_prnvtx); fTree->SetBranchAddress("PVSEL",&PVSEL_psnvtx); fTree->SetBranchAddress("SVRECO",&SVRECO_srnvtx); fTree->SetBranchAddress("SVSEL",&SVSEL_ssnvtx); fTree->SetBranchAddress("TAU",&TAU_ntaus); fTree->SetBranchAddress("TRK",&TRK_ntrk); } void emstudy::Notify() { // called by LoadTree when loading a new file // get branch pointers b_CH = fTree->GetBranch("CH"); b_CHMC = fTree->GetBranch("CHMC"); b_CHVTX = fTree->GetBranch("CHVTX"); b_EMPART = fTree->GetBranch("EMPART"); b_EvtInfo = fTree->GetBranch("EvtInfo"); b_GTRACK = fTree->GetBranch("GTRACK"); b_JCAL = fTree->GetBranch("JCAL"); b_JCCG = fTree->GetBranch("JCCG"); b_MCEM = fTree->GetBranch("MCEM"); b_MCINFO = fTree->GetBranch("MCINFO"); b_MCTRK = fTree->GetBranch("MCTRK"); b_MCVTX = fTree->GetBranch("MCVTX"); b_MET = fTree->GetBranch("MET"); b_PVRECO = fTree->GetBranch("PVRECO"); b_PVSEL = fTree->GetBranch("PVSEL"); b_SVRECO = fTree->GetBranch("SVRECO"); b_SVSEL = fTree->GetBranch("SVSEL"); b_TAU = fTree->GetBranch("TAU"); b_TRK = fTree->GetBranch("TRK"); } // added by me void emstudy::Show(Int_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (!fTree) return; fTree->Show(entry); } #endif // #ifdef emstudy_cxx // added by me #ifndef functions #define functions bool zpeak(const Real_t invmass); bool lowband(const Real_t invmass); bool highband(const Real_t invmass); bool sideband(const Real_t invmass); #endif