From 6c7170c0c473b65c42c23c32f8ca72439d244c6f Mon Sep 17 00:00:00 2001 From: Roberto Date: Mon, 7 Nov 2022 10:25:10 +0100 Subject: [PATCH] Adding log(pt) to jet DQM --- DQMOffline/JetMET/interface/JetAnalyzer.h | 1 + DQMOffline/JetMET/src/JetAnalyzer.cc | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/DQMOffline/JetMET/interface/JetAnalyzer.h b/DQMOffline/JetMET/interface/JetAnalyzer.h index 087ec9824413f..d63e609d5cc99 100644 --- a/DQMOffline/JetMET/interface/JetAnalyzer.h +++ b/DQMOffline/JetMET/interface/JetAnalyzer.h @@ -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; diff --git a/DQMOffline/JetMET/src/JetAnalyzer.cc b/DQMOffline/JetMET/src/JetAnalyzer.cc index 9708770f3baa0..c096db298cec4 100644 --- a/DQMOffline/JetMET/src/JetAnalyzer.cc +++ b/DQMOffline/JetMET/src/JetAnalyzer.cc @@ -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_); @@ -394,6 +395,7 @@ void JetAnalyzer::bookHistograms(DQMStore::IBooker& ibooker, edm::Run const& iRu map_of_MEs.insert(std::pair(DirName + "/" + "Pt_1", mPt_1)); map_of_MEs.insert(std::pair(DirName + "/" + "Pt_2", mPt_2)); map_of_MEs.insert(std::pair(DirName + "/" + "Pt_3", mPt_3)); + map_of_MEs.insert(std::pair(DirName + "/" + "Pt_log", mPt_log)); map_of_MEs.insert(std::pair(DirName + "/" + "Pt_Lo", mPt_Lo)); map_of_MEs.insert(std::pair(DirName + "/" + "Phi_Lo", mPhi_Lo)); map_of_MEs.insert(std::pair(DirName + "/" + "Pt_Hi", mPt_Hi)); @@ -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());