From 669d2d5ef1431b44b7d4cea849226ce69d6faf6b Mon Sep 17 00:00:00 2001 From: Xinmei Date: Thu, 2 Nov 2017 18:24:40 +0100 Subject: [PATCH] add Zyield for barrel-barrel and endcap-encap --- DQMOffline/Lumi/plugins/ZCounting.cc | 4 ++++ DQMOffline/Lumi/plugins/ZCounting.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/DQMOffline/Lumi/plugins/ZCounting.cc b/DQMOffline/Lumi/plugins/ZCounting.cc index 96bc37a1985b5..bcf371e6cf0c2 100644 --- a/DQMOffline/Lumi/plugins/ZCounting.cc +++ b/DQMOffline/Lumi/plugins/ZCounting.cc @@ -121,6 +121,8 @@ void ZCounting::bookHistograms(DQMStore::IBooker & ibooker_, edm::Run const &, e h_npv = ibooker_.book2D("h_npv", "h_npv", LumiBin_, LumiMin_, LumiMax_, PVBin_, PVMin_, PVMax_); h_yield_Z = ibooker_.book1D("h_yield_Z", "h_yield_Z", LumiBin_, LumiMin_, LumiMax_); + h_yieldBB_Z = ibooker_.book1D("h_yieldBB_Z", "h_yieldBB_Z", LumiBin_, LumiMin_, LumiMax_); + h_yieldEE_Z = ibooker_.book1D("h_yieldEE_Z", "h_yieldEE_Z", LumiBin_, LumiMin_, LumiMax_); } // @@ -307,6 +309,8 @@ void ZCounting::analyze(const edm::Event& iEvent, const edm::EventSetup& iSetup) } // category 2HLT + 1HLT: Fill once for Z yield h_yield_Z->Fill(iEvent.luminosityBlock()); + if(isTagCentral && isProbeCentral) h_yieldBB_Z->Fill(iEvent.luminosityBlock()); + else if(!isTagCentral && !isProbeCentral) h_yieldEE_Z->Fill(iEvent.luminosityBlock()); } else if(itMu2.isGlobalMuon()){ // category NoSel: probe is a GLB muon but failing selection diff --git a/DQMOffline/Lumi/plugins/ZCounting.h b/DQMOffline/Lumi/plugins/ZCounting.h index 068632fe98a2a..c093ad8934e3d 100644 --- a/DQMOffline/Lumi/plugins/ZCounting.h +++ b/DQMOffline/Lumi/plugins/ZCounting.h @@ -131,6 +131,8 @@ class ZCounting: public DQMEDAnalyzer{ MonitorElement* h_npv; MonitorElement* h_yield_Z; + MonitorElement* h_yieldBB_Z; + MonitorElement* h_yieldEE_Z; };