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")){
43 unsigned int njets = 0;
44 for(reco::CaloJetCollection::const_iterator it = calojets_handle->begin(); it != calojets_handle->end(); ++it){
45 if(it->pt() >= 30. && fabs(it->eta()) <= 3.0){
54 unsigned int nmu_loose = 0;
55 unsigned int nmu_tight = 0;
57 for(std::vector<reco::RecoChargedCandidate>::const_iterator it = muon_handle->begin(); it != muon_handle->end(); ++it){
58 if(it->pt() >= 15 && fabs(it->eta()) <= 2.1) nmu_tight++;
59 if(it->pt() >= 10 && fabs(it->eta()) <= 2.4) nmu_loose++;
67 unsigned int nele_loose = 0;
68 unsigned int nele_tight = 0;
70 for(reco::ElectronCollection::const_iterator it = ele_handle->begin(); it != ele_handle->end(); ++it){
71 if(it->pt() >= 20 && fabs(it->eta()) <= 2.5) nele_tight++;
72 if(it->pt() >= 10 && fabs(it->eta()) <= 2.5) nele_loose++;
77 unsigned int box_num = 5;
78 if(nmu_tight > 0 && nele_tight > 0){
80 }
else if(nmu_tight > 0 && nmu_loose > 1){
82 }
else if(nele_tight > 0 && nele_loose > 1){
84 }
else if(nmu_tight > 0){
86 }
else if(nele_tight > 0){
93 if(razorvar_handle->size() > 1){
94 const double MR = razorvar_handle->at(0);
95 const double R = razorvar_handle->at(1);
132 "M_{R} vs R^{2} (All Events)",
138 "M_{R} vs R^{2} (>= 4j)",
144 "M_{R} vs R^{2} (>= 6j)",
150 "M_{R} vs R^{2} (>= 8j)",
156 "M_{R} vs R^{2} (>= 10j)",
162 "M_{R} vs R^{2} (>= 12j)",
168 "M_{R} vs R^{2} (>= 14j)",
176 "M_{R} vs R^{2} (EleMu box)",
182 "M_{R} vs R^{2} (MuMu box)",
188 "M_{R} vs R^{2} (EleEle box)",
194 "M_{R} vs R^{2} (Mu box)",
200 "M_{R} vs R^{2} (Ele box)",
206 "M_{R} vs R^{2} (Had box)",
214 "M_{R} vs R^{2} (Mu box >= 4j)",
220 "M_{R} vs R^{2} (Ele box >= 5j)",
226 "M_{R} vs R^{2} (Had box >= 6j)",
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_
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
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual void endRun(edm::Run const &, edm::EventSetup const &)
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 * m_rsqMREleEle
virtual ~RazorVarAnalyzer()
edm::EDGetTokenT< reco::CaloJetCollection > m_jetCollectionTagToken_
MonitorElement * m_rsqMRHad
MonitorElement * m_rsqMRInc10J
MonitorElement * m_rsqMRFullyInc