Skip to content

Commit

Permalink
Add UL18 jetID information.
Browse files Browse the repository at this point in the history
  • Loading branch information
yrath committed Jan 27, 2021
1 parent b0414bf commit 4af3f93
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cmssw/JetTaggingSF/JetTaggingSF/plugins/TreeMaker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ class TreeMaker : public edm::EDAnalyzer
bool tightJetID_2017(pat::Jet&);
bool tightJetID_UL2017(pat::Jet&);
bool tightJetID_2018(pat::Jet&);
bool tightJetID_UL2018(pat::Jet&);

// random helpers
double readGenWeight(const edm::Event&);
Expand Down Expand Up @@ -580,13 +581,18 @@ void TreeMaker::beginJob()
pileupJetIdWP_ = 4;
maxJetEta_ = 2.5;
}

else if (campaign_ == "Run2_pp_13TeV_Legacy18")
{
tightJetID_ = &TreeMaker::tightJetID_2018;
pileupJetIdWP_ = 4;
maxJetEta_ = 2.5;
}
else if (campaign_ == "Run2_pp_13TeV_UltraLegacy18")
{
tightJetID_ = &TreeMaker::tightJetID_UL2017; // uses same jet ID criteria
pileupJetIdWP_ = 4;
maxJetEta_ = 2.5;
}
else
{
throw std::runtime_error("Unknown campaign " + campaign_);
Expand Down Expand Up @@ -704,6 +710,7 @@ void TreeMaker::analyze(const edm::Event& event, const edm::EventSetup& iSetup)
{
return;
}

cutflowHist_->Fill(cutflowBin++);

// trigger selection
Expand Down

0 comments on commit 4af3f93

Please sign in to comment.