25 :
count_(),
n_(ps.getParameter<
int>(
"prescaleFactor")),
offset_(ps.getParameter<
int>(
"prescaleOffset")) {}
32 return count %
n_ ==
offset_ ?
true :
false;
37 desc.
add<
int>(
"prescaleFactor")->setComment(
"Accept one event every N events");
38 desc.
add<
int>(
"prescaleOffset")
40 "The first event to accept should be the Mth one. Choose 'prescaleFactor'=1 to accept the first event from " 42 descriptions.
add(
"preScaler", desc);
Prescaler(ParameterSet const &)
static void fillDescriptions(ConfigurationDescriptions &descriptions)
std::atomic< int > count_
#define DEFINE_FWK_MODULE(type)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
bool filter(StreamID, Event &e, EventSetup const &c) const final