Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Zyield for barrel-barrel and endcap-encap #21140

Merged
merged 1 commit into from Nov 11, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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