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;
107 edm::LogWarning(
"TopSingleLeptonHLTValidation") <<
"Trigger collection not found \n";
109 unsigned int isInteresting = 0;
110 for (
unsigned int i=0;
i<triggerNames.triggerNames().size(); ++
i) {
112 TString
name = triggerNames.triggerNames()[
i].c_str();
114 if (name.Contains(TString(
vsPaths_[
j]), TString::kIgnoreCase)) {
115 if (triggerTable->accept(
i)){
172 unsigned int nPaths =
vsPaths_.size();
const reco::GsfElectron * elec_
MonitorElement * hDenLeptonPt
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
MonitorElement * hNumTriggerMon
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< edm::View< reco::Jet > > tokJets_
virtual double eta() const
momentum pseudorapidity
virtual double pt() const
transverse momentum
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< edm::TriggerResults > tokTrigger_
MonitorElement * hDenJetEta
void addDefault(ParameterSetDescription const &psetDescription)
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_
void setCurrentFolder(const std::string &fullpath)
MonitorElement * hNumLeptonEta
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
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::EDGetTokenT< edm::View< reco::GsfElectron > > tokElectrons_