9#define TRGGRL_SHORT_NAMES
13#include "trg/grl/modules/trggrl/TRGGRLModule.h"
14#include <framework/logging/Logger.h>
33 return string(
"TRGGRLModule 0.00");
39 _configFilename(
"TRGGDLConfig.dat"),
41 _fastSimulationMode(0),
42 _firmwareSimulationMode(0)
45 string desc =
"TRGGRLModule(" +
version() +
")";
52 "The filename of CDC trigger config file",
56 "TRGGRL simulation switch",
60 "TRGGRL fast simulation mode",
64 "TRGGRL firmware simulation mode",
82 B2DEBUG(100,
"TRGGRLModule::initialize ... options");
105 B2DEBUG(300,
"TRGGDLModule ... beginRun called configFile = " << cfn);
122 B2DEBUG(300,
"TRGGRLModule ... endRun called ");
130 B2DEBUG(200,
"TRGGRLModule ... terminate called ");
void setDescription(const std::string &description)
Sets the description of the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
std::string _configFilename
Config. file name.
int _debugLevel
Debug level.
int _simulationMode
Mode for TRGGRL simulation.
int _firmwareSimulationMode
Switch for the firmware simulation. 0:do nothing, 1:do everything.
int _fastSimulationMode
Switch for the fast simulation.
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.
TRGGRLModule()
Constructor.
virtual void initialize() override
Initilizes TRGGRLModule.
virtual void event() override
Called event by event.
virtual void endRun() override
Called when run ended.
virtual void terminate() override
Called when processing ended.
virtual void beginRun() override
Called when new run started.
std::string version(void) const
returns version of TRGGRLModule.
static TRGGRL * _grl
A pointer to a TRGGRL;.
virtual ~TRGGRLModule()
Destructor.
void terminate(void)
terminates when run is finished
static TRGGRL * getTRGGRL(void)
returns TRGGRL object.
void update(bool mcAnalysis=true)
updates TRGGRL information.
std::string configFile(void) const
returns configuration file name.
void simulate(void)
fast trigger simulation.
Abstract base class for different kinds of events.