Belle II Software development
TRGECLETMPara.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 TRGECLETMPARA_H
10#define TRGECLETMPARA_H
11
12#include <TObject.h>
13
14namespace Belle2 {
21 class TRGECLETMPara : public TObject {
22 public:
27 // m_moduleID(0),
28
29 {
30 }
32 TRGECLETMPara(int FPGAversion,
33 double ADCto100MeV,
34 int ELow,
35 int EHigh,
36 int ELum,
37 int FWD2DBhabha[14],
38 int BWD2DBhabha[14],
39 int Bhabha3DSelectionThreshold[2],
40 int Bhabha3DVetoThreshold[2],
41 int Bhabha3DSelectionAngle[4],
42 int Bhabha3DVetoAngle[4],
43 int mumuThreshold,
44 int mumuAngle[4],
45 int LowMultiThreshold[4],
46 int Prescalefactor[3],
47 int TriggerLatency,
48 int ETMDelay,
49 int n300MeVCluster,
50 int ECLBurstThreshold
51 ) :
52 m_FPGAversion(FPGAversion), m_ADCto100MeV(ADCto100MeV), m_ELow(ELow), m_EHigh(EHigh), m_ELum(ELum), m_mumuThreshold(mumuThreshold),
53 m_TriggerLatency(TriggerLatency), m_ETMDelay(ETMDelay), m_n300MeVCluster(n300MeVCluster), m_ECLBurstThreshold(ECLBurstThreshold)
54 {
55 for (int index = 0; index < 14; index++) {
56 m_2DBhabhaFWD[index] = FWD2DBhabha[index];
57 m_2DBhabhaBWD[index] = BWD2DBhabha[index];
58 }
59 m_3DBhabhaSelectionThreshold[0] = Bhabha3DSelectionThreshold[0];
60 m_3DBhabhaSelectionThreshold[1] = Bhabha3DSelectionThreshold[1];
61 m_3DBhabhaVetoThreshold[0] = Bhabha3DVetoThreshold[0];
62 m_3DBhabhaVetoThreshold[1] = Bhabha3DVetoThreshold[1];
63
64 m_3DBhabhaSelectionAngle[0] = Bhabha3DSelectionAngle[0];
65 m_3DBhabhaSelectionAngle[1] = Bhabha3DSelectionAngle[1];
66 m_3DBhabhaSelectionAngle[2] = Bhabha3DSelectionAngle[2];
67 m_3DBhabhaSelectionAngle[3] = Bhabha3DSelectionAngle[3];
68
69 m_3DBhabhaVetoAngle[0] = Bhabha3DVetoAngle[0];
70 m_3DBhabhaVetoAngle[1] = Bhabha3DVetoAngle[1];
71 m_3DBhabhaVetoAngle[2] = Bhabha3DVetoAngle[2];
72 m_3DBhabhaVetoAngle[3] = Bhabha3DVetoAngle[3];
73
74 m_Prescalefactor[0] = Prescalefactor[0];
75 m_Prescalefactor[1] = Prescalefactor[1];
76 m_Prescalefactor[2] = Prescalefactor[2];
77
78 m_mumuAngle[0] = mumuAngle[0];
79 m_mumuAngle[1] = mumuAngle[1];
80 m_mumuAngle[2] = mumuAngle[2];
81 m_mumuAngle[3] = mumuAngle[3];
82
83
84
85
86 m_LowMultiThreshold[0] = LowMultiThreshold[0];
87 m_LowMultiThreshold[1] = LowMultiThreshold[1];
88 m_LowMultiThreshold[2] = LowMultiThreshold[2];
89 m_LowMultiThreshold[3] = LowMultiThreshold[3];
90
91
92 }
93
94
96 void setFPGAversion(int FPGAversion) { m_FPGAversion = FPGAversion; }
98 void setADCto100MeV(double ADCto100MeV) {m_ADCto100MeV = ADCto100MeV;}
100 void setELow(int ELow) {m_ELow = ELow;}
102 void setEHigh(int EHigh) {m_EHigh = EHigh;}
104 void setELum(int ELum) {m_ELum = ELum;}
106 void set2DBhabhaFWD(int i, int FWD2DBhabha[14]) {m_2DBhabhaFWD[i] = FWD2DBhabha[i];}
108 void set2DBhabhaBWD(int i, int BWD2DBhabha[14]) {m_2DBhabhaBWD[i] = BWD2DBhabha[i];}
110 void set3DBhabhaSelectionThreshold(int i, int Bhabha3DSelectionThreshold[2]) {m_3DBhabhaSelectionThreshold[i] = Bhabha3DSelectionThreshold[i];}
112 void set3DBhabhaVetoThreshold(int i, int Bhabha3DVetoThreshold[2]) {m_3DBhabhaVetoThreshold[i] = Bhabha3DVetoThreshold[i];}
114 void set3DBhabhaSelectionAngle(int i, int Bhabha3DSelectionAngle[4]) {m_3DBhabhaSelectionAngle[i] = Bhabha3DSelectionAngle[i];}
116 void set3DBhabhaVetoAngle(int i, int Bhabha3DVetoAngle[4]) {m_3DBhabhaVetoAngle[i] = Bhabha3DVetoAngle[i];}
118 void setmumuThreshold(int mumuThreshold) {m_mumuThreshold = mumuThreshold;}
120 void setmumuAngle(int i, int mumuAngle[4]) {m_mumuAngle[i] = mumuAngle[i];}
122 void setPrescalefactor(int i, int Prescalefactor[3]) {m_Prescalefactor[i] = Prescalefactor[i];}
123
125 void setLowMultiThreshold(int i, int LowMultiThreshold[4]) {m_LowMultiThreshold[i] = LowMultiThreshold[i];}
127 void setTriggerLatency(int TriggerLatency) {m_TriggerLatency = TriggerLatency;}
129 void setETMDelay(int ETMDelay) {m_ETMDelay = ETMDelay;}
130
132 void setn300MeVCluster(int n300MeVCluster) {m_n300MeVCluster = n300MeVCluster;}
133
135 void setECLBurstThreshold(int ECLBurstThreshold) {m_ECLBurstThreshold = ECLBurstThreshold;}
136
137
138
140 int getFPGAversion() const
141 { return m_FPGAversion ; }
143 double getADCto100MeV() const {return m_ADCto100MeV;}
145 int getELow() const {return m_ELow;}
147 int getEHigh() const {return m_EHigh ;}
149 int getELum() const {return m_ELum ;}
151 int get2DBhabhaFWD(int i) const {return m_2DBhabhaFWD[i] ;}
153 int get2DBhabhaBWD(int i) const {return m_2DBhabhaBWD[i] ;}
161 int get3DBhabhaVetoAngle(int i) const {return m_3DBhabhaVetoAngle[i] ;}
163 int getmumuThreshold() const {return m_mumuThreshold ;}
165 int getmumuAngle(int i) const {return m_mumuAngle[i] ;}
167 int getPrescalefactor(int i) const {return m_Prescalefactor[i] ;}
172
174 int getLowMultiThreshold(int i) const {return m_LowMultiThreshold[i];}
176 int getTriggerLatency() const {return m_TriggerLatency ;}
178 int getETMDelay() const {return m_ETMDelay ;}
179
180
181 private :
182
183
187 double m_ADCto100MeV = 0.0;
189 int m_ELow = 0;
191 int m_EHigh = 0;
193 int m_ELum = 0;
195 int m_2DBhabhaFWD[14] = {0};
197 int m_2DBhabhaBWD[14] = {0};
209 int m_mumuAngle[4] = {0};
213 int m_Prescalefactor[3] = {0};
217 int m_ETMDelay = 0;
222
224 ClassDef(TRGECLETMPara, 2); /*< the class title */
225 };
227}
228
229#endif
Raw TC result nefor digitizing.
Definition: TRGECLETMPara.h:21
int get2DBhabhaBWD(int i) const
Get Belle 1 type(2D) Bhabha threshold in backward part (Lower)
int get2DBhabhaFWD(int i) const
Get Belle 1 type(2D) Bhabha threshold in forward part (Higher)
void setETMDelay(int ETMDelay)
Set Delay of ETM to GDL.
int getmumuThreshold() const
Set mumu Threshold.
double m_ADCto100MeV
100 MeV/ADC conversion factor
void setmumuAngle(int i, int mumuAngle[4])
Set mumu Threshold.
int get3DBhabhaVetoThreshold(int i) const
Get 3D Bhabha Threshold.
int get3DBhabhaVetoAngle(int i) const
Get 3D Bhabha Threshold.
TRGECLETMPara(int FPGAversion, double ADCto100MeV, int ELow, int EHigh, int ELum, int FWD2DBhabha[14], int BWD2DBhabha[14], int Bhabha3DSelectionThreshold[2], int Bhabha3DVetoThreshold[2], int Bhabha3DSelectionAngle[4], int Bhabha3DVetoAngle[4], int mumuThreshold, int mumuAngle[4], int LowMultiThreshold[4], int Prescalefactor[3], int TriggerLatency, int ETMDelay, int n300MeVCluster, int ECLBurstThreshold)
Construction.
Definition: TRGECLETMPara.h:32
int m_3DBhabhaSelectionThreshold[2]
3D Selection Bhabha Threshold
void setPrescalefactor(int i, int Prescalefactor[3])
Set Bhabha Prescale Factor.
void set3DBhabhaVetoAngle(int i, int Bhabha3DVetoAngle[4])
Set 3D Veto Bhabha Angle.
void set2DBhabhaBWD(int i, int BWD2DBhabha[14])
Set Belle 1 type(2D) Bhabha threshold in backward part (Lower)
int m_ELum
Total Energy > 3000 MeV.
void setLowMultiThreshold(int i, int LowMultiThreshold[4])
Set Low Multiplicity bit Threshold.
int m_LowMultiThreshold[4]
Low Multiplicity bit Threshold.
int get3DBhabhaSelectionAngle(int i) const
Get 3D Bhabha Threshold.
void setEHigh(int EHigh)
Set Total Energy > 1000 MeV.
int m_mumuAngle[4]
mumu bit angle selection
void set2DBhabhaFWD(int i, int FWD2DBhabha[14])
Set Belle 1 type(2D) Bhabha threshold in forward part (Higher)
int m_2DBhabhaBWD[14]
Belle 1 type(2D) Bhabha threshold in backward part (Lower)
int m_n300MeVCluster
The number of cluster exceeding 300 MeV.
int getmumuAngle(int i) const
get mumu Threshold
int getn300MeVCluster() const
get the number of cluster exceeding 300 MeV.
int m_ECLBurstThreshold
ECL Burst bit Threshold.
int getLowMultiThreshold(int i) const
Get Low Multiplicity bit Threshold.
void setmumuThreshold(int mumuThreshold)
Set mumu Threshold.
void setADCto100MeV(double ADCto100MeV)
Set 100 MeV/ADC conversion factor.
Definition: TRGECLETMPara.h:98
int m_3DBhabhaVetoAngle[4]
3D Veto Bhabha Angle Selection
ClassDef(TRGECLETMPara, 2)
the class title
int m_mumuThreshold
mumu bit Threshold
int m_ELow
Total Energy > 500 MeV.
int getEHigh() const
Get Total Energy > 1000 MeV.
int m_3DBhabhaSelectionAngle[4]
3D Selection Bhabha Angle Selection
void set3DBhabhaVetoThreshold(int i, int Bhabha3DVetoThreshold[2])
Set 3D Veto Bhabha Threshold.
void setn300MeVCluster(int n300MeVCluster)
Set the number of cluster exceeding 300 MeV.
void setECLBurstThreshold(int ECLBurstThreshold)
Set ECL Burst Threshold.
int get3DBhabhaSelectionThreshold(int i) const
Get 3D Bhabha Threshold.
int m_3DBhabhaVetoThreshold[2]
3D Veto Bhabha Threshold
int getECLBurstThreshold() const
get ECL Burst Threshold
int m_Prescalefactor[3]
Prescale factor.
int m_2DBhabhaFWD[14]
Belle 1 type(2D) Bhabha threshold in forward part (Higher)
int getTriggerLatency() const
Get Letency of Trigger Window (interval btw L1 and ETM TRG )
double getADCto100MeV() const
Get 100 MeV/ADC conversion factor.
int getFPGAversion() const
Get FPGAversion.
int m_ETMDelay
Delay of ETM to GDL.
void setFPGAversion(int FPGAversion)
Set FPGAversion.
Definition: TRGECLETMPara.h:96
int m_EHigh
Total Energy > 1000 MeV.
void setELow(int ELow)
Set Total Energy > 500 MeV.
void set3DBhabhaSelectionAngle(int i, int Bhabha3DSelectionAngle[4])
Set 3D Selection Bhabha Angle.
int m_TriggerLatency
Letency of Trigger Window (Interval btw L1 and ETM TRG )
void setTriggerLatency(int TriggerLatency)
Set Letency of Trigger Window (interval btw L1 and ETM TRG )
int getELow() const
Get Total Energy > 500 MeV.
void setELum(int ELum)
Set Total Energy > 3000 MeV.
int getETMDelay() const
Get Delay of ETM to GDL.
TRGECLETMPara()
Empty constructor Recommended for ROOT IO.
Definition: TRGECLETMPara.h:25
int getELum() const
Get Total Energy > 3000 MeV.
int m_FPGAversion
FPGAversion.
int getPrescalefactor(int i) const
get Bhabha Prescale Factor
void set3DBhabhaSelectionThreshold(int i, int Bhabha3DSelectionThreshold[2])
Set 3D Selection Bhabha Threshold.
Abstract base class for different kinds of events.