18 m_eleCollectionTag(conf.getUntrackedParameter<edm::InputTag>(
"eleCollectionName",edm::InputTag(
"hltPixelMatchElectronsActivity"))),
19 m_jetCollectionTag(conf.getUntrackedParameter<edm::InputTag>(
"jetCollectionName",edm::InputTag(
"hltCaloJetIDPassed"))),
20 m_muCollectionTag(conf.getUntrackedParameter<edm::InputTag>(
"muCollectionName",edm::InputTag(
"hltL3MuonCandidates"))),
21 m_razorVarCollectionTag(conf.getUntrackedParameter<edm::InputTag>(
"razorVarCollectionName")){
36 unsigned int njets = 0;
37 for(reco::CaloJetCollection::const_iterator it = calojets_handle->begin(); it != calojets_handle->end(); ++it){
38 if(it->pt() >= 30. && fabs(it->eta()) <= 3.0){
47 unsigned int nmu_loose = 0;
48 unsigned int nmu_tight = 0;
50 for(std::vector<reco::RecoChargedCandidate>::const_iterator it = muon_handle->begin(); it != muon_handle->end(); ++it){
51 if(it->pt() >= 15 && fabs(it->eta()) <= 2.1) nmu_tight++;
52 if(it->pt() >= 10 && fabs(it->eta()) <= 2.4) nmu_loose++;
60 unsigned int nele_loose = 0;
61 unsigned int nele_tight = 0;
63 for(reco::ElectronCollection::const_iterator it = ele_handle->begin(); it != ele_handle->end(); ++it){
64 if(it->pt() >= 20 && fabs(it->eta()) <= 2.5) nele_tight++;
65 if(it->pt() >= 10 && fabs(it->eta()) <= 2.5) nele_loose++;
70 unsigned int box_num = 5;
71 if(nmu_tight > 0 && nele_tight > 0){
73 }
else if(nmu_tight > 0 && nmu_loose > 1){
75 }
else if(nele_tight > 0 && nele_loose > 1){
77 }
else if(nmu_tight > 0){
79 }
else if(nele_tight > 0){
86 if(razorvar_handle->size() > 1){
87 const double MR = razorvar_handle->at(0);
88 const double R = razorvar_handle->at(1);
125 "M_{R} vs R^{2} (All Events)",
131 "M_{R} vs R^{2} (>= 4j)",
137 "M_{R} vs R^{2} (>= 6j)",
143 "M_{R} vs R^{2} (>= 8j)",
149 "M_{R} vs R^{2} (>= 10j)",
155 "M_{R} vs R^{2} (>= 12j)",
161 "M_{R} vs R^{2} (>= 14j)",
169 "M_{R} vs R^{2} (EleMu box)",
175 "M_{R} vs R^{2} (MuMu box)",
181 "M_{R} vs R^{2} (EleEle box)",
187 "M_{R} vs R^{2} (Mu box)",
193 "M_{R} vs R^{2} (Ele box)",
199 "M_{R} vs R^{2} (Had box)",
207 "M_{R} vs R^{2} (Mu box >= 4j)",
213 "M_{R} vs R^{2} (Ele box >= 5j)",
219 "M_{R} vs R^{2} (Had box >= 6j)",
MonitorElement * m_rsqMRInc12J
MonitorElement * m_rsqMRHadMJ
MonitorElement * bookH2withSumw2(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_rsqMREle
MonitorElement * m_rsqMRInc6J
edm::InputTag m_muCollectionTag
virtual void endRun(edm::Run const &, edm::EventSetup const &)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
edm::InputTag m_jetCollectionTag
MonitorElement * m_rsqMREleMJ
MonitorElement * m_rsqMRInc8J
MonitorElement * m_rsqMRMu
MonitorElement * m_rsqMRMuMJ
edm::InputTag m_razorVarCollectionTag
RazorVarAnalyzer(const edm::ParameterSet &)
MonitorElement * m_rsqMREleMu
MonitorElement * m_rsqMRMuMu
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
MonitorElement * m_rsqMRInc14J
MonitorElement * m_rsqMRInc4J
MonitorElement * m_rsqMREleEle
virtual ~RazorVarAnalyzer()
edm::InputTag m_eleCollectionTag
MonitorElement * m_rsqMRHad
MonitorElement * m_rsqMRInc10J
MonitorElement * m_rsqMRFullyInc