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 for (
unsigned int i=0;
i<triggerNames.triggerNames().size(); ++
i) {
111 TString
name = triggerNames.triggerNames()[
i].c_str();
112 bool isInteresting =
false;
114 if (name.Contains(TString(
vsPaths_[
j]), TString::kIgnoreCase)) isInteresting =
true;
const reco::GsfElectron * elec_
MonitorElement * hDenLeptonPt
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
virtual float pt() const
transverse momentum
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< edm::View< reco::Jet > > tokJets_
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< edm::TriggerResults > tokTrigger_
MonitorElement * hDenJetEta
void addDefault(ParameterSetDescription const &psetDescription)
virtual float eta() const
momentum pseudorapidity
MonitorElement * hNumJetPt
MonitorElement * hNumLeptonPt
MonitorElement * hNumJetEta
MonitorElement * book1D(Args &&...args)
unsigned int minElectrons_
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
edm::EDGetTokenT< edm::View< reco::Muon > > tokMuons_
MonitorElement * hDenLeptonEta
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< edm::View< reco::GsfElectron > > tokElectrons_