////////////////////////////////////////////////////////// // This class has been automatically generated on // Mon Jan 8 09:07:56 2018 by ROOT version 6.12/04 // from TTree Analysis/Analysis // found on file: RunOutput.root ////////////////////////////////////////////////////////// #ifndef Analysis_h #define Analysis_h #include #include #include // Header file for the classes stored in the TTree if any. class Analysis { public : TTree *fChain; //!pointer to the analyzed TTree or TChain Int_t fCurrent; //!current Tree number in a TChain // Fixed size dimensions of array or collections stored in the TTree if any. // Declaration of leaf types Int_t nev; Float_t Bgen; Float_t Sigin; Float_t Sigjet; Int_t Ntot; Int_t Nhyd; Int_t Npyt; Int_t Njet; Int_t Nbcol; Int_t Npart; Float_t Px[17888]; //[Ntot] Float_t Py[17888]; //[Ntot] Float_t Pz[17888]; //[Ntot] Float_t E[17888]; //[Ntot] Float_t X[17888]; //[Ntot] Float_t Y[17888]; //[Ntot] Float_t Z[17888]; //[Ntot] Float_t T[17888]; //[Ntot] Int_t pdg[17888]; //[Ntot] Int_t Mpdg[17888]; //[Ntot] Int_t type[17888]; //[Ntot] Int_t pythiaStatus[17888]; //[Ntot] Int_t Index[17888]; //[Ntot] Int_t MotherIndex[17888]; //[Ntot] Int_t NDaughters[17888]; //[Ntot] Int_t FirstDaughterIndex[17888]; //[Ntot] Int_t LastDaughterIndex[17888]; //[Ntot] Int_t final[17888]; //[Ntot] // List of branches TBranch *b_nev; //! TBranch *b_Bgen; //! TBranch *b_Sigin; //! TBranch *b_Sigjet; //! TBranch *b_Ntot; //! TBranch *b_Nhyd; //! TBranch *b_Npyt; //! TBranch *b_Njet; //! TBranch *b_Nbcol; //! TBranch *b_Npart; //! TBranch *b_Px; //! TBranch *b_Py; //! TBranch *b_Pz; //! TBranch *b_E; //! TBranch *b_X; //! TBranch *b_Y; //! TBranch *b_Z; //! TBranch *b_T; //! TBranch *b_pdg; //! TBranch *b_Mpdg; //! TBranch *b_type; //! TBranch *b_pythiaStatus; //! TBranch *b_Index; //! TBranch *b_MotherIndex; //! TBranch *b_NDaughters; //! TBranch *b_FirstDaughterIndex; //! TBranch *b_LastDaughterIndex; //! TBranch *b_final; //! Analysis(TTree *tree=0); virtual ~Analysis(); 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 Analysis_cxx Analysis::Analysis(TTree *tree) : fChain(0) { // 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("RunOutput.root"); if (!f || !f->IsOpen()) { f = new TFile("RunOutput.root"); } f->GetObject("Analysis",tree); } Init(tree); } Analysis::~Analysis() { if (!fChain) return; delete fChain->GetCurrentFile(); } Int_t Analysis::GetEntry(Long64_t entry) { // Read contents of entry. if (!fChain) return 0; return fChain->GetEntry(entry); } Long64_t Analysis::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->GetTreeNumber() != fCurrent) { fCurrent = fChain->GetTreeNumber(); Notify(); } return centry; } void Analysis::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 branch addresses and branch pointers if (!tree) return; fChain = tree; fCurrent = -1; fChain->SetMakeClass(1); fChain->SetBranchAddress("nev", &nev, &b_nev); fChain->SetBranchAddress("Bgen", &Bgen, &b_Bgen); fChain->SetBranchAddress("Sigin", &Sigin, &b_Sigin); fChain->SetBranchAddress("Sigjet", &Sigjet, &b_Sigjet); fChain->SetBranchAddress("Ntot", &Ntot, &b_Ntot); fChain->SetBranchAddress("Nhyd", &Nhyd, &b_Nhyd); fChain->SetBranchAddress("Npyt", &Npyt, &b_Npyt); fChain->SetBranchAddress("Njet", &Njet, &b_Njet); fChain->SetBranchAddress("Nbcol", &Nbcol, &b_Nbcol); fChain->SetBranchAddress("Npart", &Npart, &b_Npart); fChain->SetBranchAddress("Px", Px, &b_Px); fChain->SetBranchAddress("Py", Py, &b_Py); fChain->SetBranchAddress("Pz", Pz, &b_Pz); fChain->SetBranchAddress("E", E, &b_E); fChain->SetBranchAddress("X", X, &b_X); fChain->SetBranchAddress("Y", Y, &b_Y); fChain->SetBranchAddress("Z", Z, &b_Z); fChain->SetBranchAddress("T", T, &b_T); fChain->SetBranchAddress("pdg", pdg, &b_pdg); fChain->SetBranchAddress("Mpdg", Mpdg, &b_Mpdg); fChain->SetBranchAddress("type", type, &b_type); fChain->SetBranchAddress("pythiaStatus", pythiaStatus, &b_pythiaStatus); fChain->SetBranchAddress("Index", Index, &b_Index); fChain->SetBranchAddress("MotherIndex", MotherIndex, &b_MotherIndex); fChain->SetBranchAddress("NDaughters", NDaughters, &b_NDaughters); fChain->SetBranchAddress("FirstDaughterIndex", FirstDaughterIndex, &b_FirstDaughterIndex); fChain->SetBranchAddress("LastDaughterIndex", LastDaughterIndex, &b_LastDaughterIndex); fChain->SetBranchAddress("final", final, &b_final); Notify(); } Bool_t Analysis::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 Analysis::Show(Long64_t entry) { // Print contents of entry. // If entry is not specified, print current entry if (!fChain) return; fChain->Show(entry); } Int_t Analysis::Cut(Long64_t entry) { // This function may be called from Loop. // returns 1 if entry is accepted. // returns -1 otherwise. return 1; } #endif // #ifdef Analysis_cxx