9 #include <framework/modules/core/PrescaleModule.h>
26 setDescription(
"Returns True or False randomly for each event. "
27 "Fraction of the time that True is returned is set by the 'prescale' parameter. "
28 "You can use conditional basf2 paths to allow only the events that return True (or False) to continue.");
30 setPropertyFlags(c_ParallelProcessingCertified);
32 addParam(
"prescale", m_prescale,
"Fraction of events that will return True from this module. Range(0.0 -> 1.0)",
double(1.0));
void setReturnValue(int value)
Sets the return value for this module as integer.
virtual void event() override
Sets the return value by running a RNG vs.
double m_prescale
Prescale module parameter, this fraction of events will return True.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.