55 edm::LogWarning(
"B2GSingleLeptonHLTValidation") <<
"Electrons collection not found \n";
56 unsigned int nGoodE = 0;
64 elec_ = electrons->ptrAt(
e - electrons->begin());
69 edm::LogWarning(
"B2GSingleLeptonHLTValidation") <<
"Muons collection not found \n";
70 unsigned int nGoodM = 0;
72 if (!
m->isPFMuon() || !
m->isGlobalMuon())
80 mu_ = muons->ptrAt(
m - muons->begin());
85 edm::LogWarning(
"B2GSingleLeptonHLTValidation") <<
"Jets collection not found \n";
86 unsigned int nGoodJ = 0;
91 if (!jets->empty() && jets->at(0).pt() >
ptJets0_) {
93 jet_ = jets->ptrAt(0);
97 if (jets->size() > 1 && jets->at(1).pt() >
ptJets1_) {
99 jet_ = jets->ptrAt(1);
110 jet_ = jets->ptrAt(j - jets->begin());
120 edm::LogWarning(
"B2GSingleLeptonHLTValidation") <<
"Trigger collection not found \n";
122 bool isInteresting =
false;
123 for (
unsigned int i = 0;
i < triggerNames.
triggerNames().size(); ++
i) {
125 for (
unsigned int j = 0; j <
vsPaths_.size(); j++) {
126 if (name.Contains(TString(
vsPaths_[j]), TString::kIgnoreCase)) {
127 isInteresting =
true;
135 if (
isAll_ && isInteresting)
171 for (
unsigned int i = 0;
i < triggerNames.
triggerNames().size(); ++
i) {
173 for (
unsigned int j = 0; j <
vsPaths_.size(); j++) {
174 if (name.Contains(TString(
vsPaths_[j]), TString::kIgnoreCase)) {
194 unsigned int nPaths =
vsPaths_.size();
edm::EDGetTokenT< edm::View< reco::Muon > > tokMuons_
unsigned int minElectrons_
MonitorElement * hNumLeptonEta
double eta() const final
momentum pseudorapidity
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< edm::View< reco::Jet > > tokJets_
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)
void setCurrentFolder(std::string const &fullpath)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
MonitorElement * hNumJetPt
MonitorElement * book1D(Args &&...args)
MonitorElement * hDenLeptonEta
bool isNonnull() const
Checks for non-null.
edm::EDGetTokenT< edm::View< reco::GsfElectron > > tokElectrons_
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::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
MonitorElement * hDenJetPt