54 edm::LogWarning(
"B2GSingleLeptonHLTValidation") <<
"Electrons collection not found \n";
55 unsigned int nGoodE = 0;
60 if (nGoodE == 1)
elec_ = electrons->ptrAt(
e - electrons->begin());
65 edm::LogWarning(
"B2GSingleLeptonHLTValidation") <<
"Muons collection not found \n";
66 unsigned int nGoodM = 0;
68 if (!
m->isPFMuon() || !
m->isGlobalMuon())
continue;
72 if (nGoodM == 1)
mu_ = muons->ptrAt(
m - muons->begin() );
77 edm::LogWarning(
"B2GSingleLeptonHLTValidation") <<
"Jets collection not found \n";
78 unsigned int nGoodJ = 0;
83 if ( !jets->empty() && jets->at(0).pt() >
ptJets0_ ) {
85 jet_ = jets->ptrAt(0) ;
89 if ( jets->size() > 1 && jets->at(1).pt() >
ptJets1_ ) {
91 jet_ = jets->ptrAt(1) ;
96 if (j->pt() <
ptJets_)
continue;
97 if (fabs(j->eta()) >
etaJets_)
continue;
99 if (nGoodJ ==
minJets_)
jet_ = jets->ptrAt( j -jets->begin() );
109 edm::LogWarning(
"B2GSingleLeptonHLTValidation") <<
"Trigger collection not found \n";
111 bool isInteresting =
false;
115 for (
unsigned int j=0; j<
vsPaths_.size(); j++) {
116 if (name.Contains(TString(
vsPaths_[j]), TString::kIgnoreCase)) {
117 isInteresting =
true;
121 if (isInteresting)
break;
161 for (
unsigned int j=0; j<
vsPaths_.size(); j++) {
162 if (name.Contains(TString(
vsPaths_[j]), TString::kIgnoreCase)) {
185 unsigned int nPaths =
vsPaths_.size();
edm::EDGetTokenT< edm::View< reco::GsfElectron > > tokElectrons_
unsigned int minElectrons_
MonitorElement * hNumLeptonEta
double eta() const final
momentum pseudorapidity
edm::EDGetTokenT< edm::View< reco::Jet > > tokJets_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::Ptr< reco::Muon > mu_
MonitorElement * hDenLeptonPt
MonitorElement * hDenTriggerMon
double pt() const final
transverse momentum
MonitorElement * hNumJetEta
edm::Ptr< reco::GsfElectron > elec_
Strings const & triggerNames() const
edm::EDGetTokenT< edm::TriggerResults > tokTrigger_
void addDefault(ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
MonitorElement * hNumJetPt
MonitorElement * book1D(Args &&...args)
MonitorElement * hDenLeptonEta
bool isNonnull() const
Checks for non-null.
void setCurrentFolder(const std::string &fullpath)
MonitorElement * hDenJetEta
edm::Ptr< reco::Jet > jet_
void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * hNumTriggerMon
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::vector< std::string > vsPaths_
void triggerBinLabels(const std::vector< std::string > &labels)
set configurable labels for trigger monitoring histograms
MonitorElement * hNumLeptonPt
edm::EDGetTokenT< edm::View< reco::Muon > > tokMuons_
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
MonitorElement * hDenJetPt