Belle II Software  release-05-02-19
TRGECLModule.h
1 //---------------------------------------------------------
2 // $Id$
3 //---------------------------------------------------------
4 // Filename : TRGECLModule.h
5 // Section : TRG ECL
6 // Owner : InSu Lee/Yuuji Unno
7 // Email : islee@hep.hanyang.ac.kr / yunno@post.kek.jp
8 //---------------------------------------------------------
9 // Description : A trigger module for TRG ECL
10 //---------------------------------------------------------
11 // 0.00 : 2011/11/12 : First version
12 //---------------------------------------------------------
13 
14 #ifndef TRGECLModule_H
15 #define TRGECLModule_H
16 
17 #include <string>
18 #include <framework/core/Module.h>
19 #include <framework/datastore/StoreArray.h>
20 #include <framework/database/DBArray.h>
21 
22 #include "trg/ecl/dataobjects/TRGECLHit.h"
23 #include "trg/ecl/dataobjects/TRGECLTrg.h"
24 #include "trg/ecl/dataobjects/TRGECLCluster.h"
25 #include "trg/ecl/dbobjects/TRGECLETMPara.h"
26 
27 namespace Belle2 {
37  class TRGECLModule : public Module {
38 
39 
40  public:
41 
43  TRGECLModule();
44 
46  virtual ~TRGECLModule();
47 
49  virtual void initialize() override;
50 
52  virtual void beginRun() override;
53 
55  virtual void event() override;
56 
58  virtual void endRun() override;
59 
61  virtual void terminate() override;
62 
63  public:
64 
66  std::string version(void) const;
67 
68  private: // Parameters
69 
72 
74  std::string _configFilename;
75 
77  // TrgEcl* _ecl; */
78 
79  protected:
81  std::string m_inColName;
83  std::string m_eclHitOutColName;
85  std::string m_eclTCHitOutColName;
86 
89  int m_hitNum = 0;
91  int m_hitTCNum = 0;
92 
93  private:
94 
95  // double m_timeCPU; // CPU time
97  int m_nRun = 0;
99  int m_nEvent = 0;
101  int _Bhabha;
109  double _TimeWindow;
119  std::vector<double> _2DBhabhaThresholdFWD;
121  std::vector<double> _2DBhabhaThresholdBWD;
123  std::vector<double> _3DBhabhaSelectionThreshold;
125  std::vector<double> _3DBhabhaVetoThreshold;
127  std::vector<double> _3DBhabhaSelectionAngle;
129  std::vector<double> _3DBhabhaVetoAngle;
133  std::vector<double> _mumuAngle;
139  std::vector<double> _TotalEnergy;
141  std::vector<double> _LowMultiThreshold;
142 
151 
152  };
153 
155 } // namespace Belle2
156 
157 #endif // TRGECLModule_H
Belle2::TRGECLModule::_ClusterLimit
int _ClusterLimit
Cluster Limit.
Definition: TRGECLModule.h:105
Belle2::TRGECLModule::_Bhabha
int _Bhabha
Bhabha option.
Definition: TRGECLModule.h:101
Belle2::TRGECLModule::_3DBhabhaVetoThreshold
std::vector< double > _3DBhabhaVetoThreshold
3D Veto Bhabha Energy Threshold
Definition: TRGECLModule.h:125
Belle2::TRGECLModule::m_nRun
int m_nRun
Run number.
Definition: TRGECLModule.h:97
Belle2::TRGECLModule::_Clustering
int _Clustering
Clustering option.
Definition: TRGECLModule.h:103
Belle2::TRGECLModule::~TRGECLModule
virtual ~TRGECLModule()
Destructor
Definition: TRGECLModule.cc:106
Belle2::TRGECLModule::_ConditionDB
int _ConditionDB
Flag to use Condition DB.
Definition: TRGECLModule.h:117
Belle2::TRGECLModule::_SelectEvent
int _SelectEvent
Event selection.
Definition: TRGECLModule.h:115
Belle2::TRGECLModule::m_eclTCHitOutColName
std::string m_eclTCHitOutColName
Output array name for TC.
Definition: TRGECLModule.h:85
Belle2::TRGECLModule::_3DBhabhaSelectionThreshold
std::vector< double > _3DBhabhaSelectionThreshold
3D Selection Bhabha Energy Threshold
Definition: TRGECLModule.h:123
Belle2::TRGECLModule::_n300MeVCluster
int _n300MeVCluster
The number of Cluster exceeding 300 MeV.
Definition: TRGECLModule.h:135
Belle2::TRGECLModule::TRGECLModule
TRGECLModule()
Constructor.
Definition: TRGECLModule.cc:49
Belle2::DBArray
Class for accessing arrays of objects in the database.
Definition: DBArray.h:36
Belle2::TRGECLModule::_debugLevel
int _debugLevel
Debug level.
Definition: TRGECLModule.h:71
Belle2::TRGECLModule::_3DBhabhaSelectionAngle
std::vector< double > _3DBhabhaSelectionAngle
3D Selection Bhabha Energy Angle
Definition: TRGECLModule.h:127
Belle2::TRGECLModule::m_nEvent
int m_nEvent
Event number.
Definition: TRGECLModule.h:99
Belle2::TRGECLModule::_NofTopTC
int _NofTopTC
Definition: TRGECLModule.h:113
Belle2::TRGECLModule::m_hitNum
int m_hitNum
The current number of created hits in an event.
Definition: TRGECLModule.h:89
Belle2::TRGECLModule::_3DBhabhaVetoAngle
std::vector< double > _3DBhabhaVetoAngle
3D Veto Bhabha Energy Angle
Definition: TRGECLModule.h:129
Belle2::TRGECLModule::version
std::string version(void) const
returns version of TRGECLModule.
Definition: TRGECLModule.cc:42
Belle2::TRGECLModule::m_TRGECLTrg
StoreArray< TRGECLTrg > m_TRGECLTrg
output for TRGECLTrg
Definition: TRGECLModule.h:146
Belle2::TRGECLModule
A module of ETM.
Definition: TRGECLModule.h:37
Belle2::Module
Base class for Modules.
Definition: Module.h:74
Belle2::TRGECLModule::_LowMultiThreshold
std::vector< double > _LowMultiThreshold
Low Multiplicity Threshold.
Definition: TRGECLModule.h:141
Belle2::TRGECLModule::_ECLBurstThreshold
double _ECLBurstThreshold
ECL Burst Bit Threshold.
Definition: TRGECLModule.h:137
Belle2::TRGECLModule::m_TRGECLCluster
StoreArray< TRGECLCluster > m_TRGECLCluster
output for TRGECLCluster
Definition: TRGECLModule.h:148
Belle2::TRGECLModule::initialize
virtual void initialize() override
Initilizes TRGECLModule.
Definition: TRGECLModule.cc:118
Belle2::TRGECLModule::_mumuThreshold
double _mumuThreshold
mumu bit Energy Threshold
Definition: TRGECLModule.h:131
Belle2::TRGECLModule::terminate
virtual void terminate() override
Called when processing ended.
Definition: TRGECLModule.cc:241
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TRGECLModule::_OverlapWindow
double _OverlapWindow
Trigger decision overlap window in oder to avoid boundary effect.
Definition: TRGECLModule.h:111
Belle2::TRGECLModule::m_hitTCNum
int m_hitTCNum
TC Hit number.
Definition: TRGECLModule.h:91
Belle2::TRGECLModule::_configFilename
std::string _configFilename
Config.
Definition: TRGECLModule.h:74
Belle2::TRGECLModule::_2DBhabhaThresholdBWD
std::vector< double > _2DBhabhaThresholdBWD
2D Bhabha Energy Threshold
Definition: TRGECLModule.h:121
Belle2::TRGECLModule::m_inColName
std::string m_inColName
A pointer to a TRGECL;*‍/.
Definition: TRGECLModule.h:81
Belle2::TRGECLModule::endRun
virtual void endRun() override
Called when run ended.
Definition: TRGECLModule.cc:231
Belle2::TRGECLModule::_TimeWindow
double _TimeWindow
Trigger decision time window.
Definition: TRGECLModule.h:109
Belle2::TRGECLModule::_2DBhabhaThresholdFWD
std::vector< double > _2DBhabhaThresholdFWD
2D Bhabha Energy Threshold
Definition: TRGECLModule.h:119
Belle2::TRGECLModule::m_eclHitOutColName
std::string m_eclHitOutColName
Output array name for Xtal.
Definition: TRGECLModule.h:83
Belle2::TRGECLModule::m_ETMPara
DBArray< TRGECLETMPara > m_ETMPara
ETN Parameters.
Definition: TRGECLModule.h:150
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::TRGECLModule::m_TRGECLHit
StoreArray< TRGECLHit > m_TRGECLHit
output for TRGECLHit
Definition: TRGECLModule.h:144
Belle2::TRGECLModule::beginRun
virtual void beginRun() override
Called when new run started.
Definition: TRGECLModule.cc:145
Belle2::TRGECLModule::_EventTiming
int _EventTiming
Eventtiming option.
Definition: TRGECLModule.h:107
Belle2::TRGECLModule::event
virtual void event() override
Called event by event.
Definition: TRGECLModule.cc:175
Belle2::TRGECLModule::_mumuAngle
std::vector< double > _mumuAngle
mumu bit Angle
Definition: TRGECLModule.h:133
Belle2::TRGECLModule::_TotalEnergy
std::vector< double > _TotalEnergy
Total Energy Theshold (low, high, lum)
Definition: TRGECLModule.h:139