54 edm::LogWarning(
"B2GSingleLeptonHLTValidation") <<
"Electrons collection not found \n";
55 unsigned int nGoodE = 0;
65 edm::LogWarning(
"B2GSingleLeptonHLTValidation") <<
"Muons collection not found \n";
66 unsigned int nGoodM = 0;
68 if (!
m->isPFMuon() || !
m->isGlobalMuon())
continue;
77 edm::LogWarning(
"B2GSingleLeptonHLTValidation") <<
"Jets collection not found \n";
78 unsigned int nGoodJ = 0;
109 edm::LogWarning(
"B2GSingleLeptonHLTValidation") <<
"Trigger collection not found \n";
111 bool isInteresting =
false;
112 for (
unsigned int i=0;
i<triggerNames.triggerNames().size(); ++
i) {
114 TString
name = triggerNames.triggerNames()[
i].c_str();
116 if (name.Contains(TString(
vsPaths_[
j]), TString::kIgnoreCase)) {
117 isInteresting =
true;
121 if (isInteresting)
break;
159 for (
unsigned int i=0;
i<triggerNames.triggerNames().size(); ++
i) {
160 TString
name = triggerNames.triggerNames()[
i].c_str();
162 if (name.Contains(TString(
vsPaths_[
j]), TString::kIgnoreCase)) {
185 unsigned int nPaths =
vsPaths_.size();
edm::EDGetTokenT< edm::View< reco::GsfElectron > > tokElectrons_
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
unsigned int minElectrons_
MonitorElement * hNumLeptonEta
edm::EDGetTokenT< edm::View< reco::Jet > > tokJets_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::Ptr< reco::Muon > mu_
MonitorElement * hDenLeptonPt
MonitorElement * hDenTriggerMon
MonitorElement * hNumJetEta
edm::Ptr< reco::GsfElectron > elec_
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_
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
virtual 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_
MonitorElement * hDenJetPt