54 edm::LogWarning(
"TopSingleLeptonHLTValidation") <<
"Electrons collection not found \n";
55 unsigned int nGoodE = 0;
59 if ((
e->dr03TkSumPt()+
e->dr03EcalRecHitSumEt()+
e->dr03HcalTowerSumEt())/
e->pt() >
isoElectrons_ )
continue;
61 if (nGoodE == 1)
elec_ = &(*e);
66 edm::LogWarning(
"TopSingleLeptonHLTValidation") <<
"Muons collection not found \n";
67 unsigned int nGoodM = 0;
69 if (!
m->isPFMuon() || !
m->isGlobalMuon())
continue;
72 if (((
m->pfIsolationR04()).sumChargedHadronPt+(
m->pfIsolationR04()).sumPhotonEt+(
m->pfIsolationR04()).sumNeutralHadronEt)/
m->pt() >
isoMuons_ )
continue;
74 if (nGoodM == 1)
mu_ = &(*m);
79 edm::LogWarning(
"TopSingleLeptonHLTValidation") <<
"Jets collection not found \n";
80 unsigned int nGoodJ = 0;
83 if (nGoodJ < 1 && j->
pt() < 55)
continue;
84 if (nGoodJ < 2 && j->
pt() < 45)
continue;
85 if (nGoodJ < 3 && j->
pt() < 35)
continue;
86 if (nGoodJ >= 3 && j->pt() < 20)
continue;
87 if (fabs(j->eta()) >
etaJets_)
continue;
94 if (j->pt() <
ptJets_)
continue;
95 if (fabs(j->eta()) >
etaJets_)
continue;
107 edm::LogWarning(
"TopSingleLeptonHLTValidation") <<
"Trigger collection not found \n";
109 unsigned int isInteresting = 0;
113 for (
unsigned int j=0; j<
vsPaths_.size(); j++) {
114 if (name.Contains(TString(
vsPaths_[j]), TString::kIgnoreCase)) {
172 unsigned int nPaths =
vsPaths_.size();
const reco::GsfElectron * elec_
MonitorElement * hDenLeptonPt
MonitorElement * hNumTriggerMon
double eta() const final
momentum pseudorapidity
bool getByToken(EDGetToken token, Handle< PROD > &result) const
bool accept() const
Has at least one path accepted the event?
double pt() const final
transverse momentum
edm::EDGetTokenT< edm::View< reco::Jet > > tokJets_
Strings const & triggerNames() const
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< edm::TriggerResults > tokTrigger_
MonitorElement * hDenJetEta
void addDefault(ParameterSetDescription const &psetDescription)
void setCurrentFolder(std::string const &fullpath)
MonitorElement * hNumJetPt
MonitorElement * hNumLeptonPt
MonitorElement * hNumJetEta
MonitorElement * book1D(Args &&...args)
unsigned int minElectrons_
void triggerBinLabels(const std::vector< std::string > &labels)
set configurable labels for trigger monitoring histograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * hDenJetPt
std::vector< std::string > vsPaths_
MonitorElement * hNumLeptonEta
edm::EDGetTokenT< edm::View< reco::Muon > > tokMuons_
MonitorElement * hDenTriggerMon
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
MonitorElement * hDenLeptonEta
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
edm::EDGetTokenT< edm::View< reco::GsfElectron > > tokElectrons_