Belle II Software prerelease-10-00-00a
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
36//class TRGGDLModule : public Module {
40 class TRGGDLModule : public HistoModule {
41
42 public:
43
46// TRGGDLModule(const std::string & type);
47
49 virtual ~TRGGDLModule();
50
52 virtual void initialize() override;
53
55 virtual void beginRun() override;
56
58 virtual void event() override;
59
61 virtual void endRun() override;
62
64 virtual void terminate() override;
65
67 virtual void defineHisto() override;
68
69 public:
70
72 std::string version(void) const;
73
74 private: // Parameters
75
78
80 StoreObjPtr<TRGSummary> m_TRGSummary;
81
84
86 std::string _configFilename;
87
91
95
98
101
102 // Phase
103 std::string _Phase;
104
105 // Path to algorithm file
106 std::string _algFilePath;
107
110
113
115
116 private:
117
119 static TRGGDL* _gdl;
120
122
123 protected:
124
125 TDirectory* oldDir = nullptr;
126 TDirectory* newDir = nullptr;
127
128 TH1I* h_inp = nullptr;
129 TH1I* h_ftd = nullptr;
130 TH1I* h_psn = nullptr;
131
132 };
133
135} // namespace Belle2
136
137#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.
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< 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.