53 edm::LogWarning(
"B2GHadronicHLTValidation") <<
"Jets collection not found \n";
54 unsigned int nGoodJ = 0;
59 if ( jets->size() > 0 && jets->at(0).pt() >
ptJets0_ ) {
61 jet_ = jets->ptrAt(0) ;
65 if ( jets->size() > 1 && jets->at(1).pt() >
ptJets1_ ) {
67 jet_ = jets->ptrAt(1) ;
72 if (j->pt() <
ptJets_)
continue;
73 if (fabs(j->eta()) >
etaJets_)
continue;
76 if (nGoodJ ==
minJets_)
jet_ = jets->ptrAt( j -jets->begin() );
86 edm::LogWarning(
"B2GHadronicHLTValidation") <<
"Trigger collection not found \n";
88 bool isInteresting =
false;
92 for (
unsigned int j=0; j<
vsPaths_.size(); j++) {
93 if (name.Contains(TString(
vsPaths_[j]), TString::kIgnoreCase)) {
98 if (isInteresting)
break;
120 for (
unsigned int j=0; j<
vsPaths_.size(); j++) {
121 if (name.Contains(TString(
vsPaths_[j]), TString::kIgnoreCase)) {
140 unsigned int nPaths =
vsPaths_.size();
virtual double pt() const final
transverse momentum
MonitorElement * hNumJetEta
virtual double eta() const final
momentum pseudorapidity
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * hDenJetPt
Strings const & triggerNames() const
virtual 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 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.
void setCurrentFolder(const std::string &fullpath)
edm::EDGetTokenT< edm::View< reco::Jet > > tokJets_
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
MonitorElement * hDenTriggerMon
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::Ptr< reco::Jet > jet_
std::vector< std::string > vsPaths_
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
MonitorElement * hNumJetPt