Belle II Software  release-05-01-25
TRGECLUnpackerSumStore.h
1 //-----------------------------------------------------------
2 // $Id$
3 //-----------------------------------------------------------
4 // Filename : TRGECLUnpackerSumStore.h
5 // Section : TRG ECL
6 // Owner : SungHyun Kim
7 // Email : sunghyun.kim@belle2.org
8 //-----------------------------------------------------------
9 // Description : A class to represent TRG ECL Summary.
10 //-----------------------------------------------------------
11 // $Log$
12 //-----------------------------------------------------------
13 #ifndef TRGECLUNPACKERSUMSTORE_H
14 #define TRGECLUNPACKERSUMSTORE_H
15 
16 #include <TObject.h>
17 
18 namespace Belle2 {
24  class TRGECLUnpackerSumStore : public TObject {
26  public:
27 
29  int s_eventId;
30 
32  int s_sum_win = 0;
33 
35  int s_sum_revo = 0;
36 
38  int s_cl_theta[6];
39 
41  int s_cl_phi[6];
42 
44  int s_cl_time[6];
45 
47  int s_cl_energy[6];
48 
50  int s_cl_1gev[6];
51 
53  int s_cl_2gev[6];
54 
56  int s_cl_bha[6];
57 
59  int s_ncl;
60 
62  int s_icn;
63 
66 
69 
72 
75 
77  int s_mumu;
78 
81 
84 
86  int s_b1_type;
87 
89  int s_physics;
90 
92  int s_bg_veto;
93 
95  int s_etot;
96 
99 
102 
104  int s_time;
105 
108 
110  void setEventId(int eventId) {s_eventId = eventId;}
111 
113  void setSumNum(int sum_win) {s_sum_win = sum_win;}
114 
116  void setSumRevo(int sum_revo) {s_sum_revo = sum_revo;}
117 
119  void setTime(int time) {s_time = time;}
120 
122  void setCLTheta(int cl_theta[6])
123  {
124  for (int i = 0; i < 6; i++) {
125  s_cl_theta[i] = cl_theta[i];
126  }
127  }
128 
130  void setCLPhi(int cl_phi[6])
131  {
132  for (int i = 0; i < 6; i++) {
133  s_cl_phi[i] = cl_phi[i];
134  }
135  }
136 
138  void setCLTime(int cl_time[6])
139  {
140  for (int i = 0; i < 6; i++) {
141  s_cl_time[i] = cl_time[i];
142  }
143  }
144 
146  void setCLEnergy(int cl_energy[6])
147  {
148  for (int i = 0; i < 6; i++) {
149  s_cl_energy[i] = cl_energy[i];
150  }
151  }
152 
154  void setCLF1GeV(int cl_1gev[6])
155  {
156  for (int i = 0; i < 6; i++) {
157  s_cl_1gev[i] = cl_1gev[i];
158  }
159  }
160 
162  void setCLF2GeV(int cl_2gev[6])
163  {
164  for (int i = 0; i < 6; i++) {
165  s_cl_2gev[i] = cl_2gev[i];
166  }
167  }
168 
170  void setCLFBha(int cl_bha[6])
171  {
172  for (int i = 0; i < 6; i++) {
173  s_cl_bha[i] = cl_bha[i];
174  }
175  }
176 
178  void setNCL(int ncl) {s_ncl = ncl;}
179 
181  void setICN(int icn) {s_icn = icn;}
182 
184  void setICNOver(int icn_over) {s_icn_over = icn_over;}
185 
187  void setLowMulti(int low_multi) {s_low_multi = low_multi;}
188 
190  void set3DBhabhaV(int b2bhabhav) {s_b2bhabhav = b2bhabhav;}
191 
193  void set3DBhabhaS(int b2bhabhas) {s_b2bhabhas = b2bhabhas;}
194 
196  void setMumu(int mumu) {s_mumu = mumu;}
197 
199  void setPrescale(int prescale) {s_prescale = prescale;}
200 
202  void set2DBhabha(int b1bhabha) {s_b1bhabha = b1bhabha;}
203 
205  void setBhabhaType(int b1_type) {s_b1_type = b1_type;}
206 
208  void setPhysics(int physics) {s_physics = physics;}
209 
211  void setBG(int bg_veto) {s_bg_veto = bg_veto;}
212 
214  void setEtot(int etot) {s_etot = etot;}
215 
217  void setEtotType(int etot_type) {s_etot_type = etot_type;}
218 
220  void setECLBST(int ecl_bst) {s_ecl_bst = ecl_bst;}
221 
223  void setTimeType(int time_type) {s_time_type = time_type;}
224 
226  int getEventId() const {return s_eventId;}
227 
229  int getSumNum() const {return s_sum_win;}
230 
232  int getSumRevo() const {return s_sum_revo;}
233 
235  const int* getCLTheta() const {return s_cl_theta;}
236 
238  const int* getCLPhi() const {return s_cl_phi;}
239 
241  const int* getCLTime() const {return s_cl_time;}
242 
244  const int* getCLEnergy() const {return s_cl_energy;}
245 
247  const int* getCL1GeV() const {return s_cl_1gev;}
248 
250  const int* getCL2GeV() const {return s_cl_2gev;}
251 
253  const int* getCLBha() const {return s_cl_bha;}
254 
256  int getNCL() const {return s_ncl;}
257 
259  int getICN() const {return s_icn;}
260 
262  int getICNOver() const {return s_icn_over;}
263 
265  int getLowMulti() const {return s_low_multi;}
266 
268  int get3DBhabhaV() const {return s_b2bhabhav;}
269 
271  int get3DBhabhaS() const {return s_b2bhabhas;}
272 
274  int getMumu() const {return s_mumu;}
275 
277  int getPrescale() const {return s_prescale;}
278 
280  int get2DBhabha() const {return s_b1bhabha;}
281 
283  int getBhabhaType() const {return s_b1_type;}
284 
286  int getPhysics() const {return s_physics;}
287 
289  int getBG() const {return s_bg_veto;}
290 
292  int getEtot() const {return s_etot;}
293 
295  int getEtotType() const {return s_etot_type;}
296 
298  int getECLBST() const {return s_ecl_bst;}
299 
301  int getTime() const {return s_time;}
302 
304  int getTimeType() const {return s_time_type;}
305 
307  {
308  s_eventId = 0;
309  memset(s_cl_theta, 0, sizeof(s_cl_theta));
310  memset(s_cl_phi, 0, sizeof(s_cl_phi));
311  memset(s_cl_time, 0, sizeof(s_cl_time));
312  memset(s_cl_energy, 0, sizeof(s_cl_energy));
313  memset(s_cl_1gev, 0, sizeof(s_cl_1gev));
314  memset(s_cl_2gev, 0, sizeof(s_cl_2gev));
315  memset(s_cl_bha, 0, sizeof(s_cl_bha));
316  s_ncl = 0;
317  s_icn = 0;
318  s_icn_over = 0;
319  s_low_multi = 0;
320  s_b2bhabhav = 0;
321  s_b2bhabhas = 0;
322  s_mumu = 0;
323  s_prescale = 0;
324  s_b1bhabha = 0;
325  s_b1_type = 0;
326  s_physics = 0;
327  s_bg_veto = 0;
328  s_etot = 0;
329  s_etot_type = 0;
330  s_ecl_bst = 0;
331  s_time = 0;
332  s_time_type = 0;
333  }
334 
337  int eventId,
338  int cl_theta[6],
339  int cl_phi[6],
340  int cl_time[6],
341  int cl_energy[6],
342  int cl_1gev[6],
343  int cl_2gev[6],
344  int cl_bha[6],
345  int ncl,
346  int icn,
347  int icn_over,
348  int low_multi,
349  int b2bhabhav,
350  int b2bhabhas,
351  int mumu,
352  int prescale,
353  int b1bhabha,
354  int b1_type,
355  int physics,
356  int bg_veto,
357  int etot,
358  int etot_type,
359  int ecl_bst,
360  int time,
361  int time_type
362  )
363  {
364  s_eventId = eventId;
365  for (int i = 0; i < 6; i++) {
366  s_cl_theta[i] = cl_theta[i];
367  s_cl_phi[i] = cl_phi[i];
368  s_cl_time[i] = cl_time[i];
369  s_cl_energy[i] = cl_energy[i];
370  s_cl_1gev[i] = cl_1gev[i];
371  s_cl_2gev[i] = cl_2gev[i];
372  s_cl_bha[i] = cl_bha[i];
373  }
374  s_ncl = ncl;
375  s_icn = icn;
376  s_icn_over = icn_over;
377  s_low_multi = low_multi;
378  s_b2bhabhav = b2bhabhav;
379  s_b2bhabhas = b2bhabhas;
380  s_mumu = mumu;
381  s_prescale = prescale;
382  s_b1bhabha = b1bhabha;
383  s_b1_type = b1_type;
384  s_physics = physics;
385  s_bg_veto = bg_veto;
386  s_etot = etot;
387  s_etot_type = etot_type;
388  s_ecl_bst = ecl_bst;
389  s_time = time;
390  s_time_type = time_type;
391  }
394  };
395 
397 } // end namespace Belle2
398 
399 #endif
Belle2::TRGECLUnpackerSumStore::setCLFBha
void setCLFBha(int cl_bha[6])
The mothod to set Bha Flag.
Definition: TRGECLUnpackerSumStore.h:170
Belle2::TRGECLUnpackerSumStore::s_bg_veto
int s_bg_veto
BG Veto bit of this hit.
Definition: TRGECLUnpackerSumStore.h:92
Belle2::TRGECLUnpackerSumStore::s_mumu
int s_mumu
mumu bit of this hit.
Definition: TRGECLUnpackerSumStore.h:77
Belle2::TRGECLUnpackerSumStore::setECLBST
void setECLBST(int ecl_bst)
The mothod to set ECL Burst.
Definition: TRGECLUnpackerSumStore.h:220
Belle2::TRGECLUnpackerSumStore::setSumNum
void setSumNum(int sum_win)
The mothod to set the sumamry window.
Definition: TRGECLUnpackerSumStore.h:113
Belle2::TRGECLUnpackerSumStore::getNCL
int getNCL() const
The mothod to get Number of Cluster.
Definition: TRGECLUnpackerSumStore.h:256
Belle2::TRGECLUnpackerSumStore::s_time
int s_time
Timing of this hit.
Definition: TRGECLUnpackerSumStore.h:104
Belle2::TRGECLUnpackerSumStore::setEtotType
void setEtotType(int etot_type)
The mothod to set Total Energy Type.
Definition: TRGECLUnpackerSumStore.h:217
Belle2::TRGECLUnpackerSumStore::s_time_type
int s_time_type
Timing Type of this hit.
Definition: TRGECLUnpackerSumStore.h:107
Belle2::TRGECLUnpackerSumStore::TRGECLUnpackerSumStore
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.
Definition: TRGECLUnpackerSumStore.h:336
Belle2::TRGECLUnpackerSumStore::s_ecl_bst
int s_ecl_bst
The case of ECL Burst of this hit.
Definition: TRGECLUnpackerSumStore.h:101
Belle2::TRGECLUnpackerSumStore::getICN
int getICN() const
The mothod to get ICN.
Definition: TRGECLUnpackerSumStore.h:259
Belle2::TRGECLUnpackerSumStore::set3DBhabhaV
void set3DBhabhaV(int b2bhabhav)
The mothod to set 3D Bhabha veto bit.
Definition: TRGECLUnpackerSumStore.h:190
Belle2::TRGECLUnpackerSumStore::s_physics
int s_physics
Physics bit of this hit.
Definition: TRGECLUnpackerSumStore.h:89
Belle2::TRGECLUnpackerSumStore::setCLF2GeV
void setCLF2GeV(int cl_2gev[6])
The mothod to set 2GeV Flag.
Definition: TRGECLUnpackerSumStore.h:162
Belle2::TRGECLUnpackerSumStore::s_etot_type
int s_etot_type
Total Energy Type of this hit.
Definition: TRGECLUnpackerSumStore.h:98
Belle2::TRGECLUnpackerSumStore::setICNOver
void setICNOver(int icn_over)
The mothod to set ICN overflow bit.
Definition: TRGECLUnpackerSumStore.h:184
Belle2::TRGECLUnpackerSumStore::s_cl_1gev
int s_cl_1gev[6]
Cluster CM 1GeV Flag of this hit.
Definition: TRGECLUnpackerSumStore.h:50
Belle2::TRGECLUnpackerSumStore::getEtot
int getEtot() const
The mothod to get Total Energy.
Definition: TRGECLUnpackerSumStore.h:292
Belle2::TRGECLUnpackerSumStore::s_cl_time
int s_cl_time[6]
Cluster time of this hit.
Definition: TRGECLUnpackerSumStore.h:44
Belle2::TRGECLUnpackerSumStore::getSumNum
int getSumNum() const
The mothod to get the sumamry window.
Definition: TRGECLUnpackerSumStore.h:229
Belle2::TRGECLUnpackerSumStore::s_icn
int s_icn
ICN of this hit.
Definition: TRGECLUnpackerSumStore.h:62
Belle2::TRGECLUnpackerSumStore::s_b2bhabhav
int s_b2bhabhav
3D Bhabha for veto bit of this hit.
Definition: TRGECLUnpackerSumStore.h:71
Belle2::TRGECLUnpackerSumStore::s_sum_revo
int s_sum_revo
The summary revoclk of this hit.
Definition: TRGECLUnpackerSumStore.h:35
Belle2::TRGECLUnpackerSumStore::getSumRevo
int getSumRevo() const
The mothod to get the sumamry revoclk.
Definition: TRGECLUnpackerSumStore.h:232
Belle2::TRGECLUnpackerSumStore::setCLF1GeV
void setCLF1GeV(int cl_1gev[6])
The mothod to set 1GeV Flag.
Definition: TRGECLUnpackerSumStore.h:154
Belle2::TRGECLUnpackerSumStore::getBG
int getBG() const
The mothod to get BG Veto bit.
Definition: TRGECLUnpackerSumStore.h:289
Belle2::TRGECLUnpackerSumStore::getCLPhi
const int * getCLPhi() const
The mothod to get Cluster Phi.
Definition: TRGECLUnpackerSumStore.h:238
Belle2::TRGECLUnpackerSumStore::setPhysics
void setPhysics(int physics)
The mothod to set Physics bit.
Definition: TRGECLUnpackerSumStore.h:208
Belle2::TRGECLUnpackerSumStore::s_ncl
int s_ncl
Number of Cluster of this hit.
Definition: TRGECLUnpackerSumStore.h:59
Belle2::TRGECLUnpackerSumStore::getPrescale
int getPrescale() const
The mothod to get prescale bit.
Definition: TRGECLUnpackerSumStore.h:277
Belle2::TRGECLUnpackerSumStore::getEtotType
int getEtotType() const
The mothod to get Total Energy Type.
Definition: TRGECLUnpackerSumStore.h:295
Belle2::TRGECLUnpackerSumStore::getCL1GeV
const int * getCL1GeV() const
The mothod to get 1GeV Flag.
Definition: TRGECLUnpackerSumStore.h:247
Belle2::TRGECLUnpackerSumStore::getMumu
int getMumu() const
The mothod to get mumu bit.
Definition: TRGECLUnpackerSumStore.h:274
Belle2::TRGECLUnpackerSumStore::setCLTime
void setCLTime(int cl_time[6])
The mothod to set Cluster time.
Definition: TRGECLUnpackerSumStore.h:138
Belle2::TRGECLUnpackerSumStore::getEventId
int getEventId() const
The method to get event id.
Definition: TRGECLUnpackerSumStore.h:226
Belle2::TRGECLUnpackerSumStore::getCLEnergy
const int * getCLEnergy() const
The mothod to get Cluster energy.
Definition: TRGECLUnpackerSumStore.h:244
Belle2::TRGECLUnpackerSumStore::getECLBST
int getECLBST() const
The mothod to get ECL Burst.
Definition: TRGECLUnpackerSumStore.h:298
Belle2::TRGECLUnpackerSumStore::s_cl_2gev
int s_cl_2gev[6]
Cluster CM 2GeV Flag of this hit.
Definition: TRGECLUnpackerSumStore.h:53
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TRGECLUnpackerSumStore::get3DBhabhaS
int get3DBhabhaS() const
The mothod to get 3D Bhabha selection bit.
Definition: TRGECLUnpackerSumStore.h:271
Belle2::TRGECLUnpackerSumStore::getCLTime
const int * getCLTime() const
The mothod to get Cluster time.
Definition: TRGECLUnpackerSumStore.h:241
Belle2::TRGECLUnpackerSumStore::setLowMulti
void setLowMulti(int low_multi)
The mothod to set Lowmilti bit.
Definition: TRGECLUnpackerSumStore.h:187
Belle2::TRGECLUnpackerSumStore::setTimeType
void setTimeType(int time_type)
The mothod to set Timing Type.
Definition: TRGECLUnpackerSumStore.h:223
Belle2::TRGECLUnpackerSumStore::s_low_multi
int s_low_multi
Lowmilti bit of this hit.
Definition: TRGECLUnpackerSumStore.h:68
Belle2::TRGECLUnpackerSumStore::s_cl_bha
int s_cl_bha[6]
Cluster Bhabha Flag of this hit.
Definition: TRGECLUnpackerSumStore.h:56
Belle2::TRGECLUnpackerSumStore::getICNOver
int getICNOver() const
The mothod to get ICN overflow bit.
Definition: TRGECLUnpackerSumStore.h:262
Belle2::TRGECLUnpackerSumStore::set2DBhabha
void set2DBhabha(int b1bhabha)
The mothod to set 2D Bhabha bit.
Definition: TRGECLUnpackerSumStore.h:202
Belle2::TRGECLUnpackerSumStore::get2DBhabha
int get2DBhabha() const
The mothod to get 2D Bhabha bit.
Definition: TRGECLUnpackerSumStore.h:280
Belle2::TRGECLUnpackerSumStore::ClassDef
ClassDef(TRGECLUnpackerSumStore, 4)
the class title
Belle2::TRGECLUnpackerSumStore::setCLTheta
void setCLTheta(int cl_theta[6])
The method to set Cluster Theta.
Definition: TRGECLUnpackerSumStore.h:122
Belle2::TRGECLUnpackerSumStore::s_cl_phi
int s_cl_phi[6]
Cluster Phi of this hit.
Definition: TRGECLUnpackerSumStore.h:41
Belle2::TRGECLUnpackerSumStore::setPrescale
void setPrescale(int prescale)
The mothod to set prescale bit.
Definition: TRGECLUnpackerSumStore.h:199
Belle2::TRGECLUnpackerSumStore::setSumRevo
void setSumRevo(int sum_revo)
The mothod to set the sumamry revoclk.
Definition: TRGECLUnpackerSumStore.h:116
Belle2::TRGECLUnpackerSumStore::setNCL
void setNCL(int ncl)
The mothod to set Number of Cluster.
Definition: TRGECLUnpackerSumStore.h:178
Belle2::TRGECLUnpackerSumStore::set3DBhabhaS
void set3DBhabhaS(int b2bhabhas)
The mothod to set 3D Bhabha selection bit.
Definition: TRGECLUnpackerSumStore.h:193
Belle2::TRGECLUnpackerSumStore::setBhabhaType
void setBhabhaType(int b1_type)
The mothod to set 2D Bhabha Type.
Definition: TRGECLUnpackerSumStore.h:205
Belle2::TRGECLUnpackerSumStore::s_prescale
int s_prescale
prescale bit of this hit.
Definition: TRGECLUnpackerSumStore.h:80
Belle2::TRGECLUnpackerSumStore::setTime
void setTime(int time)
The mothod to set Timing.
Definition: TRGECLUnpackerSumStore.h:119
Belle2::TRGECLUnpackerSumStore::setCLEnergy
void setCLEnergy(int cl_energy[6])
The mothod to set Cluster energy.
Definition: TRGECLUnpackerSumStore.h:146
Belle2::TRGECLUnpackerSumStore::s_icn_over
int s_icn_over
ICN overflow bit of this hit.
Definition: TRGECLUnpackerSumStore.h:65
Belle2::TRGECLUnpackerSumStore::get3DBhabhaV
int get3DBhabhaV() const
The mothod to get 3D Bhabha veto bit.
Definition: TRGECLUnpackerSumStore.h:268
Belle2::TRGECLUnpackerSumStore::s_cl_theta
int s_cl_theta[6]
Cluster Theta of this hit.
Definition: TRGECLUnpackerSumStore.h:38
Belle2::TRGECLUnpackerSumStore::getTimeType
int getTimeType() const
The mothod to get Timing Type.
Definition: TRGECLUnpackerSumStore.h:304
Belle2::TRGECLUnpackerSumStore::getBhabhaType
int getBhabhaType() const
The mothod to get 2D Bhabha Type.
Definition: TRGECLUnpackerSumStore.h:283
Belle2::TRGECLUnpackerSumStore
Example Detector.
Definition: TRGECLUnpackerSumStore.h:25
Belle2::TRGECLUnpackerSumStore::getTime
int getTime() const
The mothod to get Timing.
Definition: TRGECLUnpackerSumStore.h:301
Belle2::TRGECLUnpackerSumStore::s_sum_win
int s_sum_win
The summary window of this hit.
Definition: TRGECLUnpackerSumStore.h:32
Belle2::TRGECLUnpackerSumStore::setMumu
void setMumu(int mumu)
The mothod to set mumu bit.
Definition: TRGECLUnpackerSumStore.h:196
Belle2::TRGECLUnpackerSumStore::setBG
void setBG(int bg_veto)
The mothod to set BG Veto bit.
Definition: TRGECLUnpackerSumStore.h:211
Belle2::TRGECLUnpackerSumStore::s_b1bhabha
int s_b1bhabha
2D Bhabha bit of this hit.
Definition: TRGECLUnpackerSumStore.h:83
Belle2::TRGECLUnpackerSumStore::s_b2bhabhas
int s_b2bhabhas
3D Bhabha for selection bit of this hit.
Definition: TRGECLUnpackerSumStore.h:74
Belle2::TRGECLUnpackerSumStore::getCLBha
const int * getCLBha() const
The mothod to get Bhabha Flag.
Definition: TRGECLUnpackerSumStore.h:253
Belle2::TRGECLUnpackerSumStore::s_etot
int s_etot
Total Energy of this hit.
Definition: TRGECLUnpackerSumStore.h:95
Belle2::TRGECLUnpackerSumStore::s_eventId
int s_eventId
The evt id of this hit.
Definition: TRGECLUnpackerSumStore.h:29
Belle2::TRGECLUnpackerSumStore::setEtot
void setEtot(int etot)
The mothod to set Total Energy.
Definition: TRGECLUnpackerSumStore.h:214
Belle2::TRGECLUnpackerSumStore::getCLTheta
const int * getCLTheta() const
The method to get Cluster Theta.
Definition: TRGECLUnpackerSumStore.h:235
Belle2::TRGECLUnpackerSumStore::setCLPhi
void setCLPhi(int cl_phi[6])
The mothod to set Cluster Phi.
Definition: TRGECLUnpackerSumStore.h:130
Belle2::TRGECLUnpackerSumStore::getLowMulti
int getLowMulti() const
The mothod to get Lowmilti bit.
Definition: TRGECLUnpackerSumStore.h:265
Belle2::TRGECLUnpackerSumStore::s_cl_energy
int s_cl_energy[6]
Cluster energy of this hit.
Definition: TRGECLUnpackerSumStore.h:47
Belle2::TRGECLUnpackerSumStore::getCL2GeV
const int * getCL2GeV() const
The mothod to get 2GeV Flag.
Definition: TRGECLUnpackerSumStore.h:250
Belle2::TRGECLUnpackerSumStore::setICN
void setICN(int icn)
The mothod to set ICN.
Definition: TRGECLUnpackerSumStore.h:181
Belle2::TRGECLUnpackerSumStore::getPhysics
int getPhysics() const
The mothod to get Physics bit.
Definition: TRGECLUnpackerSumStore.h:286
Belle2::TRGECLUnpackerSumStore::setEventId
void setEventId(int eventId)
The method to set event id.
Definition: TRGECLUnpackerSumStore.h:110
Belle2::TRGECLUnpackerSumStore::s_b1_type
int s_b1_type
2D Bhabha Type of this hit.
Definition: TRGECLUnpackerSumStore.h:86