55 edm::LogWarning(
"TopSingleLeptonHLTValidation") <<
"Electrons collection not found \n";
56 unsigned int nGoodE = 0;
62 if ((
e->dr03TkSumPt() +
e->dr03EcalRecHitSumEt() +
e->dr03HcalTowerSumEt()) /
e->pt() >
isoElectrons_)
71 edm::LogWarning(
"TopSingleLeptonHLTValidation") <<
"Muons collection not found \n";
72 unsigned int nGoodM = 0;
74 if (!
m->isPFMuon() || !
m->isGlobalMuon())
80 if (((
m->pfIsolationR04()).sumChargedHadronPt + (
m->pfIsolationR04()).sumPhotonEt +
81 (
m->pfIsolationR04()).sumNeutralHadronEt) /
92 edm::LogWarning(
"TopSingleLeptonHLTValidation") <<
"Jets collection not found \n";
93 unsigned int nGoodJ = 0;
96 if (nGoodJ < 1 && j->
pt() < 55)
98 if (nGoodJ < 2 && j->
pt() < 45)
100 if (nGoodJ < 3 && j->
pt() < 35)
102 if (nGoodJ >= 3 && j->pt() < 20)
128 edm::LogWarning(
"TopSingleLeptonHLTValidation") <<
"Trigger collection not found \n";
130 unsigned int isInteresting = 0;
131 for (
unsigned int i = 0;
i < triggerNames.
triggerNames().size(); ++
i) {
133 for (
unsigned int j = 0; j <
vsPaths_.size(); j++) {
134 if (name.Contains(TString(
vsPaths_[j]), TString::kIgnoreCase)) {
144 if (
isAll_ && isInteresting > 0)
191 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
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_
edm::EDGetTokenT< edm::View< reco::Jet > > tokJets_
MonitorElement * hNumLeptonEta
MonitorElement * hDenTriggerMon
edm::EDGetTokenT< edm::View< reco::GsfElectron > > tokElectrons_
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
edm::EDGetTokenT< edm::View< reco::Muon > > tokMuons_
MonitorElement * hDenLeptonEta
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override