Skip to content

Commit

Permalink
Adding log(pt) to jet DQM
Browse files Browse the repository at this point in the history
  • Loading branch information
rseidita committed Nov 7, 2022
1 parent 421db78 commit 6c7170c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions DQMOffline/JetMET/interface/JetAnalyzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ class JetAnalyzer : public DQMEDAnalyzer {
MonitorElement* mPt_1;
MonitorElement* mPt_2;
MonitorElement* mPt_3;
MonitorElement* mPt_log;
MonitorElement* mEta;
MonitorElement* mPhi;
MonitorElement* mPt_uncor;
Expand Down
5 changes: 5 additions & 0 deletions DQMOffline/JetMET/src/JetAnalyzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ void JetAnalyzer::bookHistograms(DQMStore::IBooker& ibooker, edm::Run const& iRu
mPt_1 = ibooker.book1D("Pt_1", "Pt spectrum of jets - range 1", 20, 0, 100);
mPt_2 = ibooker.book1D("Pt_2", "Pt spectrum of jets - range 2", 60, 0, 300);
mPt_3 = ibooker.book1D("Pt_3", "Pt spectrum of jets - range 3", 100, 0, 5000);
mPt_log = ibooker.book1D("Pt_log", "Pt spectrum of jets - log", 100, 0, 50);
// Low and high pt trigger paths
mPt_Lo = ibooker.book1D("Pt_Lo", "Pt (Pass Low Pt Jet Trigger)", 20, 0, 100);
//mEta_Lo = ibooker.book1D("Eta_Lo", "Eta (Pass Low Pt Jet Trigger)", etaBin_, etaMin_, etaMax_);
Expand All @@ -394,6 +395,7 @@ void JetAnalyzer::bookHistograms(DQMStore::IBooker& ibooker, edm::Run const& iRu
map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName + "/" + "Pt_1", mPt_1));
map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName + "/" + "Pt_2", mPt_2));
map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName + "/" + "Pt_3", mPt_3));
map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName + "/" + "Pt_log", mPt_log));
map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName + "/" + "Pt_Lo", mPt_Lo));
map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName + "/" + "Phi_Lo", mPhi_Lo));
map_of_MEs.insert(std::pair<std::string, MonitorElement*>(DirName + "/" + "Pt_Hi", mPt_Hi));
Expand Down Expand Up @@ -3896,6 +3898,9 @@ void JetAnalyzer::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetu
mPt_3 = map_of_MEs[DirName + "/" + "Pt_3"];
if (mPt_3 && mPt_3->getRootObject())
mPt_3->Fill(correctedJet.pt());
mPt_log = map_of_MEs[DirName + "/" + "Pt_log"];
if (mPt_log && mPt_log->getRootObject())
mPt_log->Fill(log10(correctedJet.pt()));
mEta = map_of_MEs[DirName + "/" + "Eta"];
if (mEta && mEta->getRootObject())
mEta->Fill(correctedJet.eta());
Expand Down

0 comments on commit 6c7170c

Please sign in to comment.