55 edm::LogWarning(
"B2GSingleLeptonHLTValidation") <<
"Electrons collection not found \n";
56 unsigned int nGoodE = 0;
69 edm::LogWarning(
"B2GSingleLeptonHLTValidation") <<
"Muons collection not found \n";
70 unsigned int nGoodM = 0;
72 if (!
m->isPFMuon() || !
m->isGlobalMuon())
85 edm::LogWarning(
"B2GSingleLeptonHLTValidation") <<
"Jets collection not found \n";
86 unsigned int nGoodJ = 0;
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)
154 for (
unsigned int idx = 0; idx <
vsPaths_.size(); ++idx) {
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
virtual void setCurrentFolder(std::string const &fullpath)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< edm::View< reco::Jet > > tokJets_
edm::Ptr< reco::Muon > mu_
MonitorElement * hDenLeptonPt
MonitorElement * hDenTriggerMon
MonitorElement * hNumJetEta
edm::Ptr< reco::GsfElectron > elec_
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
edm::EDGetTokenT< edm::TriggerResults > tokTrigger_
void addDefault(ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
MonitorElement * hNumJetPt
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
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
MonitorElement * hDenJetPt