////////////////////////////////////////////////////////// // This class has been automatically generated on // Tue Feb 16 14:06:46 2016 by ROOT version 5.34/32 // from TTree outTree/outTree // found on file: user.bawa.7531825._000086.tree.root ////////////////////////////////////////////////////////// #ifndef Analysis_h #define Analysis_h #include #include #include // Header file for the classes stored in the TTree if any. #include // Fixed size dimensions of array or collections 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 // Declaration of leaf types Int_t runNumber; Int_t eventNumber; Int_t mcEventNumber; Int_t mcChannelNumber; Float_t mcEventWeight; Int_t njets; Float_t yStar; Float_t yBoost; Float_t mjj; Float_t pTjj; Float_t m3j; Float_t deltaPhi; Float_t weight_corr; Float_t weight; Float_t weight_xs; vector *jet_detEta; Int_t njets; vector *jet_E; vector *jet_pt; vector *jet_phi; vector *jet_eta; // List of branches TBranch *b_runNumber; //! TBranch *b_eventNumber; //! TBranch *b_mcEventNumber; //! TBranch *b_mcChannelNumber; //! TBranch *b_mcEventWeight; //! TBranch *b_njets; //! TBranch *b_yStar; //! TBranch *b_yBoost; //! TBranch *b_mjj; //! TBranch *b_pTjj; //! TBranch *b_m3j; //! TBranch *b_deltaPhi; //! TBranch *b_weight_corr; //! TBranch *b_weight; //! TBranch *b_weight_xs; //! TBranch *b_jet_detEta; //! TBranch *b_njets; //! TBranch *b_jet_E; //! TBranch *b_jet_pt; //! TBranch *b_jet_phi; //! TBranch *b_jet_eta; //! 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("user.bawa.7531825._000086.tree.root"); if (!f || !f->IsOpen()) { f = new TFile("user.bawa.7531825._000086.tree.root"); } f->GetObject("outTree",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 object pointer jet_detEta = 0; jet_E = 0; jet_pt = 0; jet_phi = 0; jet_eta = 0; // Set branch addresses and branch pointers if (!tree) return; fChain = tree; fCurrent = -1; fChain->SetMakeClass(1); fChain->SetBranchAddress("runNumber", &runNumber, &b_runNumber); fChain->SetBranchAddress("eventNumber", &eventNumber, &b_eventNumber); fChain->SetBranchAddress("mcEventNumber", &mcEventNumber, &b_mcEventNumber); fChain->SetBranchAddress("mcChannelNumber", &mcChannelNumber, &b_mcChannelNumber); fChain->SetBranchAddress("mcEventWeight", &mcEventWeight, &b_mcEventWeight); fChain->SetBranchAddress("njets", &njets, &b_njets); fChain->SetBranchAddress("yStar", &yStar, &b_yStar); fChain->SetBranchAddress("yBoost", &yBoost, &b_yBoost); fChain->SetBranchAddress("mjj", &mjj, &b_mjj); fChain->SetBranchAddress("pTjj", &pTjj, &b_pTjj); fChain->SetBranchAddress("m3j", &m3j, &b_m3j); fChain->SetBranchAddress("deltaPhi", &deltaPhi, &b_deltaPhi); fChain->SetBranchAddress("weight_corr", &weight_corr, &b_weight_corr); fChain->SetBranchAddress("weight", &weight, &b_weight); fChain->SetBranchAddress("weight_xs", &weight_xs, &b_weight_xs); fChain->SetBranchAddress("jet_detEta", &jet_detEta, &b_jet_detEta); // fChain->SetBranchAddress("njets", &njets, &b_njets); fChain->SetBranchAddress("jet_E", &jet_E, &b_jet_E); fChain->SetBranchAddress("jet_pt", &jet_pt, &b_jet_pt); fChain->SetBranchAddress("jet_phi", &jet_phi, &b_jet_phi); fChain->SetBranchAddress("jet_eta", &jet_eta, &b_jet_eta); 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