Belle II Software development
TRGGDLModule.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 TRGGDLModule_H
10#define TRGGDLModule_H
11
12#include <string>
13// #include "framework/core/Module.h"
14#include <framework/core/HistoModule.h>
15#include <framework/datastore/StoreObjPtr.h>
16#include <mdst/dataobjects/TRGSummary.h>
17#include <trg/grl/dataobjects/TRGGRLInfo.h>
18#include "trg/gdl/TRGGDL.h"
19#include <simulation/dataobjects/SimClockState.h>
20#include <TDirectory.h>
21#include <TH1I.h>
22
23namespace Belle2 {
28
32
33//class TRGGDLModule : public Module {
34 class TRGGDLModule : public HistoModule {
35
36 public:
37
40// TRGGDLModule(const std::string & type);
41
43 virtual ~TRGGDLModule();
44
46 virtual void initialize() override;
47
49 virtual void beginRun() override;
50
52 virtual void event() override;
53
55 virtual void endRun() override;
56
58 virtual void terminate() override;
59
61 virtual void defineHisto() override;
62
63 public:
64
66 std::string version(void) const;
67
68 private: // Parameters
69
72
75
78
80 std::string _configFilename;
81
85
89
92
95
97 std::string _Phase;
98
100 std::string _algFilePath;
101
104
107
109
110 private:
111
113 static TRGGDL* _gdl;
114
116
117 protected:
118
119 TDirectory* oldDir = nullptr;
120 TDirectory* newDir = nullptr;
121
122 TH1I* h_inp = nullptr;
123 TH1I* h_ftd = nullptr;
124 TH1I* h_psn = nullptr;
125
126 };
127
129} // namespace Belle2
130
131#endif // TRGGDLModule_H
HistoModule()
Constructor.
Definition HistoModule.h:32
Type-safe access to single objects in the data store.
Definition StoreObjPtr.h:96
StoreObjPtr< TRGGRLInfo > m_TRGGRLInfo
required input for TRGGRLInfo
std::string _configFilename
Config. file name.
bool _algFromDB
Switch for algorithm source. False when using local .alg file.
int _debugLevel
Debug level.
double _timquality_threshold_sfin
Threshold to determine timing quality flag with MC truth: super fine.
std::string _algFilePath
Path to algorithm file.
std::string _Phase
Phase.
int _simulationMode
Mode for TRGGDL simulation.
bool m_simulateT0Jitter
if True, L1 jitter is simulated by EventT0Generator
int _firmwareSimulationMode
Switch for the firmware simulation. 0:do nothing, 1:do everything.
double _timquality_threshold_fine
Threshold to determine timing quality flag with MC truth: fine.
int _fastSimulationMode
Switch for the fast simulation.
StoreObjPtr< TRGSummary > m_TRGSummary
output for TRGSummary
StoreObjPtr< SimClockState > m_simClockState
generated hardware clock state
The instance of TRGGDL is a singleton.
Definition TRGGDL.h:44
virtual void initialize() override
Initializes TRGGDLModule.
virtual void event() override
Called event by event.
virtual void endRun() override
Called when run ended.
virtual ~TRGGDLModule()
Destructor.
virtual void terminate() override
Called when processing ended.
static TRGGDL * _gdl
A pointer to a TRGGDL;.
virtual void beginRun() override
Called when new run started.
TRGGDLModule()
Constructor.
std::string version(void) const
returns version of TRGGDLModule.
virtual void defineHisto() override
Define Histogram.
Abstract base class for different kinds of events.