Belle II Software development
TRGGRLModule.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#ifndef TRGGRLModule_H
10#define TRGGRLModule_H
11
12#include <string>
13#include "framework/core/Module.h"
14#include "trg/grl/TRGGRL.h"
15
16namespace Belle2 {
25
26 class TRGGRLModule : public Module {
27
28 public:
29
32// TRGGRLModule(const std::string & type);
33
35 virtual ~TRGGRLModule();
36
38 virtual void initialize() override;
39
41 virtual void beginRun() override;
42
44 virtual void event() override;
45
47 virtual void endRun() override;
48
50 virtual void terminate() override;
51
52 public:
53
55 std::string version(void) const;
56
57 private: // Parameters
58
61
63 std::string _configFilename;
64
68
72
75
76 private:
77
79 static TRGGRL* _grl;
80 };
81
83} // namespace Belle2
84
85#endif // TRGGRLModule_H
Base class for Modules.
Definition: Module.h:72
A module to simulate the Global Decision Logic.
Definition: TRGGRLModule.h:26
std::string _configFilename
Config. file name.
Definition: TRGGRLModule.h:63
int _debugLevel
Debug level.
Definition: TRGGRLModule.h:60
int _simulationMode
Mode for TRGGRL simulation.
Definition: TRGGRLModule.h:67
int _firmwareSimulationMode
Switch for the firmware simulation. 0:do nothing, 1:do everything.
Definition: TRGGRLModule.h:74
int _fastSimulationMode
Switch for the fast simulation.
Definition: TRGGRLModule.h:71
a class for TRGGRL
Definition: TRGGRL.h:43
TRGGRLModule()
Constructor.
Definition: TRGGRLModule.cc:36
virtual void initialize() override
Initilizes TRGGRLModule.
Definition: TRGGRLModule.cc:77
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.
Definition: TRGGRLModule.cc:86
std::string version(void) const
returns version of TRGGRLModule.
Definition: TRGGRLModule.cc:31
static TRGGRL * _grl
A pointer to a TRGGRL;.
Definition: TRGGRLModule.h:79
virtual ~TRGGRLModule()
Destructor.
Definition: TRGGRLModule.cc:68
Abstract base class for different kinds of events.