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