////////////////////////////////////////////////////////// // This class has been automatically generated // (Wed Mar 10 16:10:03 2004 by ROOT version3.05/07) // from TTree Global/Global // found on file: testdata.root ////////////////////////////////////////////////////////// #ifndef testGlobal_h #define testGlobal_h #include #include #include class testGlobal { 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 JCCA_jc7_size; Double_t JCCA_jc7_Ecor[20]; //[jc7_size] Float_t JCCA_jc7_CCMGF[20]; //[jc7_size] Float_t JCCA_jc7_CHF[20]; //[jc7_size] Float_t JCCA_jc7_E[20]; //[jc7_size] Float_t JCCA_jc7_ECMGF[20]; //[jc7_size] Float_t JCCA_jc7_EM1F[20]; //[jc7_size] Float_t JCCA_jc7_EM2F[20]; //[jc7_size] Float_t JCCA_jc7_EM3F[20]; //[jc7_size] Float_t JCCA_jc7_EM4F[20]; //[jc7_size] Float_t JCCA_jc7_EMF[20]; //[jc7_size] Float_t JCCA_jc7_Eta[20]; //[jc7_size] Float_t JCCA_jc7_EtaD[20]; //[jc7_size] Float_t JCCA_jc7_EtaW[20]; //[jc7_size] Float_t JCCA_jc7_FH1F[20]; //[jc7_size] Float_t JCCA_jc7_FH2F[20]; //[jc7_size] Float_t JCCA_jc7_FH3F[20]; //[jc7_size] Float_t JCCA_jc7_HotF[20]; //[jc7_size] Float_t JCCA_jc7_ICDF[20]; //[jc7_size] Float_t JCCA_jc7_ICDMGF[20]; //[jc7_size] Float_t JCCA_jc7_JES[20]; //[jc7_size] Float_t JCCA_jc7_L1ET[20]; //[jc7_size] Float_t JCCA_jc7_PT[20]; //[jc7_size] Float_t JCCA_jc7_Phi[20]; //[jc7_size] Float_t JCCA_jc7_PhiD[20]; //[jc7_size] Float_t JCCA_jc7_PhiW[20]; //[jc7_size] Float_t JCCA_jc7_Px[20]; //[jc7_size] Float_t JCCA_jc7_Py[20]; //[jc7_size] Float_t JCCA_jc7_Pz[20]; //[jc7_size] Float_t JCCA_jc7_Wdth[20]; //[jc7_size] Float_t JCCA_jc7_f90[20]; //[jc7_size] Float_t JCCA_jc7_stat[20]; //[jc7_size] Float_t JCCA_jc7_syst[20]; //[jc7_size] Short_t JCCA_jc7_NTwr[20]; //[jc7_size] Short_t JCCA_jc7_SMW[20]; //[jc7_size] Short_t JCCA_jc7_n90[20]; //[jc7_size] //List of branches TBranch *b_JCCA; //! testGlobal(TTree *tree=0); ~testGlobal(); 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 testGlobal_cxx testGlobal::testGlobal(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("testdata.root"); if (!f) { f = new TFile("testdata.root"); } tree = (TTree*)gDirectory->Get("Global"); } Init(tree); } testGlobal::~testGlobal() { if (!fChain) return; delete fChain->GetCurrentFile(); } Int_t testGlobal::GetEntry(Int_t entry) { // Read contents of entry. if (!fChain) return 0; return fChain->GetEntry(entry); } Int_t testGlobal::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 testGlobal::Init(TTree *tree) { // Set branch addresses if (tree == 0) return; fChain = tree; fCurrent = -1; fChain->SetMakeClass(1); fChain->SetBranchAddress("JCCA",&JCCA_jc7_size); Notify(); } Bool_t testGlobal::Notify() { // Called when loading a new file. // Get branch pointers. b_JCCA = fChain->GetBranch("JCCA"); return kTRUE; } void testGlobal::Show(Int_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (!fChain) return; fChain->Show(entry); } Int_t testGlobal::Cut(Int_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. return 1; } #endif // #ifdef testGlobal_cxx