Belle II Software light-2406-ragdoll
ECLTRGInformation Class Reference

Class to store information about ECL trigger cells (TCs) More...

#include <ECLTRGInformation.h>

Inheritance diagram for ECLTRGInformation:
Collaboration diagram for ECLTRGInformation:

Public Member Functions

 ECLTRGInformation ()
 Default constructor.
 
void setThetaIdTC (const int &tcid, const int &tcthetaid)
 Set m_thetaIdTC.
 
void setPhiIdTC (const int &tcid, const int &tcphiid)
 Set m_phiIdTC.
 
void setEnergyTC (const int &tcid, const float &tcenergy)
 Set m_energyTC.
 
void setTimingTC (const int &tcid, const float &tctiming)
 Set m_timingTC.
 
void setEvtTiming (float evttiming)
 Set m_evtTiming.
 
void setRevoGDLTC (const int &tcid, const float &tcrevotrg)
 Set m_revoGDLTC.
 
void setRevoFAMTC (const int &tcid, const float &tcrevofam)
 Set m_revoFAMTC.
 
void setHitWinTC (const int &tcid, const int &hitwin)
 Set m_hitWinTC.
 
int getPhiIdTC (const int &tcid) const
 Get m_phiIdTC.
 
int getThetaIdTC (const int &tcid) const
 Get m_thetaIdTC.
 
float getEnergyTC (const int &tcid) const
 Get m_energyTC.
 
float getTimingTC (const int &tcid) const
 Get m_timingTC.
 
float getRevoGDLTC (const int &tcid) const
 Get m_revoGDLTC.
 
float getRevoFAMTC (const int &tcid) const
 Get m_revoFAMTC.
 
float getHitWinTC (const int &tcid) const
 Get m_hitWinTC.
 
void setEnergyTCECLCalDigit (const int &tcid, const float &tcenergy)
 Set m_energyTCECLCalDigit.
 
float getEnergyTCECLCalDigit (const int &tcid) const
 Get m_energyTCECLCalDigit.
 
void setTimingTCECLCalDigit (const int &tcid, const float &tctiming)
 Set m_timingTCECLCalDigit.
 
float getTimingTCECLCalDigit (const int &tcid) const
 Get m_timingTCECLCalDigit.
 
void setClusterEnergyThreshold (float thresh)
 Set m_clusterEnergyThreshold.
 
float getClusterEnergyThreshold () const
 Get m_clusterEnergyThreshold.
 
void setSumEnergyTCECLCalDigitInECLCluster (float sumenergy)
 Set m_sumEnergyTCECLCalDigitInECLCluster.
 
float getSumEnergyTCECLCalDigitInECLCluster () const
 Get m_clusterEnergyThreshold.
 
void setSumEnergyECLCalDigitInECLCluster (float sumenergy)
 Set m_sumEnergyECLCalDigitInECLCluster.
 
float getSumEnergyECLCalDigitInECLCluster () const
 Get m_clusterEnergyThreshold.
 
float getEvtTiming () const
 Get m_evtTiming.
 
void setMaximumTCId (int maxtcid)
 Set m_maximumTCId.
 
int getMaximumTCId () const
 Get m_maximumTCId.
 

Static Public Attributes

static constexpr int c_nTCs = 576
 Number of TCs.
 

Private Member Functions

 ClassDef (ECLTRGInformation, 3)
 class definition
 

Private Attributes

std::vector< int > m_thetaIdTC
 thetaid, one entry per ECL TC - this is a constant quantity, no actual need to store it for every event
 
std::vector< int > m_phiIdTC
 phiid, one entry per ECL TC - this is a constant quantity, no actual need to store if for every event
 
std::vector< float > m_energyTC
 energy, one entry per ECL TC
 
std::vector< float > m_timingTC
 timing, one entry per ECL TC
 
std::vector< float > m_revoGDLTC
 revogdl, one entry per ECL TC
 
std::vector< float > m_revoFAMTC
 revofam, one entry per ECL TC
 
std::vector< int > m_hitWinTC
 hitwindow, one entry per ECL TC
 
std::vector< float > m_energyTCECLCalDigit
 energy, one entry per ECL TC based on ECLCalDigits
 
std::vector< float > m_timingTCECLCalDigit
 timing (of highest energy eclcaldigit), one entry per ECL TC based on ECLCalDigits
 
float m_clusterEnergyThreshold
 energy threshold for clusters to be included in m_sumEnergyTCECLCalDigitInECLCluster
 
float m_sumEnergyTCECLCalDigitInECLCluster
 sum of energy in ECL TCs based on ECLCalDigits that are part of an ECLCluster above threshold
 
float m_sumEnergyECLCalDigitInECLCluster
 sum of energy based on ECLCalDigits that are part of an ECLCluster above threshold
 
float m_evtTiming
 TC evttime, one entry per event.
 
int m_maximumTCId
 TC Id of TC with maximum FADC count.
 

Detailed Description

Class to store information about ECL trigger cells (TCs)

Definition at line 20 of file ECLTRGInformation.h.

Constructor & Destructor Documentation

◆ ECLTRGInformation()

ECLTRGInformation ( )
inline

Default constructor.

Definition at line 30 of file ECLTRGInformation.h.

30 :
32 m_phiIdTC(c_nTCs + 1),
33 m_energyTC(c_nTCs + 1),
34 m_timingTC(c_nTCs + 1),
37 m_hitWinTC(c_nTCs + 1),
43 m_evtTiming(std::numeric_limits<float>::quiet_NaN()),
45 {
46 // some vectors should not be initialized with zeroes but with NaN
47 for (unsigned idx = 0; idx <= c_nTCs; idx++) {
48 m_timingTC[idx] = std::numeric_limits<float>::quiet_NaN();
49 m_timingTCECLCalDigit[idx] = std::numeric_limits<float>::quiet_NaN();
50 m_hitWinTC[idx] = std::numeric_limits<int>::quiet_NaN();
51 }
52 }
std::vector< int > m_thetaIdTC
thetaid, one entry per ECL TC - this is a constant quantity, no actual need to store it for every eve...
float m_evtTiming
TC evttime, one entry per event.
std::vector< float > m_revoFAMTC
revofam, one entry per ECL TC
int m_maximumTCId
TC Id of TC with maximum FADC count.
float m_sumEnergyTCECLCalDigitInECLCluster
sum of energy in ECL TCs based on ECLCalDigits that are part of an ECLCluster above threshold
std::vector< float > m_timingTCECLCalDigit
timing (of highest energy eclcaldigit), one entry per ECL TC based on ECLCalDigits
std::vector< float > m_timingTC
timing, one entry per ECL TC
std::vector< int > m_phiIdTC
phiid, one entry per ECL TC - this is a constant quantity, no actual need to store if for every event
std::vector< int > m_hitWinTC
hitwindow, one entry per ECL TC
std::vector< float > m_energyTC
energy, one entry per ECL TC
float m_sumEnergyECLCalDigitInECLCluster
sum of energy based on ECLCalDigits that are part of an ECLCluster above threshold
float m_clusterEnergyThreshold
energy threshold for clusters to be included in m_sumEnergyTCECLCalDigitInECLCluster
static constexpr int c_nTCs
Number of TCs.
std::vector< float > m_energyTCECLCalDigit
energy, one entry per ECL TC based on ECLCalDigits
std::vector< float > m_revoGDLTC
revogdl, one entry per ECL TC

Member Function Documentation

◆ getClusterEnergyThreshold()

float getClusterEnergyThreshold ( ) const
inline

Get m_clusterEnergyThreshold.

Definition at line 250 of file ECLTRGInformation.h.

251 {
253 }

◆ getEnergyTC()

float getEnergyTC ( const int &  tcid) const
inline

Get m_energyTC.

Definition at line 150 of file ECLTRGInformation.h.

151 {
152 if (tcid > 0 and tcid < c_nTCs + 1) {
153 return m_energyTC[tcid];
154 } else {
155 B2ERROR("TC " << tcid << " does not exist.");
156 return 0.;
157 }
158 }

◆ getEnergyTCECLCalDigit()

float getEnergyTCECLCalDigit ( const int &  tcid) const
inline

Get m_energyTCECLCalDigit.

Definition at line 215 of file ECLTRGInformation.h.

216 {
217 if (tcid > 0 and tcid < c_nTCs + 1) {
218 return m_energyTCECLCalDigit[tcid];
219 } else {
220 B2ERROR("TC " << tcid << " does not exist.");
221 return 0.;
222 }
223 }

◆ getEvtTiming()

float getEvtTiming ( ) const
inline

Get m_evtTiming.

Definition at line 274 of file ECLTRGInformation.h.

275 {
276 return m_evtTiming;
277 }

◆ getHitWinTC()

float getHitWinTC ( const int &  tcid) const
inline

Get m_hitWinTC.

Definition at line 194 of file ECLTRGInformation.h.

195 {
196 if (tcid > 0 and tcid < c_nTCs + 1) {
197 return m_hitWinTC[tcid];
198 } else {
199 B2ERROR("TC " << tcid << " does not exist.");
200 return 0.;
201 }
202 }

◆ getMaximumTCId()

int getMaximumTCId ( ) const
inline

Get m_maximumTCId.

Definition at line 283 of file ECLTRGInformation.h.

284 {
285 return m_maximumTCId;
286 }

◆ getPhiIdTC()

int getPhiIdTC ( const int &  tcid) const
inline

Get m_phiIdTC.

Definition at line 128 of file ECLTRGInformation.h.

129 {
130 if (tcid >= 1 and tcid < c_nTCs + 1) {
131 return m_phiIdTC[tcid];
132 } else {
133 B2ERROR("TC " << tcid << " does not exist.");
134 return 0.;
135 }
136 }

◆ getRevoFAMTC()

float getRevoFAMTC ( const int &  tcid) const
inline

Get m_revoFAMTC.

Definition at line 183 of file ECLTRGInformation.h.

184 {
185 if (tcid > 0 and tcid < c_nTCs + 1) {
186 return m_revoFAMTC[tcid];
187 } else {
188 B2ERROR("TC " << tcid << " does not exist.");
189 return 0.;
190 }
191 }

◆ getRevoGDLTC()

float getRevoGDLTC ( const int &  tcid) const
inline

Get m_revoGDLTC.

Definition at line 172 of file ECLTRGInformation.h.

173 {
174 if (tcid > 0 and tcid < c_nTCs + 1) {
175 return m_revoGDLTC[tcid];
176 } else {
177 B2ERROR("TC " << tcid << " does not exist.");
178 return 0.;
179 }
180 }

◆ getSumEnergyECLCalDigitInECLCluster()

float getSumEnergyECLCalDigitInECLCluster ( ) const
inline

Get m_clusterEnergyThreshold.

Definition at line 268 of file ECLTRGInformation.h.

269 {
271 }

◆ getSumEnergyTCECLCalDigitInECLCluster()

float getSumEnergyTCECLCalDigitInECLCluster ( ) const
inline

Get m_clusterEnergyThreshold.

Definition at line 259 of file ECLTRGInformation.h.

260 {
262 }

◆ getThetaIdTC()

int getThetaIdTC ( const int &  tcid) const
inline

Get m_thetaIdTC.

Definition at line 139 of file ECLTRGInformation.h.

140 {
141 if (tcid > 0 and tcid < c_nTCs + 1) {
142 return m_thetaIdTC[tcid];
143 } else {
144 B2ERROR("TC " << tcid << " does not exist.");
145 return 0.;
146 }
147 }

◆ getTimingTC()

float getTimingTC ( const int &  tcid) const
inline

Get m_timingTC.

Definition at line 161 of file ECLTRGInformation.h.

162 {
163 if (tcid > 0 and tcid < c_nTCs + 1) {
164 return m_timingTC[tcid];
165 } else {
166 B2ERROR("TC " << tcid << " does not exist.");
167 return 0.;
168 }
169 }

◆ getTimingTCECLCalDigit()

float getTimingTCECLCalDigit ( const int &  tcid) const
inline

Get m_timingTCECLCalDigit.

Definition at line 236 of file ECLTRGInformation.h.

237 {
238 if (tcid > 0 and tcid < c_nTCs + 1) {
239 return m_timingTCECLCalDigit[tcid];
240 } else {
241 B2ERROR("TC " << tcid << " does not exist.");
242 return 0.;
243 }
244 }

◆ setClusterEnergyThreshold()

void setClusterEnergyThreshold ( float  thresh)
inline

Set m_clusterEnergyThreshold.

Definition at line 247 of file ECLTRGInformation.h.

247{ m_clusterEnergyThreshold = thresh; }

◆ setEnergyTC()

void setEnergyTC ( const int &  tcid,
const float &  tcenergy 
)
inline

Set m_energyTC.

Definition at line 75 of file ECLTRGInformation.h.

76 {
77 if (tcid >= 1 and tcid < c_nTCs + 1) {
78 m_energyTC[tcid] = tcenergy;
79 } else {
80 B2ERROR("TC " << tcid << " does not exist.");
81 }
82 }

◆ setEnergyTCECLCalDigit()

void setEnergyTCECLCalDigit ( const int &  tcid,
const float &  tcenergy 
)
inline

Set m_energyTCECLCalDigit.

Definition at line 205 of file ECLTRGInformation.h.

206 {
207 if (tcid > 0 and tcid < c_nTCs + 1) {
208 m_energyTCECLCalDigit[tcid] = tcenergy;
209 } else {
210 B2ERROR("TC " << tcid << " does not exist.");
211 }
212 }

◆ setEvtTiming()

void setEvtTiming ( float  evttiming)
inline

Set m_evtTiming.

Definition at line 95 of file ECLTRGInformation.h.

95{ m_evtTiming = evttiming; }

◆ setHitWinTC()

void setHitWinTC ( const int &  tcid,
const int &  hitwin 
)
inline

Set m_hitWinTC.

Definition at line 118 of file ECLTRGInformation.h.

119 {
120 if (tcid >= 1 and tcid < c_nTCs + 1) {
121 m_hitWinTC[tcid] = hitwin;
122 } else {
123 B2ERROR("TC " << tcid << " does not exist.");
124 }
125 }

◆ setMaximumTCId()

void setMaximumTCId ( int  maxtcid)
inline

Set m_maximumTCId.

Definition at line 280 of file ECLTRGInformation.h.

280{ m_maximumTCId = maxtcid; }

◆ setPhiIdTC()

void setPhiIdTC ( const int &  tcid,
const int &  tcphiid 
)
inline

Set m_phiIdTC.

Definition at line 65 of file ECLTRGInformation.h.

66 {
67 if (tcid > 0 and tcid < c_nTCs + 1) {
68 m_phiIdTC[tcid] = tcphiid;
69 } else {
70 B2ERROR("TC " << tcid << " does not exist.");
71 }
72 }

◆ setRevoFAMTC()

void setRevoFAMTC ( const int &  tcid,
const float &  tcrevofam 
)
inline

Set m_revoFAMTC.

Definition at line 108 of file ECLTRGInformation.h.

109 {
110 if (tcid >= 1 and tcid < c_nTCs + 1) {
111 m_revoFAMTC[tcid] = tcrevofam;
112 } else {
113 B2ERROR("TC " << tcid << " does not exist.");
114 }
115 }

◆ setRevoGDLTC()

void setRevoGDLTC ( const int &  tcid,
const float &  tcrevotrg 
)
inline

Set m_revoGDLTC.

Definition at line 98 of file ECLTRGInformation.h.

99 {
100 if (tcid >= 1 and tcid < c_nTCs + 1) {
101 m_revoGDLTC[tcid] = tcrevotrg;
102 } else {
103 B2ERROR("TC " << tcid << " does not exist.");
104 }
105 }

◆ setSumEnergyECLCalDigitInECLCluster()

void setSumEnergyECLCalDigitInECLCluster ( float  sumenergy)
inline

Set m_sumEnergyECLCalDigitInECLCluster.

Definition at line 265 of file ECLTRGInformation.h.

◆ setSumEnergyTCECLCalDigitInECLCluster()

void setSumEnergyTCECLCalDigitInECLCluster ( float  sumenergy)
inline

Set m_sumEnergyTCECLCalDigitInECLCluster.

Definition at line 256 of file ECLTRGInformation.h.

◆ setThetaIdTC()

void setThetaIdTC ( const int &  tcid,
const int &  tcthetaid 
)
inline

Set m_thetaIdTC.

Definition at line 55 of file ECLTRGInformation.h.

56 {
57 if (tcid > 0 and tcid <= c_nTCs + 1) {
58 m_thetaIdTC[tcid] = tcthetaid;
59 } else {
60 B2ERROR("TC " << tcid << " does not exist.");
61 }
62 }

◆ setTimingTC()

void setTimingTC ( const int &  tcid,
const float &  tctiming 
)
inline

Set m_timingTC.

Definition at line 85 of file ECLTRGInformation.h.

86 {
87 if (tcid >= 1 and tcid < c_nTCs + 1) {
88 m_timingTC[tcid] = tctiming;
89 } else {
90 B2ERROR("TC " << tcid << " does not exist.");
91 }
92 }

◆ setTimingTCECLCalDigit()

void setTimingTCECLCalDigit ( const int &  tcid,
const float &  tctiming 
)
inline

Set m_timingTCECLCalDigit.

Definition at line 226 of file ECLTRGInformation.h.

227 {
228 if (tcid > 0 and tcid < c_nTCs + 1) {
229 m_timingTCECLCalDigit[tcid] = tctiming;
230 } else {
231 B2ERROR("TC " << tcid << " does not exist.");
232 }
233 }

Member Data Documentation

◆ c_nTCs

constexpr int c_nTCs = 576
staticconstexpr

Number of TCs.

Definition at line 25 of file ECLTRGInformation.h.

◆ m_clusterEnergyThreshold

float m_clusterEnergyThreshold
private

energy threshold for clusters to be included in m_sumEnergyTCECLCalDigitInECLCluster

Definition at line 304 of file ECLTRGInformation.h.

◆ m_energyTC

std::vector<float> m_energyTC
private

energy, one entry per ECL TC

Definition at line 294 of file ECLTRGInformation.h.

◆ m_energyTCECLCalDigit

std::vector<float> m_energyTCECLCalDigit
private

energy, one entry per ECL TC based on ECLCalDigits

Definition at line 300 of file ECLTRGInformation.h.

◆ m_evtTiming

float m_evtTiming
private

TC evttime, one entry per event.

Definition at line 307 of file ECLTRGInformation.h.

◆ m_hitWinTC

std::vector<int> m_hitWinTC
private

hitwindow, one entry per ECL TC

Definition at line 298 of file ECLTRGInformation.h.

◆ m_maximumTCId

int m_maximumTCId
private

TC Id of TC with maximum FADC count.

Definition at line 308 of file ECLTRGInformation.h.

◆ m_phiIdTC

std::vector<int> m_phiIdTC
private

phiid, one entry per ECL TC - this is a constant quantity, no actual need to store if for every event

Definition at line 293 of file ECLTRGInformation.h.

◆ m_revoFAMTC

std::vector<float> m_revoFAMTC
private

revofam, one entry per ECL TC

Definition at line 297 of file ECLTRGInformation.h.

◆ m_revoGDLTC

std::vector<float> m_revoGDLTC
private

revogdl, one entry per ECL TC

Definition at line 296 of file ECLTRGInformation.h.

◆ m_sumEnergyECLCalDigitInECLCluster

float m_sumEnergyECLCalDigitInECLCluster
private

sum of energy based on ECLCalDigits that are part of an ECLCluster above threshold

Definition at line 306 of file ECLTRGInformation.h.

◆ m_sumEnergyTCECLCalDigitInECLCluster

float m_sumEnergyTCECLCalDigitInECLCluster
private

sum of energy in ECL TCs based on ECLCalDigits that are part of an ECLCluster above threshold

Definition at line 305 of file ECLTRGInformation.h.

◆ m_thetaIdTC

std::vector<int> m_thetaIdTC
private

thetaid, one entry per ECL TC - this is a constant quantity, no actual need to store it for every event

Definition at line 291 of file ECLTRGInformation.h.

◆ m_timingTC

std::vector<float> m_timingTC
private

timing, one entry per ECL TC

Definition at line 295 of file ECLTRGInformation.h.

◆ m_timingTCECLCalDigit

std::vector<float> m_timingTCECLCalDigit
private

timing (of highest energy eclcaldigit), one entry per ECL TC based on ECLCalDigits

Definition at line 302 of file ECLTRGInformation.h.


The documentation for this class was generated from the following file: