54 edm::LogWarning(
"B2GHadronicHLTValidation") <<
"Jets collection not found \n";
55 unsigned int nGoodJ = 0;
60 if (!jets->empty() && jets->at(0).pt() >
ptJets0_) {
62 jet_ = jets->ptrAt(0);
66 if (jets->size() > 1 && jets->at(1).pt() >
ptJets1_) {
68 jet_ = jets->ptrAt(1);
80 jet_ = jets->ptrAt(j - jets->begin());
90 edm::LogWarning(
"B2GHadronicHLTValidation") <<
"Trigger collection not found \n";
92 bool isInteresting =
false;
95 for (
unsigned int j = 0; j <
vsPaths_.size(); j++) {
96 if (name.Contains(TString(
vsPaths_[j]), TString::kIgnoreCase)) {
105 if (
isAll_ && isInteresting)
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)) {
142 unsigned int nPaths =
vsPaths_.size();
double eta() const final
momentum pseudorapidity
MonitorElement * hNumJetEta
bool getByToken(EDGetToken token, Handle< PROD > &result) const
double pt() const final
transverse momentum
MonitorElement * hDenJetPt
Strings const & triggerNames() const
void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * hNumTriggerMon
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::EDGetTokenT< edm::TriggerResults > tokTrigger_
void addDefault(ParameterSetDescription const &psetDescription)
void setCurrentFolder(std::string const &fullpath)
void triggerBinLabels(const std::vector< std::string > &labels)
set configurable labels for trigger monitoring histograms
MonitorElement * book1D(Args &&...args)
MonitorElement * hDenJetEta
bool isNonnull() const
Checks for non-null.
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
MonitorElement * hDenTriggerMon
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< edm::View< reco::Jet > > tokJets_
edm::Ptr< reco::Jet > jet_
std::vector< std::string > vsPaths_
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
MonitorElement * hNumJetPt