Belle II Software  release-08-01-10
TRGECLUnpackerEvtStore.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 TRGECLUNPACKEREVTSTORE_H
10 #define TRGECLUNPACKEREVTSTORE_H
11 
12 #include <TObject.h>
13 
14 namespace Belle2 {
21  class TRGECLUnpackerEvtStore : public TObject {
22  public:
23 
25  int e_eventId;
26 
28  int e_etm;
29 
31  int e_l1_revo;
32 
35 
38 
40  int e_evt_win;
41 
43  int e_ntc;
44 
46  int e_cl_theta[6];
47 
49  int e_cl_phi[6];
50 
52  int e_cl_time[6];
53 
55  int e_cl_energy[6];
56 
58  int e_cl_1gev[6];
59 
61  int e_cl_2gev[6];
62 
64  int e_cl_bha[6];
65 
67  int e_ncl;
68 
71 
74 
77 
79  int e_mumu;
80 
83 
85  int e_icn;
86 
89 
92 
94  int e_etot;
95 
97  int e_ecl_bst;
98 
101 
104 
107 
110 
113 
116 
119 
122 
125 
128 
131 
133  void setEventId(int eventId) {e_eventId = eventId;}
134 
136  void setETM(int etm) {e_etm = etm;}
137 
139  void setL1Revo(int l1_revo) {e_l1_revo = l1_revo;}
140 
142  void setEvtTime(int evt_time) {e_evt_time = evt_time;}
143 
145  void setEvtRevo(int evt_revo) {e_evt_revo = evt_revo;}
146 
148  void setEvtWin(int evt_win) {e_evt_win = evt_win;}
149 
151  void setNTC(int ntc) {e_ntc = ntc;}
152 
154  void setCLTheta(int cl_theta[6])
155  {
156  for (int i = 0; i < 6; i++) {
157  e_cl_theta[i] = cl_theta[i];
158  }
159  }
160 
162  void setCLPhi(int cl_phi[6])
163  {
164  for (int i = 0; i < 6; i++) {
165  e_cl_phi[i] = cl_phi[i];
166  }
167  }
168 
170  void setCLTime(int cl_time[6])
171  {
172  for (int i = 0; i < 6; i++) {
173  e_cl_time[i] = cl_time[i];
174  }
175  }
176 
178  void setCLEnergy(int cl_energy[6])
179  {
180  for (int i = 0; i < 6; i++) {
181  e_cl_energy[i] = cl_energy[i];
182  }
183  }
184 
186  void setCLF1GeV(int cl_1gev[6])
187  {
188  for (int i = 0; i < 6; i++) {
189  e_cl_1gev[i] = cl_1gev[i];
190  }
191  }
192 
194  void setCLF2GeV(int cl_2gev[6])
195  {
196  for (int i = 0; i < 6; i++) {
197  e_cl_2gev[i] = cl_2gev[i];
198  }
199  }
200 
202  void setCLFBha(int cl_bha[6])
203  {
204  for (int i = 0; i < 6; i++) {
205  e_cl_bha[i] = cl_bha[i];
206  }
207  }
208 
210  void setNCL(int ncl) {e_ncl = ncl;}
211 
213  void setLowMulti(int low_multi) {e_low_multi = low_multi;}
214 
216  void set3DBhabhaV(int b2bhabhav) {e_b2bhabhav = b2bhabhav;}
217 
219  void set3DBhabhaS(int b2bhabhas) {e_b2bhabhas = b2bhabhas;}
220 
222  void setMumu(int mumu) {e_mumu = mumu;}
223 
225  void setPrescale(int prescale) {e_prescale = prescale;}
226 
228  void setICN(int icn) {e_icn = icn;}
229 
231  void setICNOver(int icn_over) {e_icn_over = icn_over;}
232 
234  void setEtotType(int etot_type) {e_etot_type = etot_type;}
235 
237  void setEtot(int etot) {e_etot = etot;}
238 
240  void setECLBST(int eclbst) {e_ecl_bst = eclbst;}
241 
243  void set2DBhabha(int b1bhabha) {e_b1bhabha = b1bhabha;}
244 
246  void setBhabhaType(int b1_type) {e_b1_type = b1_type;}
247 
249  void setPhysics(int physics) {e_physics = physics;}
250 
252  void setTimeType(int time_type) {e_time_type = time_type;}
253 
255  void setCheckSum(int checksum) {e_checksum = checksum;}
256 
258  void setEvtExist(int evtexist) {e_checkevt = evtexist;}
259 
261  void setTRGTYPE(int trgtype) {e_trgtype = trgtype;}
262 
264  void setEtotAll(int etotall) {e_etot_all = etotall;}
265 
267  void setEvtTimeMin(int timemin) {e_evt_time_min = timemin;}
268 
270  void setEvtTimeMax(int timemax) {e_evt_time_max = timemax;}
271 
273  void setEvtTimeWin(int timewin) {e_evt_time_win = timewin;}
274 
276  int getEventId() const {return e_eventId;}
277 
279  int getETM() const {return e_etm;}
280 
282  int getL1Revo() const {return e_l1_revo;}
283 
285  int getEvtTime() const {return e_evt_time;}
286 
288  int getEvtRevo() const {return e_evt_revo;}
289 
291  int getEvtWin() const {return e_evt_win;}
292 
294  int getNTC() const {return e_ntc;}
295 
297  const int* getCLTheta() const {return e_cl_theta;}
298 
300  const int* getCLPhi() const {return e_cl_phi;}
301 
303  const int* getCLTime() const {return e_cl_time;}
304 
306  const int* getCLEnergy() const {return e_cl_energy;}
307 
309  const int* getCL1GeV() const {return e_cl_1gev;}
310 
312  const int* getCL2GeV() const {return e_cl_2gev;}
313 
315  const int* getCLBha() const {return e_cl_bha;}
316 
318  int getNCL() const {return e_ncl;}
319 
321  int getLowMulti() const {return e_low_multi;}
322 
324  int get3DBhabhaV() const {return e_b2bhabhav;}
325 
327  int get3DBhabhaS() const {return e_b2bhabhas;}
328 
330  int getMumu() const {return e_mumu;}
331 
333  int getPrescale() const {return e_prescale;}
334 
336  int getICN() const {return e_icn;}
337 
339  int getICNOver() const {return e_icn_over;}
340 
342  int getEtotType() const {return e_etot_type;}
343 
345  int getEtot() const {return e_etot;}
346 
348  int getECLBST() const {return e_ecl_bst;}
349 
351  int get2DBhabha() const {return e_b1bhabha;}
352 
354  int getBhabhaType() const {return e_b1_type;}
355 
357  int getPhysics() const {return e_physics;}
358 
360  int getCheckSum() const {return e_checksum;}
361 
363  int getEvtExist() const {return e_checkevt;}
364 
366  int getTRGTYPE() const {return e_trgtype;}
367 
369  int getTimeType() const {return e_time_type;}
370 
372  int getEtotAll() const {return e_etot_all;}
373 
375  int getEvtTimeMin() const {return e_evt_time_min;}
376 
378  int getEvtTimeMax() const {return e_evt_time_max;}
379 
381  int getEvtTimeWin() const {return e_evt_time_win;}
382 
384  {
385  e_eventId = 0;
386  e_etm = 0;
387  e_l1_revo = 0;
388  e_evt_time = 0;
389  e_evt_revo = 0;
390  e_evt_win = 0;
391  e_ntc = 0;
392  memset(e_cl_theta, 0, sizeof(e_cl_theta));
393  memset(e_cl_phi, 0, sizeof(e_cl_phi));
394  memset(e_cl_time, 0, sizeof(e_cl_time));
395  memset(e_cl_energy, 0, sizeof(e_cl_energy));
396  memset(e_cl_1gev, 0, sizeof(e_cl_1gev));
397  memset(e_cl_2gev, 0, sizeof(e_cl_2gev));
398  memset(e_cl_bha, 0, sizeof(e_cl_bha));
399  e_ncl = 0;
400  e_low_multi = 0;
401  e_b2bhabhav = 0;
402  e_b2bhabhas = 0;
403  e_mumu = 0;
404  e_prescale = 0;
405  e_icn = 0;
406  e_icn_over = 0;
407  e_etot_type = 0;
408  e_etot = 0;
409  e_ecl_bst = 0;
410  e_b1bhabha = 0;
411  e_b1_type = 0;
412  e_physics = 0;
413  e_time_type = 0;
414  e_checksum = 0;
415  e_checkevt = 0;
416  e_trgtype = 0;
417  e_etot_all = 0;
418  e_evt_time_min = 0;
419  e_evt_time_max = 0;
420  e_evt_time_win = 0;
421  }
422 
425  int eventId,
426  int etm,
427  int l1_revo,
428  int evt_time,
429  int evt_revo,
430  int evt_win,
431  int ntc,
432  int cl_theta[6],
433  int cl_phi[6],
434  int cl_time[6],
435  int cl_energy[6],
436  int cl_1gev[6],
437  int cl_2gev[6],
438  int cl_bha[6],
439  int ncl,
440  int low_multi,
441  int b2bhabhav,
442  int b2bhabhas,
443  int mumu,
444  int prescale,
445  int icn,
446  int icn_over,
447  int etot_type,
448  int etot,
449  int eclbst,
450  int b1bhabha,
451  int b1_type,
452  int physics,
453  int time_type,
454  int checksum,
455  int evtexist,
456  int trgtype,
457  int etotall,
458  int timemin,
459  int timemax,
460  int timewin
461  )
462  {
463  e_eventId = eventId;
464  e_etm = etm;
465  e_l1_revo = l1_revo;
466  e_evt_time = evt_time;
467  e_evt_revo = evt_revo;
468  e_evt_win = evt_win;
469  e_ntc = ntc;
470  for (int i = 0; i < 6; i++) {
471  e_cl_theta[i] = cl_theta[i];
472  e_cl_phi[i] = cl_phi[i];
473  e_cl_time[i] = cl_time[i];
474  e_cl_energy[i] = cl_energy[i];
475  e_cl_1gev[i] = cl_1gev[i];
476  e_cl_2gev[i] = cl_2gev[i];
477  e_cl_bha[i] = cl_bha[i];
478  }
479  e_ncl = ncl;
480  e_low_multi = low_multi;
481  e_b2bhabhav = b2bhabhav;
482  e_b2bhabhas = b2bhabhas;
483  e_mumu = mumu;
484  e_prescale = prescale;
485  e_icn = icn;
486  e_icn_over = icn_over;
487  e_etot_type = etot_type;
488  e_etot = etot;
489  e_ecl_bst = eclbst;
490  e_b1bhabha = b1bhabha;
491  e_b1_type = b1_type;
492  e_physics = physics;
493  e_time_type = time_type;
494  e_checksum = checksum;
495  e_checkevt = evtexist;
496  e_trgtype = trgtype;
497  e_etot_all = etotall;
498  e_evt_time_min = timemin;
499  e_evt_time_max = timemax;
500  e_evt_time_win = timewin;
501  }
504  };
505 
507 } // end namespace Belle2
508 
509 #endif
int getEvtTimeWin() const
The mothod to get Evt Timing Win.
int getICNOver() const
The mothod to get ICN overflow bit.
void setETM(int etm)
The method to set the ETM version.
void setEvtTimeMax(int timemax)
The method to set Evt Timing Max.
void setEvtWin(int evt_win)
The method to set event window.
int e_b2bhabhav
3D Bhabha for veto bit of this hit.
void setCLF1GeV(int cl_1gev[6])
The mothod to set 1GeV Flag.
void setTRGTYPE(int trgtype)
The method to set TRG Type.
void setNCL(int ncl)
The mothod to set Number of Cluster.
int get3DBhabhaS() const
The method to get 3D Bhabha selection bit.
int getNTC() const
The method to get event ntc.
int getEvtTime() const
The method to get event Timing.
int getEvtTimeMin() const
The mothod to get Evt Timing Min.
int getEvtRevo() const
The method to get event revoclk.
int getEvtExist() const
The method to get Evt Check.
const int * getCL1GeV() const
The mothod to get 1GeV Flag.
int getEvtTimeMax() const
The mothod to get Evt Timing Max.
const int * getCL2GeV() const
The mothod to get 2GeV Flag.
int e_ncl
Number of Cluster of this hit.
void setCLPhi(int cl_phi[6])
The mothod to set Cluster Phi.
int get2DBhabha() const
The method to get 2D Bhabha bit.
int get3DBhabhaV() const
The method to get 3D Bhabha veto bit.
int e_eventId
The evt id of this event.
void setNTC(int ntc)
The method to set event ntc.
void setPhysics(int physics)
The method to set Physics bit.
int getCheckSum() const
The method to get checksum flag.
int e_b2bhabhas
3D Bhabha for selection bit of this hit.
int getEtotType() const
The mothod to get Total Energy Type.
int e_evt_time
Event Timing of this event.
const int * getCLTheta() const
The method to get Cluster Theta.
void setTimeType(int time_type)
The mothod to set Timing Type.
int e_cl_1gev[6]
Cluster CM 1GeV Flag of this hit.
int getEtot() const
The method to get Total Energy.
int e_cl_bha[6]
Cluster Bhabha Flag of this hit.
int e_evt_revo
Event revoclk of this event.
int e_evt_time_min
Event Timing Range min of this event.
int e_ntc
Number of TC of this event.
void setPrescale(int prescale)
The method to set prescale bit.
int getMumu() const
The method to get mumu bit.
int getETM() const
The method to get the ETM version.
void setEvtTimeMin(int timemin)
The method to set Evt Timing Min.
void setEtotAll(int etotall)
The method to set ETOT all.
void set3DBhabhaV(int b2bhabhav)
The method to set 3D Bhabha veto bit.
void setLowMulti(int low_multi)
The mothod to set Lowmilti bit.
int e_evt_time_win
Event Timing win of this event. -1 or 1.
int e_etm
The ETM version of this event.
void setEvtRevo(int evt_revo)
The method to set event revoclk.
const int * getCLEnergy() const
The mothod to get Cluster energy.
int getLowMulti() const
The mothod to get Lowmilti bit.
int e_b1bhabha
2D Bhabha bit of this event.
void setECLBST(int eclbst)
The mothod to set Total Energy more than 20 gev.
int e_etot
Total Energy of this event (Physics region).
void set2DBhabha(int b1bhabha)
The method to set 2D Bhabha bit.
int e_checkevt
event check of this event.
void setCLF2GeV(int cl_2gev[6])
The mothod to set 2GeV Flag.
int getPhysics() const
The method to get Physics bit.
int e_b1_type
2D Bhabha Type of this hit.
void setCheckSum(int checksum)
The method to set checksum flag.
void setCLFBha(int cl_bha[6])
The mothod to set Bha Flag.
int e_evt_win
Event window of this event.
int e_ecl_bst
The case of Total Energy > 20GeV of this hit.
void setCLEnergy(int cl_energy[6])
The mothod to set Cluster energy.
void setEtot(int etot)
The method to set Total Energy.
int e_etot_all
Total Energy of this event (All region).
int e_cl_energy[6]
Cluster energy of this hit.
TRGECLUnpackerEvtStore(int eventId, int etm, int l1_revo, int evt_time, int evt_revo, int evt_win, int ntc, 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 low_multi, int b2bhabhav, int b2bhabhas, int mumu, int prescale, int icn, int icn_over, int etot_type, int etot, int eclbst, int b1bhabha, int b1_type, int physics, int time_type, int checksum, int evtexist, int trgtype, int etotall, int timemin, int timemax, int timewin)
Useful Constructor.
void setL1Revo(int l1_revo)
The method to set the L1 revoclk.
int getPrescale() const
The method to get prescale bit.
int e_evt_time_max
Event Timing Range max of this event.
int getEventId() const
The method to get event id.
void setEtotType(int etot_type)
The mothod to set Total Energy Type.
int e_time_type
Timing Type of this hit.
int e_prescale
prescale bit of this hit.
int e_etot_type
Total Energy Type of this hit.
int e_l1_revo
The L1 revoclk of this event.
void setEvtExist(int evtexist)
The method to set Evt Exist.
const int * getCLBha() const
The mothod to get Bhabha Flag.
int getTimeType() const
The mothod to get Timing Type.
int e_checksum
checksum flag of this event.
int getBhabhaType() const
The mothod to get 2D Bhabha Type.
int getL1Revo() const
The method to get the L1 revoclk.
ClassDef(TRGECLUnpackerEvtStore, 4)
the class title
void setMumu(int mumu)
The method to set mumu bit.
const int * getCLTime() const
The mothod to get Cluster time.
void setEvtTime(int evt_time)
The method to set event Timing.
void setICN(int icn)
The mothod to set ICN.
int getTRGTYPE() const
The method to get TRG Type.
void set3DBhabhaS(int b2bhabhas)
The method to set 3D Bhabha selection bit.
int e_cl_2gev[6]
Cluster CM 2GeV Flag of this hit.
void setCLTheta(int cl_theta[6])
The method to set Cluster Theta.
int e_cl_theta[6]
Cluster Theta of this hit.
int e_icn_over
ICN overflow bit of this hit.
int getEvtWin() const
The method to get event window.
void setEventId(int eventId)
The method to set event id.
int getEtotAll() const
The mothod to get ETOT all.
int e_cl_time[6]
Cluster time of this hit.
void setCLTime(int cl_time[6])
The mothod to set Cluster time.
void setICNOver(int icn_over)
The mothod to set ICN overflow bit.
int e_cl_phi[6]
Cluster Phi of this hit.
const int * getCLPhi() const
The mothod to get Cluster Phi.
int getICN() const
The mothod to get ICN.
void setBhabhaType(int b1_type)
The mothod to set 2D Bhabha Type.
int e_low_multi
Lowmilti bit of this hit.
void setEvtTimeWin(int timewin)
The method to set Evt Timing Win.
int getNCL() const
The mothod to get Number of Cluster.
int e_physics
Physics bit of this event.
int getECLBST() const
The mothod to get Total Energy more than 20GeV.
Abstract base class for different kinds of events.