Belle II Software development
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
21namespace Belle2 {
26
30
31 class TRGCDCModule : public Module {
32
33 public:
34
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
81
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
114
117
120
123
126
129
132
135
138
141
144
147
150
153
156
159
162
165
168
171
174
177
180
183
186
189
192
195
198
201
210
211 private:
212
215
218 };
219
221} // namespace Belle2
222
223#endif // TRGCDCModule_H
Module()
Constructor.
Definition Module.cc:30
int _curlBackStop
Curl back stop parameter. 0:do nothing, 1:stop curling. Default is 0.
bool _fileFitter3D
Switch for Fitter3D.root file.
bool _fFitter3Ds2DFitDrift
Switch to us wire 2D fit or drift 2D fit.
bool _fFitter3Ds2DFit
Switch to us 2D fit or Hough finder results.
std::string _configFilename
Config. file name.
int _trgCDCDataInputMode
Switch for TRG CDC input mode.
std::string _hFinderMappingFilePlus
Hough mapping file for charge plus.
std::string m_3DfitterCollectionName
Name of the StoreArray holding the tracks made by the 3D fitter.
int _debugLevel
Debug level.
int _finder3DMode
Sets mode of 3DFinder.
bool _fXtSimpleFitter3D
Switch for using simple x-t curve or non-linear x-t curve. 0: non-linear 1: simple.
std::string _outerTSLUTFilename
The filename of LUT for outer track segments.(tmp)
int _simulationMode
Mode for TRGCDC simulation. 0th bit : fast simulation switch, 1st bit : firmware simulation switch.
std::string _innerTSLUTFilename
The filename of LUT for the inner-most track segments.(tmp)
bool _fLogicLUTTSF
Switch for the Logic/LUT TSF.
TRGCDCSteppingAction * _sa
A pointer to a TRGCDCSteppingAction which stops curl backs.
int _fverETF
Switch for selecting ETF version.
bool _fileHough3D
Switch for Hough3D.root file.
bool _fileTSF
Switch for TSF.root file.
bool _fileETF
Switch for ETF.root file.
std::string _rootTRGCDCFilename
The filename of root file for TRGCDC.
int _hFinderPeakMin
Min. peak height for the Hough finder.
bool _fprintFirmETF
Switch for printing Firmware inputs for ETF.
std::string m_inputCollectionName
Name of the CDCHit StoreArray used as input.
bool _fileTRGCDC
Switch for TRGCDC.root file.
std::string m_2DfinderCollectionName
Name of the StoreArray holding the tracks made by the 2D finder.
int _firmwareSimulationMode
Switch for the firmware simulation. 0:do nothing, 1:do everything.
bool _perfect2DFinder
Switch to activate perfect 2D finder.
double _wireHitInefficiency
Parameter for Hit inefficiency.
TRGCDC * _cdc
A pointer to a TRGCDC;.
int _hFinderDoit
Hough finder doit version.
int _firmwareSimulationStop
Stop clock for the firmware simultion. (clock=cdcfe)
int _firmwareSimulationStart
Start clock for the firmware simultion. (clock=cdcfe)
int _fastSimulationMode
Switch for the fast simulation. 0:do everything, 1:stop after the track segment simulation....
bool _perfect3DFinder
Switch to activate perfect 3D finder.
std::string m_2DfitterCollectionName
Name of the StoreArray holding the tracks made by the 2D fitter.
std::string _rootFitter3DFilename
The filename of root file for Fitter3D.
bool _fFitter3Dsmclr
Switch for Fitter3D's MC L/R information.
std::vector< std::string > _returnValueModuleNames
returnValue module's name. Can be ["", "TSF", "ETF", "find2D", "fit2D", "find3D", "fit3D"]....
bool _fLRLUT
Switch for the LR LUT in Fitter3D.
std::string _hFinderMappingFileMinus
Hough mapping file for charge minus.
A class to control a track in G4.
The instance of TRGCDC is a singleton.
Definition TRGCDC.h:69
virtual void initialize() override
Initializes 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.
virtual void beginRun() override
Called when new run started.
std::string version(void) const
returns version of TRGCDCModule.
Abstract base class for different kinds of events.