18 m_eleCollectionTag(conf.getUntrackedParameter<edm::
InputTag>(
"eleCollectionName",
19 edm::
InputTag(
"hltPixelMatchElectronsActivity"))),
21 conf.getUntrackedParameter<edm::
InputTag>(
"jetCollectionName", edm::
InputTag(
"hltCaloJetIDPassed"))),
23 conf.getUntrackedParameter<edm::
InputTag>(
"muCollectionName", edm::
InputTag(
"hltL3MuonCandidates"))),
24 m_razorVarCollectionTag(conf.getUntrackedParameter<edm::
InputTag>(
"razorVarCollectionName")) {
43 iBooker,
"rsqMRFullyInc",
"M_{R} vs R^{2} (All Events)", 400, 0., 4000., 50, 0., 1.,
"M_{R} [GeV]",
"R^{2}");
45 iBooker,
"rsqMRInc4J",
"M_{R} vs R^{2} (>= 4j)", 400, 0., 4000., 50, 0., 1.,
"M_{R} [GeV]",
"R^{2}");
47 iBooker,
"rsqMRInc6J",
"M_{R} vs R^{2} (>= 6j)", 400, 0., 4000., 50, 0., 1.,
"M_{R} [GeV]",
"R^{2}");
49 iBooker,
"rsqMRInc8J",
"M_{R} vs R^{2} (>= 8j)", 400, 0., 4000., 50, 0., 1.,
"M_{R} [GeV]",
"R^{2}");
51 iBooker,
"rsqMRInc10J",
"M_{R} vs R^{2} (>= 10j)", 400, 0., 4000., 50, 0., 1.,
"M_{R} [GeV]",
"R^{2}");
53 iBooker,
"rsqMRInc12J",
"M_{R} vs R^{2} (>= 12j)", 400, 0., 4000., 50, 0., 1.,
"M_{R} [GeV]",
"R^{2}");
55 iBooker,
"rsqMRInc14J",
"M_{R} vs R^{2} (>= 14j)", 400, 0., 4000., 50, 0., 1.,
"M_{R} [GeV]",
"R^{2}");
59 iBooker,
"rsqMREleMu",
"M_{R} vs R^{2} (EleMu box)", 400, 0., 4000., 50, 0., 1.,
"M_{R} [GeV]",
"R^{2}");
61 iBooker,
"rsqMRMuMu",
"M_{R} vs R^{2} (MuMu box)", 400, 0., 4000., 50, 0., 1.,
"M_{R} [GeV]",
"R^{2}");
63 iBooker,
"rsqMREleEle",
"M_{R} vs R^{2} (EleEle box)", 400, 0., 4000., 50, 0., 1.,
"M_{R} [GeV]",
"R^{2}");
65 iBooker,
"rsqMRMu",
"M_{R} vs R^{2} (Mu box)", 400, 0., 4000., 50, 0., 1.,
"M_{R} [GeV]",
"R^{2}");
67 iBooker,
"rsqMREle",
"M_{R} vs R^{2} (Ele box)", 400, 0., 4000., 50, 0., 1.,
"M_{R} [GeV]",
"R^{2}");
69 iBooker,
"rsqMRHad",
"M_{R} vs R^{2} (Had box)", 400, 0., 4000., 50, 0., 1.,
"M_{R} [GeV]",
"R^{2}");
73 iBooker,
"rsqMRMuMJ",
"M_{R} vs R^{2} (Mu box >= 4j)", 400, 0., 4000., 50, 0., 1.,
"M_{R} [GeV]",
"R^{2}");
75 iBooker,
"rsqMREleMJ",
"M_{R} vs R^{2} (Ele box >= 5j)", 400, 0., 4000., 50, 0., 1.,
"M_{R} [GeV]",
"R^{2}");
77 iBooker,
"rsqMRHadMJ",
"M_{R} vs R^{2} (Had box >= 6j)", 400, 0., 4000., 50, 0., 1.,
"M_{R} [GeV]",
"R^{2}");
86 unsigned int njets = 0;
87 for (reco::CaloJetCollection::const_iterator it = calojets_handle->begin(); it != calojets_handle->end(); ++it) {
88 if (it->pt() >= 30. && fabs(it->eta()) <= 3.0) {
97 unsigned int nmu_loose = 0;
98 unsigned int nmu_tight = 0;
100 for (std::vector<reco::RecoChargedCandidate>::const_iterator it = muon_handle->begin(); it != muon_handle->end();
102 if (it->pt() >= 15 && fabs(it->eta()) <= 2.1)
104 if (it->pt() >= 10 && fabs(it->eta()) <= 2.4)
113 unsigned int nele_loose = 0;
114 unsigned int nele_tight = 0;
116 for (reco::ElectronCollection::const_iterator it = ele_handle->begin(); it != ele_handle->end(); ++it) {
117 if (it->pt() >= 20 && fabs(it->eta()) <= 2.5)
119 if (it->pt() >= 10 && fabs(it->eta()) <= 2.5)
126 unsigned int box_num = 5;
127 if (nmu_tight > 0 && nele_tight > 0) {
129 }
else if (nmu_tight > 0 && nmu_loose > 1) {
131 }
else if (nele_tight > 0 && nele_loose > 1) {
133 }
else if (nmu_tight > 0) {
135 }
else if (nele_tight > 0) {
141 if (razorvar_handle->size() > 1) {
142 const double MR = razorvar_handle->at(0);
143 const double R = razorvar_handle->at(1);
174 if (box_num == 3 && njets >= 4)
177 else if (box_num == 4 && njets >= 5)
180 else if (box_num == 5 && njets >= 6)
MonitorElement * m_rsqMRInc12J
MonitorElement * m_rsqMRHadMJ
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< std::vector< double > > m_razorVarCollectionTagToken_
const edm::EventSetup & c
edm::EDGetTokenT< reco::ElectronCollection > m_eleCollectionTagToken_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * m_rsqMREle
MonitorElement * m_rsqMRInc6J
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void prepareBooking(DQMStore::IBooker &)
MonitorElement * m_rsqMREleMJ
MonitorElement * m_rsqMRInc8J
MonitorElement * m_rsqMRMu
MonitorElement * m_rsqMRMuMJ
edm::EDGetTokenT< std::vector< reco::RecoChargedCandidate > > m_muCollectionTagToken_
MonitorElement * bookH2withSumw2(DQMStore::IBooker &, const std::string &name, const std::string &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const std::string &titleX="", const std::string &titleY="", Option_t *option="COLZ")
RazorVarAnalyzer(const edm::ParameterSet &)
void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * m_rsqMREleMu
MonitorElement * m_rsqMRMuMu
MonitorElement * m_rsqMRInc14J
MonitorElement * m_rsqMRInc4J
MonitorElement * m_rsqMREleEle
~RazorVarAnalyzer() override
edm::EDGetTokenT< reco::CaloJetCollection > m_jetCollectionTagToken_
MonitorElement * m_rsqMRHad
MonitorElement * m_rsqMRInc10J
MonitorElement * m_rsqMRFullyInc