61 void endStream()
override;
82 static const unsigned int prescaleSeed_ = 65537;
90 prescaleFactor_(iConfig.getParameter<unsigned
int>(
"prescale")),
94 offsetPhase_(iConfig.getParameter<unsigned
int>(
"offset"))
155 << accept <<
"/" <<
event 157 << 100.*accept/
static_cast<double>(
std::max(1u,event))
158 <<
"% of events accepted).";
167 desc.
add<
unsigned int>(
"prescale",1);
168 desc.
add<
unsigned int>(
"offset",0);
169 descriptions.
add(
"prescaleEvent", desc);
EventNumber_t event() const
unsigned int offsetPhase_
bool newLumi_
check for (re)initialization of the prescale
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
PrescaleEventFilter(edm::ParameterSet const &iConfig, const prescale::Efficiency *efficiency)
unsigned int acceptCount_
accept counter
static std::unique_ptr< prescale::Efficiency > initializeGlobalCache(edm::ParameterSet const &)
void endStream() override
unsigned int prescaleFactor_
accept one in prescaleFactor_; 0 means never to accept an event
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
#define DEFINE_FWK_MODULE(type)
bool filter(edm::Event &, const edm::EventSetup &) override
static const unsigned int prescaleSeed_
"seed" used to initialize the prescale counter
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 int offsetCount_
initial offset
void beginStream(edm::StreamID) override
unsigned int eventCount_
event counter
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
unsigned long long uint64_t
static void globalEndJob(const prescale::Efficiency *efficiency)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
~PrescaleEventFilter() override
std::atomic< unsigned int > acceptCount_
std::atomic< unsigned int > eventCount_