Go to the documentation of this file.
70 : nRun_(0), nAll_(0), nGood_(0) {
95 <<
iEvent.luminosityBlock() <<
" Bunch " <<
iEvent.bunchCrossing() << std::endl;
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) {
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);
void beginRun(edm::Run const &, edm::EventSetup const &) override
void endRun(edm::Run const &, edm::EventSetup const &) override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void endStream() override
edm::InputTag theTriggerResultsLabel_
edm::EDGetTokenT< edm::TriggerResults > tok_trigRes_
static const std::string triggerResults
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)
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
~AlCaIsolatedBunchSelector() override
HLTConfigProvider hltConfig_
std::atomic< unsigned int > nAll_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
AlCaIsolatedBunchSelector(edm::ParameterSet const &, const AlCaIsolatedBunch::Counters *count)
T getParameter(std::string const &) const
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
static void globalEndJob(const AlCaIsolatedBunch::Counters *counters)
bool filter(edm::Event &, edm::EventSetup const &) override
std::atomic< unsigned int > nGood_
static std::unique_ptr< AlCaIsolatedBunch::Counters > initializeGlobalCache(edm::ParameterSet const &iConfig)