Belle II Software development
TRGECLUnpackerSumStore.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 TRGECLUNPACKERSUMSTORE_H
10#define TRGECLUNPACKERSUMSTORE_H
11
12#include <TObject.h>
13
14namespace Belle2 {
21 class TRGECLUnpackerSumStore : public TObject {
22 public:
23
26
28 int s_sum_win = 0;
29
31 int s_sum_revo = 0;
32
34 int s_cl_theta[6];
35
37 int s_cl_phi[6];
38
40 int s_cl_time[6];
41
44
46 int s_cl_1gev[6];
47
49 int s_cl_2gev[6];
50
52 int s_cl_bha[6];
53
55 int s_ncl;
56
58 int s_icn;
59
62
65
68
71
73 int s_mumu;
74
77
80
83
86
89
91 int s_etot;
92
95
98
101
104
106 void setEventId(int eventId) {s_eventId = eventId;}
107
109 void setSumNum(int sum_win) {s_sum_win = sum_win;}
110
112 void setSumRevo(int sum_revo) {s_sum_revo = sum_revo;}
113
115 void setTime(int time) {s_time = time;}
116
118 void setCLTheta(int cl_theta[6])
119 {
120 for (int i = 0; i < 6; i++) {
121 s_cl_theta[i] = cl_theta[i];
122 }
123 }
124
126 void setCLPhi(int cl_phi[6])
127 {
128 for (int i = 0; i < 6; i++) {
129 s_cl_phi[i] = cl_phi[i];
130 }
131 }
132
134 void setCLTime(int cl_time[6])
135 {
136 for (int i = 0; i < 6; i++) {
137 s_cl_time[i] = cl_time[i];
138 }
139 }
140
142 void setCLEnergy(int cl_energy[6])
143 {
144 for (int i = 0; i < 6; i++) {
145 s_cl_energy[i] = cl_energy[i];
146 }
147 }
148
150 void setCLF1GeV(int cl_1gev[6])
151 {
152 for (int i = 0; i < 6; i++) {
153 s_cl_1gev[i] = cl_1gev[i];
154 }
155 }
156
158 void setCLF2GeV(int cl_2gev[6])
159 {
160 for (int i = 0; i < 6; i++) {
161 s_cl_2gev[i] = cl_2gev[i];
162 }
163 }
164
166 void setCLFBha(int cl_bha[6])
167 {
168 for (int i = 0; i < 6; i++) {
169 s_cl_bha[i] = cl_bha[i];
170 }
171 }
172
174 void setNCL(int ncl) {s_ncl = ncl;}
175
177 void setICN(int icn) {s_icn = icn;}
178
180 void setICNOver(int icn_over) {s_icn_over = icn_over;}
181
183 void setLowMulti(int low_multi) {s_low_multi = low_multi;}
184
186 void set3DBhabhaV(int b2bhabhav) {s_b2bhabhav = b2bhabhav;}
187
189 void set3DBhabhaS(int b2bhabhas) {s_b2bhabhas = b2bhabhas;}
190
192 void setMumu(int mumu) {s_mumu = mumu;}
193
195 void setPrescale(int prescale) {s_prescale = prescale;}
196
198 void set2DBhabha(int b1bhabha) {s_b1bhabha = b1bhabha;}
199
201 void setBhabhaType(int b1_type) {s_b1_type = b1_type;}
202
204 void setPhysics(int physics) {s_physics = physics;}
205
207 void setBG(int bg_veto) {s_bg_veto = bg_veto;}
208
210 void setEtot(int etot) {s_etot = etot;}
211
213 void setEtotType(int etot_type) {s_etot_type = etot_type;}
214
216 void setECLBST(int ecl_bst) {s_ecl_bst = ecl_bst;}
217
219 void setTimeType(int time_type) {s_time_type = time_type;}
220
222 int getEventId() const {return s_eventId;}
223
225 int getSumNum() const {return s_sum_win;}
226
228 int getSumRevo() const {return s_sum_revo;}
229
231 const int* getCLTheta() const {return s_cl_theta;}
232
234 const int* getCLPhi() const {return s_cl_phi;}
235
237 const int* getCLTime() const {return s_cl_time;}
238
240 const int* getCLEnergy() const {return s_cl_energy;}
241
243 const int* getCL1GeV() const {return s_cl_1gev;}
244
246 const int* getCL2GeV() const {return s_cl_2gev;}
247
249 const int* getCLBha() const {return s_cl_bha;}
250
252 int getNCL() const {return s_ncl;}
253
255 int getICN() const {return s_icn;}
256
258 int getICNOver() const {return s_icn_over;}
259
261 int getLowMulti() const {return s_low_multi;}
262
264 int get3DBhabhaV() const {return s_b2bhabhav;}
265
267 int get3DBhabhaS() const {return s_b2bhabhas;}
268
270 int getMumu() const {return s_mumu;}
271
273 int getPrescale() const {return s_prescale;}
274
276 int get2DBhabha() const {return s_b1bhabha;}
277
279 int getBhabhaType() const {return s_b1_type;}
280
282 int getPhysics() const {return s_physics;}
283
285 int getBG() const {return s_bg_veto;}
286
288 int getEtot() const {return s_etot;}
289
291 int getEtotType() const {return s_etot_type;}
292
294 int getECLBST() const {return s_ecl_bst;}
295
297 int getTime() const {return s_time;}
298
300 int getTimeType() const {return s_time_type;}
301
303 {
304 s_eventId = 0;
305 memset(s_cl_theta, 0, sizeof(s_cl_theta));
306 memset(s_cl_phi, 0, sizeof(s_cl_phi));
307 memset(s_cl_time, 0, sizeof(s_cl_time));
308 memset(s_cl_energy, 0, sizeof(s_cl_energy));
309 memset(s_cl_1gev, 0, sizeof(s_cl_1gev));
310 memset(s_cl_2gev, 0, sizeof(s_cl_2gev));
311 memset(s_cl_bha, 0, sizeof(s_cl_bha));
312 s_ncl = 0;
313 s_icn = 0;
314 s_icn_over = 0;
315 s_low_multi = 0;
316 s_b2bhabhav = 0;
317 s_b2bhabhas = 0;
318 s_mumu = 0;
319 s_prescale = 0;
320 s_b1bhabha = 0;
321 s_b1_type = 0;
322 s_physics = 0;
323 s_bg_veto = 0;
324 s_etot = 0;
325 s_etot_type = 0;
326 s_ecl_bst = 0;
327 s_time = 0;
328 s_time_type = 0;
329 }
330
333 int eventId,
334 int cl_theta[6],
335 int cl_phi[6],
336 int cl_time[6],
337 int cl_energy[6],
338 int cl_1gev[6],
339 int cl_2gev[6],
340 int cl_bha[6],
341 int ncl,
342 int icn,
343 int icn_over,
344 int low_multi,
345 int b2bhabhav,
346 int b2bhabhas,
347 int mumu,
348 int prescale,
349 int b1bhabha,
350 int b1_type,
351 int physics,
352 int bg_veto,
353 int etot,
354 int etot_type,
355 int ecl_bst,
356 int time,
357 int time_type
358 )
359 {
360 s_eventId = eventId;
361 for (int i = 0; i < 6; i++) {
362 s_cl_theta[i] = cl_theta[i];
363 s_cl_phi[i] = cl_phi[i];
364 s_cl_time[i] = cl_time[i];
365 s_cl_energy[i] = cl_energy[i];
366 s_cl_1gev[i] = cl_1gev[i];
367 s_cl_2gev[i] = cl_2gev[i];
368 s_cl_bha[i] = cl_bha[i];
369 }
370 s_ncl = ncl;
371 s_icn = icn;
372 s_icn_over = icn_over;
373 s_low_multi = low_multi;
374 s_b2bhabhav = b2bhabhav;
375 s_b2bhabhas = b2bhabhas;
376 s_mumu = mumu;
377 s_prescale = prescale;
378 s_b1bhabha = b1bhabha;
379 s_b1_type = b1_type;
380 s_physics = physics;
381 s_bg_veto = bg_veto;
382 s_etot = etot;
383 s_etot_type = etot_type;
384 s_ecl_bst = ecl_bst;
385 s_time = time;
386 s_time_type = time_type;
387 }
390 };
391
393} // end namespace Belle2
394
395#endif
int s_etot
Total Energy of this hit.
int getICNOver() const
The mothod to get ICN overflow bit.
int s_b2bhabhav
3D Bhabha for veto bit of this hit.
int s_b1_type
2D Bhabha Type of this hit.
void setCLF1GeV(int cl_1gev[6])
The mothod to set 1GeV Flag.
int s_time_type
Timing Type of this hit.
void setNCL(int ncl)
The mothod to set Number of Cluster.
int get3DBhabhaS() const
The mothod to get 3D Bhabha selection bit.
void setECLBST(int ecl_bst)
The mothod to set ECL Burst.
int s_b2bhabhas
3D Bhabha for selection bit of this hit.
ClassDef(TRGECLUnpackerSumStore, 4)
the class title
int s_bg_veto
BG Veto bit of this hit.
void setCLPhi(int cl_phi[6])
The mothod to set Cluster Phi.
int get2DBhabha() const
The mothod to get 2D Bhabha bit.
int get3DBhabhaV() const
The mothod to get 3D Bhabha veto bit.
void setPhysics(int physics)
The mothod to set Physics bit.
int getEtotType() const
The mothod to get Total Energy Type.
void setTimeType(int time_type)
The mothod to set Timing Type.
int getEtot() const
The mothod to get Total Energy.
int s_cl_phi[6]
Cluster Phi of this hit.
void setPrescale(int prescale)
The mothod to set prescale bit.
int getMumu() const
The mothod to get mumu bit.
int s_cl_theta[6]
Cluster Theta of this hit.
const int * getCLTheta() const
The method to get Cluster Theta.
int s_sum_win
The summary window of this hit.
int s_ncl
Number of Cluster of this hit.
const int * getCLEnergy() const
The mothod to get Cluster energy.
void set3DBhabhaV(int b2bhabhav)
The mothod to set 3D Bhabha veto bit.
void setLowMulti(int low_multi)
The mothod to set Lowmilti bit.
const int * getCL2GeV() const
The mothod to get 2GeV Flag.
int s_cl_bha[6]
Cluster Bhabha Flag of this hit.
int s_physics
Physics bit of this hit.
int s_prescale
prescale bit of this hit.
int s_cl_1gev[6]
Cluster CM 1GeV Flag of this hit.
void setTime(int time)
The mothod to set Timing.
int getLowMulti() const
The mothod to get Lowmilti bit.
int s_cl_energy[6]
Cluster energy of this hit.
void set2DBhabha(int b1bhabha)
The mothod to set 2D Bhabha bit.
void setCLF2GeV(int cl_2gev[6])
The mothod to set 2GeV Flag.
int getPhysics() const
The mothod to get Physics bit.
int s_ecl_bst
The case of ECL Burst of this hit.
void setCLFBha(int cl_bha[6])
The mothod to set Bha Flag.
void setCLEnergy(int cl_energy[6])
The mothod to set Cluster energy.
void setEtot(int etot)
The mothod to set Total Energy.
int s_cl_2gev[6]
Cluster CM 2GeV Flag of this hit.
int getPrescale() const
The mothod to get prescale bit.
int getBG() const
The mothod to get BG Veto bit.
int getEventId() const
The method to get event id.
void setEtotType(int etot_type)
The mothod to set Total Energy Type.
int s_b1bhabha
2D Bhabha bit of this hit.
int s_sum_revo
The summary revoclk of this hit.
int getTimeType() const
The mothod to get Timing Type.
int getBhabhaType() const
The mothod to get 2D Bhabha Type.
void setSumNum(int sum_win)
The mothod to set the sumamry window.
int getSumRevo() const
The mothod to get the sumamry revoclk.
void setMumu(int mumu)
The mothod to set mumu bit.
int s_low_multi
Lowmilti bit of this hit.
int s_eventId
The evt id of this hit.
void setICN(int icn)
The mothod to set ICN.
void set3DBhabhaS(int b2bhabhas)
The mothod to set 3D Bhabha selection bit.
const int * getCLBha() const
The mothod to get Bhabha Flag.
int getTime() const
The mothod to get Timing.
void setCLTheta(int cl_theta[6])
The method to set Cluster Theta.
void setEventId(int eventId)
The method to set event id.
const int * getCLPhi() const
The mothod to get Cluster Phi.
int s_etot_type
Total Energy Type of this hit.
void setCLTime(int cl_time[6])
The mothod to set Cluster time.
void setSumRevo(int sum_revo)
The mothod to set the sumamry revoclk.
void setICNOver(int icn_over)
The mothod to set ICN overflow bit.
int getICN() const
The mothod to get ICN.
int s_icn_over
ICN overflow bit of this hit.
const int * getCL1GeV() const
The mothod to get 1GeV Flag.
void setBhabhaType(int b1_type)
The mothod to set 2D Bhabha Type.
TRGECLUnpackerSumStore(int eventId, int cl_theta[6], int cl_phi[6], int cl_time[6], int cl_energy[6], int cl_1gev[6], int cl_2gev[6], int cl_bha[6], int ncl, int icn, int icn_over, int low_multi, int b2bhabhav, int b2bhabhas, int mumu, int prescale, int b1bhabha, int b1_type, int physics, int bg_veto, int etot, int etot_type, int ecl_bst, int time, int time_type)
Useful Constructor.
int getSumNum() const
The mothod to get the sumamry window.
int s_cl_time[6]
Cluster time of this hit.
const int * getCLTime() const
The mothod to get Cluster time.
void setBG(int bg_veto)
The mothod to set BG Veto bit.
int getNCL() const
The mothod to get Number of Cluster.
int getECLBST() const
The mothod to get ECL Burst.
Abstract base class for different kinds of events.