30 namespace AlCaIsolatedBunch {
43 return std::make_unique<AlCaIsolatedBunch::Counters>();
69 : nRun_(0), nAll_(0), nGood_(0) {
78 edm::LogVerbatim(
"AlCaIsoBunch") <<
"Input tag for trigger results " << theTriggerResultsLabel_
79 <<
" with trigger name " <<
trigName_ <<
" and process " << processName_
101 const std::vector<std::string>& triggerNames_ = triggerNames.
triggerNames();
102 for (
unsigned int iHLT = 0; iHLT <
triggerResults->size(); iHLT++) {
104 if (triggerNames_[iHLT].
find(
trigName_) != std::string::npos) {
109 << triggerNames_[iHLT] <<
" has got HLT flag " << hlt <<
":" << accept << std::endl;
125 globalCache()->nAll_ +=
nAll_;
126 globalCache()->nGood_ +=
nGood_;
151 descriptions.
add(
"alcaIsolatedBunchSelector", desc);
Log< level::Info, true > LogVerbatim
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_
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_
edm::InputTag theTriggerResultsLabel_
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
T getParameter(std::string const &) const
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_