48 void endStream()
override;
79 edm::LogInfo(
"AlCaIsoBunch") <<
"Input tag for trigger results " << theTriggerResultsLabel_ <<
" with trigger name " 80 <<
trigName_ <<
" and process " << processName_ << std::endl;
100 if (triggerResults.
isValid()) {
102 const std::vector<std::string>& triggerNames_ = triggerNames.
triggerNames();
103 for (
unsigned int iHLT = 0; iHLT < triggerResults->
size(); iHLT++) {
105 if (triggerNames_[iHLT].
find(
trigName_) != std::string::npos) {
109 edm::LogInfo(
"AlCaIsoBunch") << triggerNames_[iHLT] <<
" has got HLT flag " << hlt <<
":" << accept
126 globalCache()->nAll_ +=
nAll_;
127 globalCache()->nGood_ +=
nGood_;
131 edm::LogInfo(
"AlCaIsoBunch") <<
"Selects " << count->
nGood_ <<
" in " << count->
nAll_ <<
" events" << std::endl;
152 descriptions.
add(
"alcaIsolatedBunchSelector", desc);
T getParameter(std::string const &) const
EventNumber_t event() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
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)
#define DEFINE_FWK_MODULE(type)
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_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::atomic< unsigned int > nAll_
edm::InputTag theTriggerResultsLabel_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
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
void add(std::string const &label, ParameterSetDescription const &psetDescription)
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