37 , offsetPhase_(iConfig.getParameter<unsigned
int>(
"offset"))
40 , gtDigiTag_ (iConfig.getParameter<
edm::InputTag>(
"L1GtReadoutRecordTag"))
47 LogDebug(
"NoPrescaleService")<<
"PrescaleService unavailable, prescaleFactor=1!";
59 desc.
add<
unsigned int>(
"offset",0);
61 descriptions.
add(
"hltPrescaler", desc);
90 if (handle2->
begin(0)!=handle2->
end(0)) {
94 edm::LogWarning(
"HLT") <<
"Cannot read prescale column index from GT2 data: using default as defined by configuration or DAQ";
106 edm::LogWarning(
"HLT") <<
"Cannot read prescale column index from GT1 data: using default as defined by configuration or DAQ";
115 <<
", path = "<< pathName
153 << accept <<
"/" <<
event 155 << 100.*accept/
static_cast<double>(
std::max(1u,event))
156 <<
"% of events accepted).";
LuminosityBlockID id() const
std::string const & pathName() const
const_iterator end(int bx) const
EventNumber_t event() const
std::atomic< unsigned int > acceptCount_
example_stream int eventCount_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::service::PrescaleService * prescaleService_
prescale service
bool filter(edm::Event &iEvent, edm::EventSetup const &iSetup) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
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
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
edm::EDGetTokenT< GlobalAlgBlkBxCollection > gtDigi2Token_
const cms_uint16_t gtPrescaleFactorIndexAlgo() const
unsigned long long uint64_t
const L1GtFdlWord gtFdlWord(int bxInEventValue) const
get / set FDL word (record) in the GT readout record
unsigned int getPrescale(std::string const &prescaledPath) const
LuminosityBlockNumber_t luminosityBlock() const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
unsigned int offsetPhase_
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > gtDigi1Token_
static void globalEndJob(const trigger::Efficiency *efficiency)
const_iterator begin(int bx) const
PlaceInPathContext const * placeInPathContext() const
unsigned int offsetCount_
initial offset
unsigned int prescaleFactor_
accept one in prescaleFactor_; 0 means never to accept an event
void endStream() override
std::atomic< unsigned int > eventCount_