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);
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).";
const cms_uint16_t gtPrescaleFactorIndexAlgo() const
example_stream int eventCount_
unsigned int getPrescale(std::string const &prescaledPath) const
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 isEmpty(int bx) const
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
const L1GtFdlWord gtFdlWord(int bxInEventValue) const
get / set FDL word (record) in the GT readout record
static const unsigned int prescaleSeed_
"seed" used to initialize the prescale counter
const_iterator begin(int bx) const
HLTPrescaler(edm::ParameterSet const &iConfig, const trigger::Efficiency *efficiency)
unsigned int acceptCount_
accept counter
unsigned int eventCount_
event counter
bool newLumi_
check for (re)initialization of the prescale
#define DEFINE_FWK_MODULE(type)
unsigned int prescaleSet_
l1 prescale set index
edm::EDGetTokenT< GlobalAlgBlkBxCollection > gtDigi2Token_
Log< level::Info, false > LogInfo
unsigned long long uint64_t
void add(std::string const &label, ParameterSetDescription const &psetDescription)
unsigned int offsetPhase_
edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > gtDigi1Token_
static void globalEndJob(const trigger::Efficiency *efficiency)
Log< level::Warning, false > LogWarning
unsigned int offsetCount_
initial offset
unsigned int prescaleFactor_
accept one in prescaleFactor_; 0 means never to accept an event
void endStream() override