9#include <framework/modules/core/PrescaleModule.h>
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.");
32 addParam(
"prescale",
m_prescale,
"Fraction of events that will return True from this module. Range(0.0 -> 1.0)",
double(1.0));
void setDescription(const std::string &description)
Sets the description of the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
void setReturnValue(int value)
Sets the return value for this module as integer.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
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.
PrescaleModule()
Constructor of the module.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.