17 m_eleCollectionTag(conf.getUntrackedParameter<edm::
InputTag>(
"eleCollectionName",edm::
InputTag(
"hltPixelMatchElectronsActivity"))),
18 m_jetCollectionTag(conf.getUntrackedParameter<edm::
InputTag>(
"jetCollectionName",edm::
InputTag(
"hltCaloJetIDPassed"))),
19 m_muCollectionTag(conf.getUntrackedParameter<edm::
InputTag>(
"muCollectionName",edm::
InputTag(
"hltL3MuonCandidates"))),
20 m_razorVarCollectionTag(conf.getUntrackedParameter<edm::
InputTag>(
"razorVarCollectionName")) {
37 "M_{R} vs R^{2} (All Events)",
45 "M_{R} vs R^{2} (>= 4j)",
53 "M_{R} vs R^{2} (>= 6j)",
61 "M_{R} vs R^{2} (>= 8j)",
69 "M_{R} vs R^{2} (>= 10j)",
77 "M_{R} vs R^{2} (>= 12j)",
85 "M_{R} vs R^{2} (>= 14j)",
95 "M_{R} vs R^{2} (EleMu box)",
103 "M_{R} vs R^{2} (MuMu box)",
111 "M_{R} vs R^{2} (EleEle box)",
119 "M_{R} vs R^{2} (Mu box)",
127 "M_{R} vs R^{2} (Ele box)",
135 "M_{R} vs R^{2} (Had box)",
145 "M_{R} vs R^{2} (Mu box >= 4j)",
153 "M_{R} vs R^{2} (Ele box >= 5j)",
161 "M_{R} vs R^{2} (Had box >= 6j)",
174 unsigned int njets = 0;
175 for(reco::CaloJetCollection::const_iterator it = calojets_handle->begin(); it != calojets_handle->end(); ++it){
176 if(it->pt() >= 30. && fabs(it->eta()) <= 3.0){
185 unsigned int nmu_loose = 0;
186 unsigned int nmu_tight = 0;
188 for(std::vector<reco::RecoChargedCandidate>::const_iterator it = muon_handle->begin(); it != muon_handle->end(); ++it){
189 if(it->pt() >= 15 && fabs(it->eta()) <= 2.1) nmu_tight++;
190 if(it->pt() >= 10 && fabs(it->eta()) <= 2.4) nmu_loose++;
198 unsigned int nele_loose = 0;
199 unsigned int nele_tight = 0;
201 for(reco::ElectronCollection::const_iterator it = ele_handle->begin(); it != ele_handle->end(); ++it){
202 if(it->pt() >= 20 && fabs(it->eta()) <= 2.5) nele_tight++;
203 if(it->pt() >= 10 && fabs(it->eta()) <= 2.5) nele_loose++;
208 unsigned int box_num = 5;
209 if(nmu_tight > 0 && nele_tight > 0){
211 }
else if(nmu_tight > 0 && nmu_loose > 1){
213 }
else if(nele_tight > 0 && nele_loose > 1){
215 }
else if(nmu_tight > 0){
217 }
else if(nele_tight > 0){
223 if(razorvar_handle->size() > 1){
224 const double MR = razorvar_handle->at(0);
225 const double R = razorvar_handle->at(1);
MonitorElement * m_rsqMRInc12J
MonitorElement * m_rsqMRHadMJ
T getUntrackedParameter(std::string const &, T const &) const
edm::EDGetTokenT< std::vector< double > > m_razorVarCollectionTagToken_
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 &)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
MonitorElement * m_rsqMREleMJ
MonitorElement * m_rsqMRInc8J
MonitorElement * m_rsqMRMu
MonitorElement * m_rsqMRMuMJ
edm::EDGetTokenT< std::vector< reco::RecoChargedCandidate > > m_muCollectionTagToken_
RazorVarAnalyzer(const edm::ParameterSet &)
MonitorElement * m_rsqMREleMu
MonitorElement * m_rsqMRMuMu
MonitorElement * m_rsqMRInc14J
MonitorElement * m_rsqMRInc4J
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")
MonitorElement * m_rsqMREleEle
virtual ~RazorVarAnalyzer()
edm::EDGetTokenT< reco::CaloJetCollection > m_jetCollectionTagToken_
MonitorElement * m_rsqMRHad
MonitorElement * m_rsqMRInc10J
MonitorElement * m_rsqMRFullyInc