48 void endStream()
override;
78 edm::LogInfo(
"AlCaIsoBunch") <<
"Input tag for trigger results " 79 << theTriggerResultsLabel_
81 <<
" and process " << processName_ << std::endl;
97 << iEvent.
id().
event() <<
" Luminosity " 104 if (triggerResults.
isValid()) {
106 const std::vector<std::string> & triggerNames_ = triggerNames.
triggerNames();
107 for (
unsigned int iHLT=0; iHLT<triggerResults->
size(); iHLT++) {
109 if (triggerNames_[iHLT].
find(
trigName_)!=std::string::npos) {
114 <<
" has got HLT flag " << hlt
115 <<
":" << accept << std::endl;
130 globalCache()->nAll_ +=
nAll_;
131 globalCache()->nGood_ +=
nGood_;
136 << count->
nAll_ <<
" events" << std::endl;
144 <<
" hltconfig.init "
T getParameter(std::string const &) const
EventNumber_t event() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
static std::unique_ptr< AlCaIsolatedBunch::Counters > initializeGlobalCache(edm::ParameterSet const &iConfig)
void endStream() override
bool accept() const
Has at least one path accepted the event?
bool filter(edm::Event &, edm::EventSetup const &) override
int bunchCrossing() const
edm::LuminosityBlockNumber_t luminosityBlock() const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
~AlCaIsolatedBunchSelector() override
Strings const & triggerNames() const
HLTConfigProvider hltConfig_
static void globalEndJob(const AlCaIsolatedBunch::Counters *counters)
void addDefault(ParameterSetDescription const &psetDescription)
unsigned int size() const
Get number of paths stored.
void beginRun(edm::Run const &, edm::EventSetup const &) override
static std::string const triggerResults
std::atomic< unsigned int > nGood_
std::atomic< unsigned int > nAll_
edm::InputTag theTriggerResultsLabel_
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
void endRun(edm::Run const &, edm::EventSetup const &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
AlCaIsolatedBunchSelector(edm::ParameterSet const &, const AlCaIsolatedBunch::Counters *count)
edm::EDGetTokenT< edm::TriggerResults > tok_trigRes_
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override