30 namespace AlCaIsolatedBunch {
43 return std::make_unique<AlCaIsolatedBunch::Counters>();
72 trigName_(iConfig.getParameter<std::
string>(
"triggerName")),
73 processName_(iConfig.getParameter<std::
string>(
"processName")),
74 theTriggerResultsLabel_(iConfig.getParameter<edm::
InputTag>(
"triggerResultLabel")),
75 tok_trigRes_(consumes<edm::TriggerResults>(theTriggerResultsLabel_)) {
99 const std::vector<std::string>& triggerNames_ = triggerNames.
triggerNames();
100 for (
unsigned int iHLT = 0; iHLT <
triggerResults->size(); iHLT++) {
102 if (triggerNames_[iHLT].
find(
trigName_) != std::string::npos) {
107 << triggerNames_[iHLT] <<
" has got HLT flag " << hlt <<
":" << accept << std::endl;
123 globalCache()->nAll_ +=
nAll_;
124 globalCache()->nGood_ +=
nGood_;
149 descriptions.
add(
"alcaIsolatedBunchSelector", desc);
Log< level::Info, true > LogVerbatim
const std::string processName_
EventNumber_t event() const
#define DEFINE_FWK_MODULE(type)
static std::unique_ptr< AlCaIsolatedBunch::Counters > initializeGlobalCache(edm::ParameterSet const &iConfig)
void endStream() override
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
edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const override
HLTConfigProvider hltConfig_
const edm::EDGetTokenT< edm::TriggerResults > tok_trigRes_
static void globalEndJob(const AlCaIsolatedBunch::Counters *counters)
Handle< PROD > getHandle(EDGetTokenT< PROD > token) const
caConstants::TupleMultiplicity const CAHitNtupletGeneratorKernelsGPU::HitToTuple const cms::cuda::AtomicPairCounter GPUCACell const *__restrict__ uint32_t const *__restrict__ gpuPixelDoublets::CellNeighborsVector const gpuPixelDoublets::CellTracksVector const GPUCACell::OuterHitOfCell const int32_t uint32_t CAHitNtupletGeneratorKernelsGPU::Counters * counters
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_
const std::string trigName_
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)
const edm::InputTag theTriggerResultsLabel_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
AlCaIsolatedBunchSelector(edm::ParameterSet const &, const AlCaIsolatedBunch::Counters *count)