 |
Belle II Software
release-05-02-19
|
14 #define TRGGRL_SHORT_NAMES
18 #include "trg/grl/modules/trggrl/TRGGRLModule.h"
19 #include <framework/logging/Logger.h>
33 TRGGRLModule::_grl = 0;
36 TRGGRLModule::version()
const
38 return string(
"TRGGRLModule 0.00");
41 TRGGRLModule::TRGGRLModule()
44 _configFilename(
"TRGGDLConfig.dat"),
46 _fastSimulationMode(0),
47 _firmwareSimulationMode(0)
50 string desc =
"TRGGRLModule(" +
version() +
")";
57 "The filename of CDC trigger config file",
61 "TRGGRL simulation switch",
65 "TRGGRL fast simulation mode",
69 "TRGGRL firmware simulation mode",
87 B2DEBUG(100,
"TRGGRLModule::initialize ... options");
110 B2DEBUG(300,
"TRGGDLModule ... beginRun called configFile = " << cfn);
127 B2DEBUG(300,
"TRGGRLModule ... endRun called ");
135 B2DEBUG(200,
"TRGGRLModule ... terminate called ");
std::string configFile(void) const
returns configuration file name.
void setDescription(const std::string &description)
Sets the description of the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
void simulate(void)
fast trigger simulation.
int _fastSimulationMode
Switch for the fast simulation.
int _simulationMode
Mode for TRGGRL simulation.
std::string version(void) const
returns version of TRGGRLModule.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
void update(bool mcAnalysis=true)
updates TRGGRL information.
static TRGGRL * getTRGGRL(void)
returns TRGGRL object.
virtual void initialize() override
Initilizes TRGGRLModule.
int _debugLevel
Debug level.
virtual ~TRGGRLModule()
Destructor.
virtual void terminate() override
Called when processing ended.
Abstract base class for different kinds of events.
virtual void endRun() override
Called when run ended.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
int _firmwareSimulationMode
Switch for the firmware simulation. 0:do nothing, 1:do everything.
void terminate(void)
terminates when run is finished
virtual void beginRun() override
Called when new run started.
std::string _configFilename
Config. file name.
static TRGGRL * _grl
A pointer to a TRGGRL;.
virtual void event() override
Called event by event.