56 edm::LogWarning(
"TopDiLeptonHLTValidation") <<
"Electrons collection not found \n";
57 unsigned int nGoodE = 0;
63 if ((
e->dr03TkSumPt() +
e->dr03EcalRecHitSumEt() +
e->dr03HcalTowerSumEt()) /
e->pt() >
isoElectrons_)
74 edm::LogWarning(
"TopDiLeptonHLTValidation") <<
"Muons collection not found \n";
75 unsigned int nGoodM = 0;
77 if (!
m->isPFMuon() || (!
m->isGlobalMuon() && !
m->isTrackerMuon()))
83 if (((
m->pfIsolationR04()).sumChargedHadronPt + (
m->pfIsolationR04()).sumPhotonEt +
84 (
m->pfIsolationR04()).sumNeutralHadronEt) /
97 edm::LogWarning(
"TopDiLeptonHLTValidation") <<
"Jets collection not found \n";
98 unsigned int nGoodJ = 0;
115 edm::LogWarning(
"TopDiLeptonHLTValidation") <<
"Trigger collection not found \n";
117 unsigned int isInteresting = 0;
118 for (
unsigned int i = 0;
i < triggerNames.
triggerNames().size(); ++
i) {
120 for (
unsigned int j = 0; j <
vsPaths_.size(); j++) {
121 if (name.Contains(TString(
vsPaths_[j]), TString::kIgnoreCase)) {
131 if (
isAll_ && isInteresting > 0)
194 unsigned int nPaths =
vsPaths_.size();
MonitorElement * hNumLeptonPt
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
double eta() const final
momentum pseudorapidity
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
MonitorElement * hNumLeptonEta
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< edm::View< reco::GsfElectron > > tokElectrons_
MonitorElement * hNumTriggerMon
const reco::GsfElectron * elec2_
bool accept() const
Has at least one path accepted the event?
edm::EDGetTokenT< edm::TriggerResults > tokTrigger_
MonitorElement * hDenLeptonPt
double pt() const final
transverse momentum
Strings const & triggerNames() const
MonitorElement * hDenTriggerMon
MonitorElement * hDenJetEta
edm::EDGetTokenT< edm::View< reco::Muon > > tokMuons_
void addDefault(ParameterSetDescription const &psetDescription)
MonitorElement * hNumJetPt
MonitorElement * hDenJetPt
void setCurrentFolder(std::string const &fullpath)
MonitorElement * hDenLeptonEta
const reco::GsfElectron * elec1_
MonitorElement * book1D(Args &&...args)
unsigned int minElectrons_
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
std::vector< std::string > vsPaths_
void triggerBinLabels(const std::vector< std::string > &labels)
set configurable labels for trigger monitoring histograms
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< edm::View< reco::Jet > > tokJets_
MonitorElement * hNumJetEta
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override