38 , offsetPhase_(iConfig.getParameter<unsigned int>(
"offset"))
41 , gtDigiTag_ (iConfig.getParameter<edm::InputTag>(
"L1GtReadoutRecordTag"))
47 LogDebug(
"NoPrescaleService")<<
"PrescaleService unavailable, prescaleFactor=1!";
62 desc.
add<
unsigned int>(
"offset",0);
64 descriptions.
add(
"hltPrescaler", desc);
93 prescaleSet_ = handle->gtFdlWord().gtPrescaleFactorIndexAlgo();
98 edm::LogWarning(
"HLT") <<
"Cannot read prescale column index from GT data: using default as defined by configuration or DAQ";
106 <<
", path = "<< pathName
144 << accept <<
"/" <<
event
146 << 100.*accept/
static_cast<double>(
std::max(1u,event))
147 <<
"% of events accepted).";
LuminosityBlockID id() const
std::string const & pathName() const
EventNumber_t event() const
std::atomic< unsigned int > acceptCount_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::service::PrescaleService * prescaleService_
prescale service
virtual bool filter(edm::Event &iEvent, edm::EventSetup const &iSetup) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
virtual void beginLuminosityBlock(edm::LuminosityBlock const &lb, edm::EventSetup const &iSetup) override
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
static const unsigned int prescaleSeed_
"seed" used to initialize the prescale counter
HLTPrescaler(edm::ParameterSet const &iConfig, const trigger::Efficiency *efficiency)
unsigned int acceptCount_
accept counter
ModuleCallingContext const * moduleCallingContext() const
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > gtDigiToken_
PathContext const * pathContext() const
unsigned int eventCount_
event counter
bool newLumi_
check for (re)initialization of the prescale
unsigned int prescaleSet_
l1 prescale set index
LuminosityBlock const & getLuminosityBlock() const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
unsigned long long uint64_t
unsigned int getPrescale(std::string const &prescaledPath) const
LuminosityBlockNumber_t luminosityBlock() const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
unsigned int offsetPhase_
static void globalEndJob(const trigger::Efficiency *efficiency)
PlaceInPathContext const * placeInPathContext() const
unsigned int offsetCount_
initial offset
unsigned int prescaleFactor_
accept one in prescaleFactor_; 0 means never to accept an event
virtual void endStream() override
std::atomic< unsigned int > eventCount_