Go to the documentation of this file.
36 offsetPhase_(iConfig.getParameter<unsigned
int>(
"offset")),
37 prescaleService_(nullptr),
39 gtDigiTag_(iConfig.getParameter<
edm::
InputTag>(
"L1GtReadoutRecordTag")),
45 LogDebug(
"NoPrescaleService") <<
"PrescaleService unavailable, prescaleFactor=1!";
57 desc.
add<
unsigned int>(
"offset", 0);
59 descriptions.
add(
"hltPrescaler", desc);
84 if (handle2->
begin(0) != handle2->
end(0)) {
89 <<
"Cannot read prescale column index from GT2 data: using default as defined by configuration or DAQ";
102 <<
"Cannot read prescale column index from GT1 data: using default as defined by configuration or DAQ";
108 edm::LogInfo(
"ChangedPrescale") <<
"lumiBlockNb = " <<
iEvent.getLuminosityBlock().id().luminosityBlock()
146 <<
"% of events accepted).";
edm::EDGetTokenT< GlobalAlgBlkBxCollection > gtDigi2Token_
bool newLumi_
check for (re)initialization of the prescale
void endStream() override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
unsigned int getPrescale(std::string const &prescaledPath) const
const cms_uint16_t gtPrescaleFactorIndexAlgo() const
unsigned int prescaleSet_
l1 prescale set index
unsigned int acceptCount_
accept counter
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
unsigned int offsetPhase_
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void globalEndJob(const trigger::Efficiency *efficiency)
edm::service::PrescaleService * prescaleService_
prescale service
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > gtDigi1Token_
const_iterator begin(int bx) const
example_stream int eventCount_
HLTPrescaler(edm::ParameterSet const &iConfig, const trigger::Efficiency *efficiency)
const_iterator end(int bx) const
static const unsigned int prescaleSeed_
"seed" used to initialize the prescale counter
void beginLuminosityBlock(edm::LuminosityBlock const &lb, edm::EventSetup const &iSetup) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool filter(edm::Event &iEvent, edm::EventSetup const &iSetup) override
unsigned long long uint64_t
unsigned int eventCount_
event counter
unsigned int offsetCount_
initial offset
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
const L1GtFdlWord gtFdlWord(int bxInEventValue) const
get / set FDL word (record) in the GT readout record
unsigned int prescaleFactor_
accept one in prescaleFactor_; 0 means never to accept an event