////////////////////////////////////////////////////////// // This class has been automatically generated on // Thu Sep 17 12:56:17 2009 by ROOT version 5.18/00a // from TTree eventTree/ Events // found on file: MacroTreeOutput.root ////////////////////////////////////////////////////////// #ifndef analysis_h #define analysis_h #include #include #include const Int_t kMaxJets = 5; const Int_t kMaxJets_vertex = 5; const Int_t kMaxJets_type = 5; const Int_t kMaxJets_charge = 5; const Int_t kMaxJets_genParticleIndex = 5; const Int_t kMaxJets_genParticle = 5; const Int_t kMaxJets_jetType = 5; const Int_t kMaxJets_nConstituents = 5; const Int_t kMaxJets_chargedMultiplicity = 5; const Int_t kMaxJets_n90 = 5; const Int_t kMaxJets_n60 = 5; const Int_t kMaxJets_jetArea = 5; const Int_t kMaxJets_pileupEnergy = 5; const Int_t kMaxJets_maxDistance = 5; const Int_t kMaxJets_ecalEnergyFraction = 5; const Int_t kMaxJets_hcalEnergyFraction = 5; const Int_t kMaxJets_chargedEnergyFraction = 5; const Int_t kMaxJets_maxEInEmTowers = 5; const Int_t kMaxJets_maxEInHadTowers = 5; const Int_t kMaxJets_towersArea = 5; const Int_t kMaxJets_chargedBroadness = 5; const Int_t kMaxJets_btag_combinedSecondaryVertexBJetTags = 5; const Int_t kMaxJets_btag_combinedSecondaryVertexMVABJetTags = 5; const Int_t kMaxJets_btag_impactParameterMVABJetTags = 5; const Int_t kMaxJets_btag_jetBProbabilityBJetTags = 5; const Int_t kMaxJets_btag_jetProbabilityBJetTags = 5; const Int_t kMaxJets_btag_simpleSecondaryVertexBJetTags = 5; const Int_t kMaxJets_btag_softElectronBJetTags = 5; const Int_t kMaxJets_btag_softMuonBJetTags = 5; const Int_t kMaxJets_btag_softMuonNoIPBJetTags = 5; const Int_t kMaxJets_btag_trackCountingHighEffBJetTags = 5; const Int_t kMaxJets_btag_trackCountingHighPurBJetTags = 5; const Int_t kMaxJets_bCorrection = 5; const Int_t kMaxJets_cCorrection = 5; const Int_t kMaxJets_udsCorrection = 5; const Int_t kMaxJets_gCorrection = 5; const Int_t kMaxJets_partonFlavour = 5; const Int_t kMaxJets_isTopJet = 5; const Int_t kMaxJets_genParton = 5; 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 Jets_; UInt_t Jets_fUniqueID[kMaxJets]; //[Jets_] UInt_t Jets_fBits[kMaxJets]; //[Jets_] TVector3 Jets_fP[kMaxJets]; Double_t Jets_fE[kMaxJets]; //[Jets_] TVector3 Jets_vertex_[kMaxJets]; Int_t Jets_type_[kMaxJets]; //[Jets_] Float_t Jets_charge_[kMaxJets]; //[Jets_] Int_t Jets_genParticleIndex_[kMaxJets]; //[Jets_] TRef Jets_genParticle_[kMaxJets]; Int_t Jets_jetType_[kMaxJets]; //[Jets_] Int_t Jets_nConstituents_[kMaxJets]; //[Jets_] Int_t Jets_chargedMultiplicity_[kMaxJets]; //[Jets_] Int_t Jets_n90_[kMaxJets]; //[Jets_] Int_t Jets_n60_[kMaxJets]; //[Jets_] Float_t Jets_jetArea_[kMaxJets]; //[Jets_] Float_t Jets_pileupEnergy_[kMaxJets]; //[Jets_] Float_t Jets_maxDistance_[kMaxJets]; //[Jets_] Float_t Jets_ecalEnergyFraction_[kMaxJets]; //[Jets_] Float_t Jets_hcalEnergyFraction_[kMaxJets]; //[Jets_] Float_t Jets_chargedEnergyFraction_[kMaxJets]; //[Jets_] Float_t Jets_maxEInEmTowers_[kMaxJets]; //[Jets_] Float_t Jets_maxEInHadTowers_[kMaxJets]; //[Jets_] Float_t Jets_towersArea_[kMaxJets]; //[Jets_] Float_t Jets_chargedBroadness_[kMaxJets]; //[Jets_] Float_t Jets_btag_combinedSecondaryVertexBJetTags_[kMaxJets]; //[Jets_] Float_t Jets_btag_combinedSecondaryVertexMVABJetTags_[kMaxJets]; //[Jets_] Float_t Jets_btag_impactParameterMVABJetTags_[kMaxJets]; //[Jets_] Float_t Jets_btag_jetBProbabilityBJetTags_[kMaxJets]; //[Jets_] Float_t Jets_btag_jetProbabilityBJetTags_[kMaxJets]; //[Jets_] Float_t Jets_btag_simpleSecondaryVertexBJetTags_[kMaxJets]; //[Jets_] Float_t Jets_btag_softElectronBJetTags_[kMaxJets]; //[Jets_] Float_t Jets_btag_softMuonBJetTags_[kMaxJets]; //[Jets_] Float_t Jets_btag_softMuonNoIPBJetTags_[kMaxJets]; //[Jets_] Float_t Jets_btag_trackCountingHighEffBJetTags_[kMaxJets]; //[Jets_] Float_t Jets_btag_trackCountingHighPurBJetTags_[kMaxJets]; //[Jets_] Float_t Jets_bCorrection_[kMaxJets]; //[Jets_] Float_t Jets_cCorrection_[kMaxJets]; //[Jets_] Float_t Jets_udsCorrection_[kMaxJets]; //[Jets_] Float_t Jets_gCorrection_[kMaxJets]; //[Jets_] Int_t Jets_partonFlavour_[kMaxJets]; //[Jets_] Bool_t Jets_isTopJet_[kMaxJets]; //[Jets_] TRef Jets_genParton_[kMaxJets]; // List of branches TBranch *b_Jets_; //! TBranch *b_Jets_fUniqueID; //! TBranch *b_Jets_fBits; //! TBranch *b_Jets_fP; //! TBranch *b_Jets_fE; //! TBranch *b_Jets_vertex_; //! TBranch *b_Jets_type_; //! TBranch *b_Jets_charge_; //! TBranch *b_Jets_genParticleIndex_; //! TBranch *b_Jets_genParticle_; //! TBranch *b_Jets_jetType_; //! TBranch *b_Jets_nConstituents_; //! TBranch *b_Jets_chargedMultiplicity_; //! TBranch *b_Jets_n90_; //! TBranch *b_Jets_n60_; //! TBranch *b_Jets_jetArea_; //! TBranch *b_Jets_pileupEnergy_; //! TBranch *b_Jets_maxDistance_; //! TBranch *b_Jets_ecalEnergyFraction_; //! TBranch *b_Jets_hcalEnergyFraction_; //! TBranch *b_Jets_chargedEnergyFraction_; //! TBranch *b_Jets_maxEInEmTowers_; //! TBranch *b_Jets_maxEInHadTowers_; //! TBranch *b_Jets_towersArea_; //! TBranch *b_Jets_chargedBroadness_; //! TBranch *b_Jets_btag_combinedSecondaryVertexBJetTags_; //! TBranch *b_Jets_btag_combinedSecondaryVertexMVABJetTags_; //! TBranch *b_Jets_btag_impactParameterMVABJetTags_; //! TBranch *b_Jets_btag_jetBProbabilityBJetTags_; //! TBranch *b_Jets_btag_jetProbabilityBJetTags_; //! TBranch *b_Jets_btag_simpleSecondaryVertexBJetTags_; //! TBranch *b_Jets_btag_softElectronBJetTags_; //! TBranch *b_Jets_btag_softMuonBJetTags_; //! TBranch *b_Jets_btag_softMuonNoIPBJetTags_; //! TBranch *b_Jets_btag_trackCountingHighEffBJetTags_; //! TBranch *b_Jets_btag_trackCountingHighPurBJetTags_; //! TBranch *b_Jets_bCorrection_; //! TBranch *b_Jets_cCorrection_; //! TBranch *b_Jets_udsCorrection_; //! TBranch *b_Jets_gCorrection_; //! TBranch *b_Jets_partonFlavour_; //! TBranch *b_Jets_isTopJet_; //! TBranch *b_Jets_genParton_; //! 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) { // 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("MacroTreeOutput.root"); if (!f) { f = new TFile("MacroTreeOutput.root"); } tree = (TTree*)gDirectory->Get("eventTree"); } 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->InheritsFrom(TChain::Class())) return centry; TChain *chain = (TChain*)fChain; if (chain->GetTreeNumber() != fCurrent) { fCurrent = chain->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("Jets", &Jets_, &b_Jets_); fChain->SetBranchAddress("Jets.fUniqueID", Jets_fUniqueID, &b_Jets_fUniqueID); fChain->SetBranchAddress("Jets.fBits", Jets_fBits, &b_Jets_fBits); fChain->SetBranchAddress("Jets.fP", Jets_fP, &b_Jets_fP); fChain->SetBranchAddress("Jets.fE", Jets_fE, &b_Jets_fE); fChain->SetBranchAddress("Jets.vertex_", Jets_vertex_, &b_Jets_vertex_); fChain->SetBranchAddress("Jets.type_", Jets_type_, &b_Jets_type_); fChain->SetBranchAddress("Jets.charge_", Jets_charge_, &b_Jets_charge_); fChain->SetBranchAddress("Jets.genParticleIndex_", Jets_genParticleIndex_, &b_Jets_genParticleIndex_); fChain->SetBranchAddress("Jets.genParticle_", Jets_genParticle_, &b_Jets_genParticle_); fChain->SetBranchAddress("Jets.jetType_", Jets_jetType_, &b_Jets_jetType_); fChain->SetBranchAddress("Jets.nConstituents_", Jets_nConstituents_, &b_Jets_nConstituents_); fChain->SetBranchAddress("Jets.chargedMultiplicity_", Jets_chargedMultiplicity_, &b_Jets_chargedMultiplicity_); fChain->SetBranchAddress("Jets.n90_", Jets_n90_, &b_Jets_n90_); fChain->SetBranchAddress("Jets.n60_", Jets_n60_, &b_Jets_n60_); fChain->SetBranchAddress("Jets.jetArea_", Jets_jetArea_, &b_Jets_jetArea_); fChain->SetBranchAddress("Jets.pileupEnergy_", Jets_pileupEnergy_, &b_Jets_pileupEnergy_); fChain->SetBranchAddress("Jets.maxDistance_", Jets_maxDistance_, &b_Jets_maxDistance_); fChain->SetBranchAddress("Jets.ecalEnergyFraction_", Jets_ecalEnergyFraction_, &b_Jets_ecalEnergyFraction_); fChain->SetBranchAddress("Jets.hcalEnergyFraction_", Jets_hcalEnergyFraction_, &b_Jets_hcalEnergyFraction_); fChain->SetBranchAddress("Jets.chargedEnergyFraction_", Jets_chargedEnergyFraction_, &b_Jets_chargedEnergyFraction_); fChain->SetBranchAddress("Jets.maxEInEmTowers_", Jets_maxEInEmTowers_, &b_Jets_maxEInEmTowers_); fChain->SetBranchAddress("Jets.maxEInHadTowers_", Jets_maxEInHadTowers_, &b_Jets_maxEInHadTowers_); fChain->SetBranchAddress("Jets.towersArea_", Jets_towersArea_, &b_Jets_towersArea_); fChain->SetBranchAddress("Jets.chargedBroadness_", Jets_chargedBroadness_, &b_Jets_chargedBroadness_); fChain->SetBranchAddress("Jets.btag_combinedSecondaryVertexBJetTags_", Jets_btag_combinedSecondaryVertexBJetTags_, &b_Jets_btag_combinedSecondaryVertexBJetTags_); fChain->SetBranchAddress("Jets.btag_combinedSecondaryVertexMVABJetTags_", Jets_btag_combinedSecondaryVertexMVABJetTags_, &b_Jets_btag_combinedSecondaryVertexMVABJetTags_); fChain->SetBranchAddress("Jets.btag_impactParameterMVABJetTags_", Jets_btag_impactParameterMVABJetTags_, &b_Jets_btag_impactParameterMVABJetTags_); fChain->SetBranchAddress("Jets.btag_jetBProbabilityBJetTags_", Jets_btag_jetBProbabilityBJetTags_, &b_Jets_btag_jetBProbabilityBJetTags_); fChain->SetBranchAddress("Jets.btag_jetProbabilityBJetTags_", Jets_btag_jetProbabilityBJetTags_, &b_Jets_btag_jetProbabilityBJetTags_); fChain->SetBranchAddress("Jets.btag_simpleSecondaryVertexBJetTags_", Jets_btag_simpleSecondaryVertexBJetTags_, &b_Jets_btag_simpleSecondaryVertexBJetTags_); fChain->SetBranchAddress("Jets.btag_softElectronBJetTags_", Jets_btag_softElectronBJetTags_, &b_Jets_btag_softElectronBJetTags_); fChain->SetBranchAddress("Jets.btag_softMuonBJetTags_", Jets_btag_softMuonBJetTags_, &b_Jets_btag_softMuonBJetTags_); fChain->SetBranchAddress("Jets.btag_softMuonNoIPBJetTags_", Jets_btag_softMuonNoIPBJetTags_, &b_Jets_btag_softMuonNoIPBJetTags_); fChain->SetBranchAddress("Jets.btag_trackCountingHighEffBJetTags_", Jets_btag_trackCountingHighEffBJetTags_, &b_Jets_btag_trackCountingHighEffBJetTags_); fChain->SetBranchAddress("Jets.btag_trackCountingHighPurBJetTags_", Jets_btag_trackCountingHighPurBJetTags_, &b_Jets_btag_trackCountingHighPurBJetTags_); fChain->SetBranchAddress("Jets.bCorrection_", Jets_bCorrection_, &b_Jets_bCorrection_); fChain->SetBranchAddress("Jets.cCorrection_", Jets_cCorrection_, &b_Jets_cCorrection_); fChain->SetBranchAddress("Jets.udsCorrection_", Jets_udsCorrection_, &b_Jets_udsCorrection_); fChain->SetBranchAddress("Jets.gCorrection_", Jets_gCorrection_, &b_Jets_gCorrection_); fChain->SetBranchAddress("Jets.partonFlavour_", Jets_partonFlavour_, &b_Jets_partonFlavour_); fChain->SetBranchAddress("Jets.isTopJet_", Jets_isTopJet_, &b_Jets_isTopJet_); fChain->SetBranchAddress("Jets.genParton_", Jets_genParton_, &b_Jets_genParton_); 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