Skip to content

Commit

Permalink
Merge pull request #21140 from xmniu/zcounting-addzyield
Browse files Browse the repository at this point in the history
add Zyield for barrel-barrel and endcap-encap
  • Loading branch information
cmsbuild committed Nov 11, 2017
2 parents 64a7b6b + 669d2d5 commit d1d8d45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DQMOffline/Lumi/plugins/ZCounting.cc
Expand Up @@ -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_);

}
//
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions DQMOffline/Lumi/plugins/ZCounting.h
Expand Up @@ -131,6 +131,8 @@ class ZCounting: public DQMEDAnalyzer{

MonitorElement* h_npv;
MonitorElement* h_yield_Z;
MonitorElement* h_yieldBB_Z;
MonitorElement* h_yieldEE_Z;
};


Expand Down

0 comments on commit d1d8d45

Please sign in to comment.