9#include <svd/modules/svdSimulation/SVDTriggerQualityGeneratorModule.h>
10#include <root/TRandom.h>
24 B2DEBUG(1,
"Constructor");
26 setDescription(
"Generates a StoreObjPtr that contains random trigger quality chosen between FINE and COARSE");
50 if (gRandom->Integer(2) == 0)
@ c_ErrorIfAlreadyRegistered
If the object/array was already registered, produce an error (aborting initialisation).
void setDescription(const std::string &description)
Sets the description of the module.
virtual void initialize() override
init the module
virtual void event() override
processes the event
std::string m_trgQRGName
name of the output TRGQualityRG StoreObjPtr
StoreObjPtr< TRGSummary > m_triggerQRG
storage for TRGQualityRG object required for the module
SVDTriggerQualityGeneratorModule()
Constructor: Sets the description, the properties and the parameters of the module.
virtual ~SVDTriggerQualityGeneratorModule() override
if required
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.