////////////////////////////////////////////////////////// // This class has been automatically generated // (Tue Oct 16 11:43:08 2001 by ROOT version3.01/06) // from TTree Global/Global // found on file: RecoAnalyze131514_1.root ////////////////////////////////////////////////////////// #ifndef Nada_look_h #define Nada_look_h #include #include #include class Nada_look { 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 CAL_ncal; Float_t CAL_e_cal[9000]; Int_t CAL_ieta_cal[9000]; Int_t CAL_ilyr_cal[9000]; Int_t CAL_iphi_cal[9000]; Float_t CAL_pt_cal[9000]; Int_t JETS_c_njets_c; Float_t JETS_c_E_c[20]; Float_t JETS_c_emE_c[20]; Float_t JETS_c_eta_c[20]; Int_t JETS_c_nbTwr_c[20]; Float_t JETS_c_phi_c[20]; Float_t JETS_c_pt_c[20]; Float_t JETS_c_px_c[20]; Float_t JETS_c_py_c[20]; Float_t JETS_c_pz_c[20]; Int_t NADA_nnadamax; Int_t NADA_nsets; Float_t NADA_e_nad[100][3]; Float_t NADA_emax_cub[3]; Float_t NADA_emin_cel[3]; Float_t NADA_etmi_can[3]; Int_t NADA_ieta_nad[100][3]; Int_t NADA_ilyr_nad[100][3]; Int_t NADA_iphi_nad[100][3]; Int_t NADA_nnada[3]; Float_t NADA_pt_nad[100][3]; //List of branches TBranch *b_CAL; TBranch *b_JETS_c; TBranch *b_NADA; Nada_look(TTree *tree=0); ~Nada_look(); 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); Float_t Ledr(Float_t&, Float_t&, Float_t&, Float_t&); }; #endif #ifdef Nada_look_cxx Nada_look::Nada_look(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("RecoAnalyze.root"); if (!f) { f = new TFile("RecoAnalyze.root"); } tree = (TTree*)gDirectory->Get("Global"); } Init(tree); } Nada_look::~Nada_look() { if (!fChain) return; delete fChain->GetCurrentFile(); } Int_t Nada_look::GetEntry(Int_t entry) { // Read contents of entry. if (!fChain) return 0; return fChain->GetEntry(entry); } Int_t Nada_look::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 Nada_look::Init(TTree *tree) { // Set branch addresses if (tree == 0) return; fChain = tree; fCurrent = -1; fChain->SetMakeClass(1); fChain->SetBranchAddress("CAL",&CAL_ncal); fChain->SetBranchAddress("JETS_c",&JETS_c_njets_c); fChain->SetBranchAddress("NADA",&NADA_nnadamax); Notify(); } Bool_t Nada_look::Notify() { // called when loading a new file // get branch pointers b_CAL = fChain->GetBranch("CAL"); b_JETS_c = fChain->GetBranch("JETS_c"); b_NADA = fChain->GetBranch("NADA"); return kTRUE; } void Nada_look::Show(Int_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (!fChain) return; fChain->Show(entry); } Int_t Nada_look::Cut(Int_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. return 1; } #endif // #ifdef Nada_look_cxx