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
unsigned int getPrescale(std::string const &prescaledPath) const
const cms_uint16_t gtPrescaleFactorIndexAlgo() const
Log< level::Info, false > LogInfo
Log< level::Warning, false > LogWarning
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
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