Belle II Software  release-08-01-10
TRGCDCModule.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 //-----------------------------------------------------------------------------
10 // Description : A trigger module for CDC
11 //-----------------------------------------------------------------------------
12 
13 #ifndef TRGCDCModule_H
14 #define TRGCDCModule_H
15 
16 #include <string>
17 #include "framework/core/Module.h"
18 #include "trg/cdc/TRGCDC.h"
19 #include "trg/cdc/SteppingAction.h"
20 
21 namespace Belle2 {
30 
31  class TRGCDCModule : public Module {
32 
33  public:
34 
36  TRGCDCModule();
37 // TRGCDCModule(const std::string & type);
38 
40  virtual ~TRGCDCModule();
41 
43  virtual void initialize() override;
44 
46  virtual void beginRun() override;
47 
49  virtual void event() override;
50 
52  virtual void endRun() override;
53 
55  virtual void terminate() override;
56 
57  public:
58 
60  std::string version(void) const;
61 
62  private: // Parameters
63 
66 
68  std::string _configFilename;
69 
71  std::vector<std::string> _returnValueModuleNames;
72 
73 // /// The filename of LUT for the inner-most track segments.
74 // std::string _innerTSLUTDataFilename;
75 //
76 // /// The filename of LUT for outer track segments.
77 // std::string _outerTSLUTDataFilename;
78 
80  std::string _innerTSLUTFilename;
81 
83  std::string _outerTSLUTFilename;
84 
85 // /// The filename of LUT for track segment finder SL0.
86 // std::string _tsfLUTSL0DataFilename;
87 //
88 // /// The filename of LUT for track segment finder SL1.
89 // std::string _tsfLUTSL1DataFilename;
90 //
91 // /// The filename of LUT for track segment finder SL2.
92 // std::string _tsfLUTSL2DataFilename;
93 //
94 // /// The filename of LUT for track segment finder SL3.
95 // std::string _tsfLUTSL3DataFilename;
96 //
97 // /// The filename of LUT for track segment finder SL4.
98 // std::string _tsfLUTSL4DataFilename;
99 //
100 // /// The filename of LUT for track segment finder SL5.
101 // std::string _tsfLUTSL5DataFilename;
102 //
103 // /// The filename of LUT for track segment finder SL6.
104 // std::string _tsfLUTSL6DataFilename;
105 //
106 // /// The filename of LUT for track segment finder SL7.
107 // std::string _tsfLUTSL7DataFilename;
108 //
109 // /// The filename of LUT for track segment finder SL8.
110 // std::string _tsfLUTSL8DataFilename;
111 
113  std::string _rootTRGCDCFilename;
114 
117 
120 
123 
126 
129 
132 
135 
138 
141 
144 
147 
150 
153 
156 
159 
161  bool _fLRLUT;
162 
165 
168 
171 
174 
176  bool _fileTSF;
177 
179  bool _fileETF;
180 
182  int _fverETF;
183 
186 
189 
192 
195 
198 
201 
210 
211  private:
212 
215 
218  };
219 
221 } // namespace Belle2
222 
223 #endif // TRGCDCModule_H
Base class for Modules.
Definition: Module.h:72
A module to simulate the CDC trigger.
Definition: TRGCDCModule.h:31
int _curlBackStop
Curl back stop parameter. 0:do nothing, 1:stop curling. Default is 0.
Definition: TRGCDCModule.h:119
bool _fileFitter3D
Switch for Fitter3D.root file.
Definition: TRGCDCModule.h:194
bool _fFitter3Ds2DFitDrift
Switch to us wire 2D fit or drift 2D fit.
Definition: TRGCDCModule.h:170
bool _fFitter3Ds2DFit
Switch to us 2D fit or Hough finder results.
Definition: TRGCDCModule.h:167
std::string _configFilename
Config. file name.
Definition: TRGCDCModule.h:68
int _trgCDCDataInputMode
Switch for TRG CDC input mode.
Definition: TRGCDCModule.h:200
std::string _hFinderMappingFilePlus
Hough mapping file for charge plus.
Definition: TRGCDCModule.h:149
std::string m_3DfitterCollectionName
Name of the StoreArray holding the tracks made by the 3D fitter.
Definition: TRGCDCModule.h:209
int _debugLevel
Debug level.
Definition: TRGCDCModule.h:65
int _finder3DMode
Sets mode of 3DFinder.
Definition: TRGCDCModule.h:191
bool _fXtSimpleFitter3D
Switch for using simple x-t curve or non-linear x-t curve. 0: non-linear 1: simple.
Definition: TRGCDCModule.h:197
std::string _outerTSLUTFilename
The filename of LUT for outer track segments.(tmp)
Definition: TRGCDCModule.h:83
int _simulationMode
Mode for TRGCDC simulation. 0th bit : fast simulation switch, 1st bit : firmware simulation switch.
Definition: TRGCDCModule.h:122
std::string _innerTSLUTFilename
The filename of LUT for the inner-most track segments.(tmp)
Definition: TRGCDCModule.h:80
bool _fLogicLUTTSF
Switch for the Logic/LUT TSF.
Definition: TRGCDCModule.h:158
TRGCDCSteppingAction * _sa
A pointer to a TRGCDCSteppingAction which stops curl backs.
Definition: TRGCDCModule.h:217
int _fverETF
Switch for selecting ETF version.
Definition: TRGCDCModule.h:182
bool _fileHough3D
Switch for Hough3D.root file.
Definition: TRGCDCModule.h:188
bool _fileTSF
Switch for TSF.root file.
Definition: TRGCDCModule.h:176
bool _fileETF
Switch for ETF.root file.
Definition: TRGCDCModule.h:179
std::string _rootTRGCDCFilename
The filename of root file for TRGCDC.
Definition: TRGCDCModule.h:113
int _hFinderPeakMin
Min. peak height for the Hough finder.
Definition: TRGCDCModule.h:146
bool _fprintFirmETF
Switch for printing Firmware inputs for ETF.
Definition: TRGCDCModule.h:185
std::string m_inputCollectionName
Name of the CDCHit StoreArray used as input.
Definition: TRGCDCModule.h:203
bool _fileTRGCDC
Switch for TRGCDC.root file.
Definition: TRGCDCModule.h:137
std::string m_2DfinderCollectionName
Name of the StoreArray holding the tracks made by the 2D finder.
Definition: TRGCDCModule.h:205
int _firmwareSimulationMode
Switch for the firmware simulation. 0:do nothing, 1:do everything.
Definition: TRGCDCModule.h:128
bool _perfect2DFinder
Switch to activate perfect 2D finder.
Definition: TRGCDCModule.h:140
double _wireHitInefficiency
Parameter for Hit inefficiency.
Definition: TRGCDCModule.h:173
TRGCDC * _cdc
A pointer to a TRGCDC;.
Definition: TRGCDCModule.h:214
int _hFinderDoit
Hough finder doit version.
Definition: TRGCDCModule.h:155
int _firmwareSimulationStop
Stop clock for the firmware simultion. (clock=cdcfe)
Definition: TRGCDCModule.h:134
int _firmwareSimulationStart
Start clock for the firmware simultion. (clock=cdcfe)
Definition: TRGCDCModule.h:131
int _fastSimulationMode
Switch for the fast simulation. 0:do everything, 1:stop after the track segment simulation....
Definition: TRGCDCModule.h:125
bool _perfect3DFinder
Switch to activate perfect 3D finder.
Definition: TRGCDCModule.h:143
std::string m_2DfitterCollectionName
Name of the StoreArray holding the tracks made by the 2D fitter.
Definition: TRGCDCModule.h:207
std::string _rootFitter3DFilename
The filename of root file for Fitter3D.
Definition: TRGCDCModule.h:116
bool _fFitter3Dsmclr
Switch for Fitter3D's MC L/R information.
Definition: TRGCDCModule.h:164
std::vector< std::string > _returnValueModuleNames
returnValue module's name. Can be ["", "TSF", "ETF", "find2D", "fit2D", "find3D", "fit3D"]....
Definition: TRGCDCModule.h:71
bool _fLRLUT
Switch for the LR LUT in Fitter3D.
Definition: TRGCDCModule.h:161
std::string _hFinderMappingFileMinus
Hough mapping file for charge minus.
Definition: TRGCDCModule.h:152
A class to control a track in G4.
The instance of TRGCDC is a singleton.
Definition: TRGCDC.h:69
virtual void initialize() override
Initilizes TRGCDCModule.
virtual ~TRGCDCModule()
Destructor.
virtual void event() override
Called event by event.
virtual void endRun() override
Called when run ended.
virtual void terminate() override
Called when processing ended.
TRGCDCModule()
Constructor.
Definition: TRGCDCModule.cc:47
virtual void beginRun() override
Called when new run started.
std::string version(void) const
returns version of TRGCDCModule.
Definition: TRGCDCModule.cc:42
Abstract base class for different kinds of events.