////////////////////////////////////////////////////////// // This class has been automatically generated on // Sat Sep 12 08:07:21 2009 by ROOT version 5.22/00b // from TTree Events/ // found on file: evtplane_PbPb_RECO.root ////////////////////////////////////////////////////////// #ifndef Events_h #define Events_h #include #include #include const Int_t kMaxrecoEvtPlanes_hiEvtPlane_recoLevel_RP = 1; const Int_t kMaxrecoEvtPlanes_hiEvtPlane_recoLevel_RP_obj = 6; const Int_t kMaxrecoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_label = 6; const Int_t kMaxrecoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_angle = 6; const Int_t kMaxrecoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_sumSin = 6; const Int_t kMaxrecoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_sumCos = 6; class Events { public : TTree *fChain; //!pointer to the analyzed TTree or TChain Int_t fCurrent; //!current Tree number in a TChain // Declaration of leaf types edm::EventAuxiliary *EventAuxiliary; //edm::Wrapper > *recoEvtPlanes_hiEvtPlane_recoLevel_RP.; Bool_t recoEvtPlanes_hiEvtPlane_recoLevel_RP_present; Int_t recoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_; string recoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_label_[kMaxrecoEvtPlanes_hiEvtPlane_recoLevel_RP_obj]; Double_t recoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_angle_[kMaxrecoEvtPlanes_hiEvtPlane_recoLevel_RP_obj]; //[recoEvtPlanes_hiEvtPlane_recoLevel_RP.obj_] Double_t recoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_sumSin_[kMaxrecoEvtPlanes_hiEvtPlane_recoLevel_RP_obj]; //[recoEvtPlanes_hiEvtPlane_recoLevel_RP.obj_] Double_t recoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_sumCos_[kMaxrecoEvtPlanes_hiEvtPlane_recoLevel_RP_obj]; //[recoEvtPlanes_hiEvtPlane_recoLevel_RP.obj_] // List of branches TBranch *b_EventAuxiliary; //! TBranch *b_recoEvtPlanes_hiEvtPlane_recoLevel_RP_present; //! TBranch *b_recoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_; //! TBranch *b_recoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_label_; //! TBranch *b_recoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_angle_; //! TBranch *b_recoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_sumSin_; //! TBranch *b_recoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_sumCos_; //! Events(TTree *tree=0); virtual ~Events(); 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 void Loop(); virtual Bool_t Notify(); virtual void Show(Long64_t entry = -1); }; #endif #ifdef Events_cxx Events::Events(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("evtplane_PbPb_RECO.root"); if (!f) { f = new TFile("evtplane_PbPb_RECO.root"); } tree = (TTree*)gDirectory->Get("Events"); } Init(tree); } Events::~Events() { if (!fChain) return; delete fChain->GetCurrentFile(); } Int_t Events::GetEntry(Long64_t entry) { // Read contents of entry. if (!fChain) return 0; return fChain->GetEntry(entry); } Long64_t Events::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->InheritsFrom(TChain::Class())) return centry; TChain *chain = (TChain*)fChain; if (chain->GetTreeNumber() != fCurrent) { fCurrent = chain->GetTreeNumber(); Notify(); } return centry; } void Events::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 EventAuxiliary = 0; // Set branch addresses and branch pointers if (!tree) return; fChain = tree; fCurrent = -1; fChain->SetMakeClass(1); fChain->SetBranchAddress("EventAuxiliary", &EventAuxiliary, &b_EventAuxiliary); fChain->SetBranchAddress("recoEvtPlanes_hiEvtPlane_recoLevel_RP.present", &recoEvtPlanes_hiEvtPlane_recoLevel_RP_present, &b_recoEvtPlanes_hiEvtPlane_recoLevel_RP_present); fChain->SetBranchAddress("recoEvtPlanes_hiEvtPlane_recoLevel_RP.obj", &recoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_, &b_recoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_); fChain->SetBranchAddress("recoEvtPlanes_hiEvtPlane_recoLevel_RP.obj.label_", recoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_label_, &b_recoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_label_); fChain->SetBranchAddress("recoEvtPlanes_hiEvtPlane_recoLevel_RP.obj.angle_", recoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_angle_, &b_recoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_angle_); fChain->SetBranchAddress("recoEvtPlanes_hiEvtPlane_recoLevel_RP.obj.sumSin_", recoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_sumSin_, &b_recoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_sumSin_); fChain->SetBranchAddress("recoEvtPlanes_hiEvtPlane_recoLevel_RP.obj.sumCos_", recoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_sumCos_, &b_recoEvtPlanes_hiEvtPlane_recoLevel_RP_obj_sumCos_); Notify(); } Bool_t Events::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 Events::Show(Long64_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (!fChain) return; fChain->Show(entry); } Int_t Events::Cut(Long64_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. return 1; } #endif // #ifdef Events_cxx