////////////////////////////////////////////////////////// // This class has been automatically generated // (Wed May 30 12:50:53 2001 by ROOT version2.26/00) // from TTree Global/Global // found on file: qcd_usdg_ptgt80.root ////////////////////////////////////////////////////////// #ifndef qcd_udsg_macro_h #define qcd_udsg_macro_h #include #include #include class qcd_udsg_macro { public : TTree *fChain; //pointer to the analyzed TTree or TChain Int_t fCurrent; //current Tree number in a TChain //Declaration of leaves types Int_t JCCG_JCCGnjet; Float_t JCCG_JCCGBAxN; Float_t JCCG_JCCGBAxP; Float_t JCCG_JCCGBAyN; Float_t JCCG_JCCGBAyP; Float_t JCCG_JCCGBCxN; Float_t JCCG_JCCGBCxP; Float_t JCCG_JCCGBCyN; Float_t JCCG_JCCGBCyP; Float_t JCCG_JCCGBIxN; Float_t JCCG_JCCGBIxP; Float_t JCCG_JCCGBIyN; Float_t JCCG_JCCGBIyP; Float_t JCCG_JCCGBNxN; Float_t JCCG_JCCGBNxP; Float_t JCCG_JCCGBNyN; Float_t JCCG_JCCGBNyP; Float_t JCCG_JCCGBSxN; Float_t JCCG_JCCGBSxP; Float_t JCCG_JCCGBSyN; Float_t JCCG_JCCGBSyP; Float_t JCCG_JCCGCHF[20]; Float_t JCCG_JCCGCPSE[20]; Float_t JCCG_JCCGE[20]; Float_t JCCG_JCCGEMF[20]; Float_t JCCG_JCCGEta[20]; Float_t JCCG_JCCGEtaW[20]; Float_t JCCG_JCCGFH1F[20]; Float_t JCCG_JCCGFH2F[20]; Float_t JCCG_JCCGFH3F[20]; Float_t JCCG_JCCGHotF[20]; Float_t JCCG_JCCGICRF[20]; Int_t JCCG_JCCGNitm[20]; Int_t JCCG_JCCGNps[20]; Int_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_JCCGdEta[20]; Float_t JCCG_JCCGdPhi[20]; Float_t JCCG_JCCGiPT[20]; Float_t JCCG_JCCGmxET[20]; Int_t JCCG_JCCGn90[20]; Float_t JCCG_JCCGsET[20]; Float_t JCCG_JCCGseed[20]; Int_t JCCG_JCCGsmw[20]; Float_t JCCG_JCCGvPT[20]; Float_t MET_MET; Float_t MET_METNE; Float_t MET_METWE; Float_t MET_MEphi; Float_t MET_MEphiNE; Float_t MET_MEphiWE; Float_t MET_MEx; Float_t MET_MExNE; Float_t MET_MExWE; Float_t MET_MEy; Float_t MET_MEyNE; Float_t MET_MEyWE; Float_t MET_SET; Float_t MET_SETNE; Float_t MET_SETWE; Float_t MET_Zvtx; Int_t N_Nring; Float_t N_NRETEMx[74]; Float_t N_NRETEMy[74]; Float_t N_NRETHDx[74]; Float_t N_NRETHDy[74]; //List of branches TBranch *b_JCCG; TBranch *b_MET; TBranch *b_N; qcd_udsg_macro(TTree *tree=0); ~qcd_udsg_macro(); Int_t Cut(Int_t entry); Int_t GetEntry(Int_t entry); Int_t LoadTree(Int_t entry); void Init(TTree *tree); void Loop(); Bool_t Notify(); void Show(Int_t entry = -1); }; #endif #ifdef qcd_udsg_macro_cxx qcd_udsg_macro::qcd_udsg_macro(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("qcd_usdg_ptgt80.root"); if (!f) { f = new TFile("qcd_usdg_ptgt80.root"); } tree = (TTree*)gDirectory->Get("Global"); } Init(tree); } qcd_udsg_macro::~qcd_udsg_macro() { if (!fChain) return; delete fChain->GetCurrentFile(); } Int_t qcd_udsg_macro::GetEntry(Int_t entry) { // Read contents of entry. if (!fChain) return 0; return fChain->GetEntry(entry); } Int_t qcd_udsg_macro::LoadTree(Int_t entry) { // Set the environment to read one entry if (!fChain) return -5; Int_t centry = fChain->LoadTree(entry); if (centry < 0) return centry; if (fChain->IsA() != TChain::Class()) return centry; TChain *chain = (TChain*)fChain; if (chain->GetTreeNumber() != fCurrent) { fCurrent = chain->GetTreeNumber(); Notify(); } return centry; } void qcd_udsg_macro::Init(TTree *tree) { // Set branch addresses if (tree == 0) return; fChain = tree; fCurrent = -1; fChain->SetBranchAddress("JCCG",&JCCG_JCCGnjet); fChain->SetBranchAddress("MET",&MET_MET); fChain->SetBranchAddress("N",&N_Nring); Notify(); } Bool_t qcd_udsg_macro::Notify() { // called when loading a new file // get branch pointers b_JCCG = fChain->GetBranch("JCCG"); b_MET = fChain->GetBranch("MET"); b_N = fChain->GetBranch("N"); return kTRUE; } void qcd_udsg_macro::Show(Int_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (!fChain) return; fChain->Show(entry); } Int_t qcd_udsg_macro::Cut(Int_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. return 1; } #endif // #ifdef qcd_udsg_macro_cxx