Belle II Software  release-05-01-25
TRGECLDigi0MC.h
1 //-----------------------------------------------------------
2 // $Id$
3 //-----------------------------------------------------------
4 // Filename : TRGECLDigi0MC.h
5 // Section : TRG ECL
6 // Owner : InSoo Lee/Yuuji Unno
7 // Email : islee@hep.hanyang.ac.kr / yunno@post.kek.jp
8 //-----------------------------------------------------------
9 // Description : A class to represent ECL.
10 //-----------------------------------------------------------
11 // $Log$
12 //-----------------------------------------------------------
13 
14 #ifndef TRGECLDIGI0MC_H
15 #define TRGECLDIGI0MC_H
16 
17 #include <TObject.h>
18 
19 namespace Belle2 {
25  class TRGECLDigi0MC : public TObject {
27  public:
28 
30  int m_eventid;
32  int m_tcid;
37  double m_raw_energy;
39  double m_raw_timing;
44 
45 
46 
48 
56  int m_pdg_1;
67 
75  double m_energy_1;
78 
80 
88  int m_pdg_2;
99 
107  double m_energy_2;
110 
112 
120  int m_pdg_3;
131 
139  double m_energy_3;
142 
143 
145  void setEventId(int eventid) { m_eventid = eventid; }
147  void setTCId(int tcid) { m_tcid = tcid; }
149  void setiBinTime(int ibintime) { m_ibintime = ibintime; }
150 
152  void setRawEnergy(double raw_energy) { m_raw_energy = raw_energy; }
154  void setSignalContribution(double signal_contribution) { m_signal_contribution = signal_contribution; }
156  void setBKGContribution(double bkg_contribution) { m_bkg_contribution = bkg_contribution; }
158  void setRawTiming(double raw_timing) { m_raw_timing = raw_timing; }
161 
162 
164  void setCellId(int cell[3])
165  {
166  m_cellId_1 = cell[0];
167  m_cellId_2 = cell[1];
168  m_cellId_3 = cell[2];
169 
170  }
172  void setTrackId(int track[3])
173  {
174  m_trackId_1 = track[0];
175  m_trackId_2 = track[1];
176  m_trackId_3 = track[2];
177 
178  }
180  void setPDG(int pdg[3])
181  {
182  m_pdg_1 = pdg[0];
183  m_pdg_2 = pdg[1];
184  m_pdg_3 = pdg[2];
185  }
187  void setMother(int mother[3])
188  {
189  m_mother_1 = mother[0];
190  m_mother_2 = mother[1];
191  m_mother_3 = mother[2];
192  }
194  void setGMother(int gmother[3])
195  {
196  m_gmother_1 = gmother[0];
197  m_gmother_2 = gmother[1];
198  m_gmother_3 = gmother[2];
199  }
201  void setGGMother(int ggmother[3])
202  {
203  m_ggmother_1 = ggmother[0];
204  m_ggmother_2 = ggmother[1];
205  m_ggmother_3 = ggmother[2];
206  }
208  void setGGGMother(int gggmother[3])
209  {
210  m_gggmother_1 = gggmother[0];
211  m_gggmother_2 = gggmother[1];
212  m_gggmother_3 = gggmother[2];
213  }
215  void setBackgroundTag(int back[3])
216  {
217  m_background_tag_1 = back[0];
218  m_background_tag_2 = back[1];
219  m_background_tag_3 = back[2];
220 
221  }
223  void setPX(double px[3])
224  {
225  m_momentum_x_1 = px[0];
226  m_momentum_x_2 = px[1];
227  m_momentum_x_3 = px[2];
228  }
230  void setPY(double py[3])
231  {
232  m_momentum_y_1 = py[0];
233  m_momentum_y_2 = py[1];
234  m_momentum_y_3 = py[2];
235  }
237  void setPZ(double pz[3])
238  {
239  m_momentum_z_1 = pz[0];
240  m_momentum_z_2 = pz[1];
241  m_momentum_z_3 = pz[2];
242  }
244  void setMCEnergy(double energy[3])
245  {
246  m_energy_1 = energy[0];
247  m_energy_2 = energy[1];
248  m_energy_3 = energy[2];
249 
250  }
252  void setContribution(double contribution[3])
253  {
254  m_contribution_1 = contribution[0];
255  m_contribution_2 = contribution[1];
256  m_contribution_3 = contribution[1];
257  }
258 
259 
260 
261 
262 
263 
264 
265 
266 
267 
269  int getEventId() const { return m_eventid; }
271  int getTCId() const { return m_tcid; }
273  int getiBinTime() const { return m_ibintime; }
275  double getRawEnergy() const {return m_raw_energy; }
277  double getRawTiming() const {return m_raw_timing; }
278 
282  {
283  m_eventid = 0;
284  m_tcid = 0;
285  m_ibintime = 0;
286  m_raw_energy = 0;
287  m_raw_timing = 0;
288 
289 
290  m_background_tag_1 = 0;
291  m_background_tag_2 = 0;
292  m_background_tag_3 = 0;
293  m_bkg_contribution = 0;
295  m_cellId_1 = 0;
296  m_cellId_2 = 0;
297  m_cellId_3 = 0;
298  m_contribution_1 = 0;
299  m_contribution_2 = 0;
300  m_contribution_3 = 0;
301  m_energy_1 = 0;
302  m_energy_2 = 0;
303  m_energy_3 = 0;
304  m_ggggmother_1 = 0;
305  m_ggggmother_2 = 0;
306  m_ggggmother_3 = 0;
307  m_gggmother_1 = 0;
308  m_gggmother_2 = 0;
309  m_gggmother_3 = 0;
310  m_ggmother_1 = 0;
311  m_ggmother_2 = 0;
312  m_ggmother_3 = 0;
313  m_gmother_1 = 0;
314  m_gmother_2 = 0;
315  m_gmother_3 = 0;
316  m_mother_1 = 0;
317  m_mother_2 = 0;
318  m_mother_3 = 0;
319 
320 
321  m_momentum_x_1 = 0;
322  m_momentum_x_2 = 0;
323  m_momentum_x_3 = 0;
324  m_momentum_y_1 = 0;
325  m_momentum_y_2 = 0;
326  m_momentum_y_3 = 0;
327  m_momentum_z_1 = 0;
328  m_momentum_z_2 = 0;
329  m_momentum_z_3 = 0;
330 
331  m_pdg_1 = 0; ;
332  m_pdg_2 = 0; ;
333  m_pdg_3 = 0; ;
334  m_trackId_1 = 0;
335  m_trackId_2 = 0;
336  m_trackId_3 = 0;
337 
338 
339 
340  }
341 
344  int eventid,
345  int tcid,
346  int ibintime,
347  double raw_energy,
348  double raw_timing,
349  int background_tag_1,
350  int background_tag_2,
351  int background_tag_3,
352  int bkg_contribution,
353  int signal_contribution,
354  int cellId_1,
355  int cellId_2,
356  int cellId_3,
357  int contribution_1,
358  int contribution_2,
359  int contribution_3,
360  int energy_1,
361  int energy_2,
362  int energy_3,
363  int ggggmother_1,
364  int ggggmother_2,
365  int ggggmother_3,
366  int gggmother_1,
367  int gggmother_2,
368  int gggmother_3,
369  int ggmother_1,
370  int ggmother_2,
371  int ggmother_3,
372  int gmother_1,
373  int gmother_2,
374  int gmother_3,
375  int mother_1,
376  int mother_2,
377  int mother_3,
378  int momentum_x_1,
379  int momentum_x_2,
380  int momentum_x_3,
381  int momentum_y_1,
382  int momentum_y_2,
383  int momentum_y_3,
384  int momentum_z_1,
385  int momentum_z_2,
386  int momentum_z_3,
387  int pdg_1,
388  int pdg_2,
389  int pdg_3,
390  int trackId_1,
391  int trackId_2,
392  int trackId_3
393  )
394  {
395  m_eventid = eventid;
396  m_tcid = tcid;
397  m_ibintime = ibintime;
398  m_raw_energy = raw_energy;
399  m_raw_timing = raw_timing;
400 
401 
402  m_background_tag_1 = background_tag_1;
403  m_background_tag_2 = background_tag_2;
404  m_background_tag_3 = background_tag_3;
405  m_bkg_contribution = bkg_contribution;
406  m_signal_contribution = signal_contribution;
407  m_cellId_1 = cellId_1;
408  m_cellId_2 = cellId_2;
409  m_cellId_3 = cellId_3;
410  m_contribution_1 = contribution_1;
411  m_contribution_2 = contribution_2;
412  m_contribution_3 = contribution_3;
413  m_energy_1 = energy_1;
414  m_energy_2 = energy_2;
415  m_energy_3 = energy_3;
416  m_ggggmother_1 = ggggmother_1;
417  m_ggggmother_2 = ggggmother_2;
418  m_ggggmother_3 = ggggmother_3;
419  m_gggmother_1 = gggmother_1;
420  m_gggmother_2 = gggmother_2;
421  m_gggmother_3 = gggmother_3;
422  m_ggmother_1 = ggmother_1;
423  m_ggmother_2 = ggmother_2;
424  m_ggmother_3 = ggmother_3;
425  m_gmother_1 = gmother_1;
426  m_gmother_2 = gmother_2;
427  m_gmother_3 = gmother_3;
428  m_mother_1 = mother_1;
429  m_mother_2 = mother_2;
430  m_mother_3 = mother_3;
431 
432 
433  m_momentum_x_1 = momentum_x_1;
434  m_momentum_x_2 = momentum_x_2;
435  m_momentum_x_3 = momentum_x_3;
436  m_momentum_y_1 = momentum_y_1;
437  m_momentum_y_2 = momentum_y_2;
438  m_momentum_y_3 = momentum_y_3;
439  m_momentum_z_1 = momentum_z_1;
440  m_momentum_z_2 = momentum_z_2;
441  m_momentum_z_3 = momentum_z_3;
442 
443  m_pdg_1 = pdg_1;
444  m_pdg_2 = pdg_2;
445  m_pdg_3 = pdg_3;
446  m_trackId_1 = trackId_1;
447  m_trackId_2 = trackId_2;
448  m_trackId_3 = trackId_3;
449 
450 
451 
452  }
454  ClassDef(TRGECLDigi0MC, 1); /*< the class title */
455  };
457 }
458 
459 #endif
Belle2::TRGECLDigi0MC::m_contribution_1
double m_contribution_1
contribution
Definition: TRGECLDigi0MC.h:77
Belle2::TRGECLDigi0MC::m_momentum_y_2
double m_momentum_y_2
momentum y
Definition: TRGECLDigi0MC.h:103
Belle2::TRGECLDigi0MC::m_momentum_x_2
double m_momentum_x_2
momentum x
Definition: TRGECLDigi0MC.h:101
Belle2::TRGECLDigi0MC::m_momentum_y_3
double m_momentum_y_3
momentum y
Definition: TRGECLDigi0MC.h:135
Belle2::TRGECLDigi0MC::m_contribution_3
double m_contribution_3
contribution
Definition: TRGECLDigi0MC.h:141
Belle2::TRGECLDigi0MC::m_trackId_3
int m_trackId_3
track ID
Definition: TRGECLDigi0MC.h:118
Belle2::TRGECLDigi0MC::getRawTiming
double getRawTiming() const
Get Raw Timing.
Definition: TRGECLDigi0MC.h:277
Belle2::TRGECLDigi0MC::setPY
void setPY(double py[3])
set momentum Y
Definition: TRGECLDigi0MC.h:230
Belle2::TRGECLDigi0MC::getRawEnergy
double getRawEnergy() const
Get Raw Energy.
Definition: TRGECLDigi0MC.h:275
Belle2::TRGECLDigi0MC::setContribution
void setContribution(double contribution[3])
set contribution
Definition: TRGECLDigi0MC.h:252
Belle2::TRGECLDigi0MC::TRGECLDigi0MC
TRGECLDigi0MC()
Empty constructor Recommended for ROOT IO.
Definition: TRGECLDigi0MC.h:281
Belle2::TRGECLDigi0MC::setRawTiming
void setRawTiming(double raw_timing)
set Raw timing
Definition: TRGECLDigi0MC.h:158
Belle2::TRGECLDigi0MC::TRGECLDigi0MC
TRGECLDigi0MC(int eventid, int tcid, int ibintime, double raw_energy, double raw_timing, int background_tag_1, int background_tag_2, int background_tag_3, int bkg_contribution, int signal_contribution, int cellId_1, int cellId_2, int cellId_3, int contribution_1, int contribution_2, int contribution_3, int energy_1, int energy_2, int energy_3, int ggggmother_1, int ggggmother_2, int ggggmother_3, int gggmother_1, int gggmother_2, int gggmother_3, int ggmother_1, int ggmother_2, int ggmother_3, int gmother_1, int gmother_2, int gmother_3, int mother_1, int mother_2, int mother_3, int momentum_x_1, int momentum_x_2, int momentum_x_3, int momentum_y_1, int momentum_y_2, int momentum_y_3, int momentum_z_1, int momentum_z_2, int momentum_z_3, int pdg_1, int pdg_2, int pdg_3, int trackId_1, int trackId_2, int trackId_3)
Useful Constructor.
Definition: TRGECLDigi0MC.h:343
Belle2::TRGECLDigi0MC::m_pdg_2
int m_pdg_2
PDF.
Definition: TRGECLDigi0MC.h:88
Belle2::TRGECLDigi0MC::m_energy_3
double m_energy_3
energy
Definition: TRGECLDigi0MC.h:139
Belle2::TRGECLDigi0MC::m_raw_energy
double m_raw_energy
TC Energy and Timing raw TC energy.
Definition: TRGECLDigi0MC.h:37
Belle2::TRGECLDigi0MC::m_pdg_1
int m_pdg_1
PDF.
Definition: TRGECLDigi0MC.h:56
Belle2::TRGECLDigi0MC::m_gggmother_1
int m_gggmother_1
Grand Grand Grand Mother ID.
Definition: TRGECLDigi0MC.h:64
Belle2::TRGECLDigi0MC::m_ggmother_1
int m_ggmother_1
Grand Grand Mother ID.
Definition: TRGECLDigi0MC.h:62
Belle2::TRGECLDigi0MC::m_energy_2
double m_energy_2
energy
Definition: TRGECLDigi0MC.h:107
Belle2::TRGECLDigi0MC::setGMother
void setGMother(int gmother[3])
set Grand Mother
Definition: TRGECLDigi0MC.h:194
Belle2::TRGECLDigi0MC::m_ibintime
int m_ibintime
time bin
Definition: TRGECLDigi0MC.h:34
Belle2::TRGECLDigi0MC::m_energy_1
double m_energy_1
energy
Definition: TRGECLDigi0MC.h:75
Belle2::TRGECLDigi0MC::m_ggggmother_1
int m_ggggmother_1
Grand grand grand grand Mother ID.
Definition: TRGECLDigi0MC.h:66
Belle2::TRGECLDigi0MC::setTCId
void setTCId(int tcid)
Set TC id.
Definition: TRGECLDigi0MC.h:147
Belle2::TRGECLDigi0MC::m_cellId_1
int m_cellId_1
1st contribution particle information
Definition: TRGECLDigi0MC.h:50
Belle2::TRGECLDigi0MC::setPDG
void setPDG(int pdg[3])
set PDG
Definition: TRGECLDigi0MC.h:180
Belle2::TRGECLDigi0MC::setMCEnergy
void setMCEnergy(double energy[3])
set energy
Definition: TRGECLDigi0MC.h:244
Belle2::TRGECLDigi0MC::setGGGMother
void setGGGMother(int gggmother[3])
set Grand Grand grandMother
Definition: TRGECLDigi0MC.h:208
Belle2::TRGECLDigi0MC::setRawEnergy
void setRawEnergy(double raw_energy)
Set Energy and Timing.
Definition: TRGECLDigi0MC.h:152
Belle2::TRGECLDigi0MC::setBackgroundTag
void setBackgroundTag(int back[3])
set grand grand grand grand Mother
Definition: TRGECLDigi0MC.h:215
Belle2::TRGECLDigi0MC::m_background_tag_2
int m_background_tag_2
beam background tag
Definition: TRGECLDigi0MC.h:84
Belle2::TRGECLDigi0MC::m_gmother_1
int m_gmother_1
Grand mother ID.
Definition: TRGECLDigi0MC.h:60
Belle2::TRGECLDigi0MC::getiBinTime
int getiBinTime() const
get Bin number
Definition: TRGECLDigi0MC.h:273
Belle2::TRGECLDigi0MC::setiBinTime
void setiBinTime(int ibintime)
Set Bin Number.
Definition: TRGECLDigi0MC.h:149
Belle2::TRGECLDigi0MC::m_momentum_y_1
double m_momentum_y_1
momentum y
Definition: TRGECLDigi0MC.h:71
Belle2::TRGECLDigi0MC::m_momentum_z_3
double m_momentum_z_3
momentum z
Definition: TRGECLDigi0MC.h:137
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TRGECLDigi0MC::m_gggmother_3
int m_gggmother_3
Grand Grand Grand Mother ID.
Definition: TRGECLDigi0MC.h:128
Belle2::TRGECLDigi0MC::setCellId
void setCellId(int cell[3])
MC information.
Definition: TRGECLDigi0MC.h:164
Belle2::TRGECLDigi0MC::m_cellId_3
int m_cellId_3
3rd contribution particle information
Definition: TRGECLDigi0MC.h:114
Belle2::TRGECLDigi0MC::setMother
void setMother(int mother[3])
set Mother
Definition: TRGECLDigi0MC.h:187
Belle2::TRGECLDigi0MC::m_trackId_2
int m_trackId_2
track ID
Definition: TRGECLDigi0MC.h:86
Belle2::TRGECLDigi0MC::m_raw_timing
double m_raw_timing
raw TC timing
Definition: TRGECLDigi0MC.h:39
Belle2::TRGECLDigi0MC::m_mother_2
int m_mother_2
Mother ID.
Definition: TRGECLDigi0MC.h:90
Belle2::TRGECLDigi0MC::m_momentum_x_1
double m_momentum_x_1
momentum x
Definition: TRGECLDigi0MC.h:69
Belle2::TRGECLDigi0MC::m_trackId_1
int m_trackId_1
track ID
Definition: TRGECLDigi0MC.h:54
Belle2::TRGECLDigi0MC::m_contribution_2
double m_contribution_2
contribution
Definition: TRGECLDigi0MC.h:109
Belle2::TRGECLDigi0MC::m_ggmother_3
int m_ggmother_3
Grand Grand Mother ID.
Definition: TRGECLDigi0MC.h:126
Belle2::TRGECLDigi0MC::m_gmother_2
int m_gmother_2
Grand mother ID.
Definition: TRGECLDigi0MC.h:92
Belle2::TRGECLDigi0MC::setPX
void setPX(double px[3])
set momentum X
Definition: TRGECLDigi0MC.h:223
Belle2::TRGECLDigi0MC::m_cellId_2
int m_cellId_2
2nd contribution particle information
Definition: TRGECLDigi0MC.h:82
Belle2::TRGECLDigi0MC::m_mother_3
int m_mother_3
Mother ID.
Definition: TRGECLDigi0MC.h:122
Belle2::TRGECLDigi0MC::m_ggggmother_3
int m_ggggmother_3
Grand grand grand grand Mother ID.
Definition: TRGECLDigi0MC.h:130
Belle2::TRGECLDigi0MC::m_pdg_3
int m_pdg_3
PDF.
Definition: TRGECLDigi0MC.h:120
Belle2::TRGECLDigi0MC::m_bkg_contribution
double m_bkg_contribution
beam background contribution
Definition: TRGECLDigi0MC.h:43
Belle2::TRGECLDigi0MC::m_gggmother_2
int m_gggmother_2
Grand Grand Grand Mother ID.
Definition: TRGECLDigi0MC.h:96
Belle2::TRGECLDigi0MC::m_background_tag_1
int m_background_tag_1
beam background tag
Definition: TRGECLDigi0MC.h:52
Belle2::TRGECLDigi0MC::m_ggggmother_2
int m_ggggmother_2
Grand grand grand grand Mother ID.
Definition: TRGECLDigi0MC.h:98
Belle2::TRGECLDigi0MC::m_gmother_3
int m_gmother_3
Grand mother ID.
Definition: TRGECLDigi0MC.h:124
Belle2::TRGECLDigi0MC::m_momentum_x_3
double m_momentum_x_3
momentum x
Definition: TRGECLDigi0MC.h:133
Belle2::TRGECLDigi0MC::m_tcid
int m_tcid
TC id.
Definition: TRGECLDigi0MC.h:32
Belle2::TRGECLDigi0MC::m_momentum_z_2
double m_momentum_z_2
momentum z
Definition: TRGECLDigi0MC.h:105
Belle2::TRGECLDigi0MC::m_momentum_z_1
double m_momentum_z_1
momentum z
Definition: TRGECLDigi0MC.h:73
Belle2::TRGECLDigi0MC::getTCId
int getTCId() const
Get TC id.
Definition: TRGECLDigi0MC.h:271
Belle2::TRGECLDigi0MC::m_background_tag_3
int m_background_tag_3
beam background tag
Definition: TRGECLDigi0MC.h:116
Belle2::TRGECLDigi0MC::setTrackId
void setTrackId(int track[3])
set Track Id
Definition: TRGECLDigi0MC.h:172
Belle2::TRGECLDigi0MC::m_eventid
int m_eventid
Event Id.
Definition: TRGECLDigi0MC.h:30
Belle2::TRGECLDigi0MC::ClassDef
ClassDef(TRGECLDigi0MC, 1)
the class title
Belle2::TRGECLDigi0MC::getEventId
int getEventId() const
Get event id.
Definition: TRGECLDigi0MC.h:269
Belle2::TRGECLDigi0MC::m_mother_1
int m_mother_1
Mother ID.
Definition: TRGECLDigi0MC.h:58
Belle2::TRGECLDigi0MC::m_signal_contribution
double m_signal_contribution
Signal contribution.
Definition: TRGECLDigi0MC.h:41
Belle2::TRGECLDigi0MC
Example Detector.
Definition: TRGECLDigi0MC.h:26
Belle2::TRGECLDigi0MC::m_ggmother_2
int m_ggmother_2
Grand Grand Mother ID.
Definition: TRGECLDigi0MC.h:94
Belle2::TRGECLDigi0MC::setPZ
void setPZ(double pz[3])
set momentum Z
Definition: TRGECLDigi0MC.h:237
Belle2::TRGECLDigi0MC::setGGMother
void setGGMother(int ggmother[3])
set Grand Grand Mother
Definition: TRGECLDigi0MC.h:201
Belle2::TRGECLDigi0MC::setSignalContribution
void setSignalContribution(double signal_contribution)
set Signal Contribtion
Definition: TRGECLDigi0MC.h:154
Belle2::TRGECLDigi0MC::setEventId
void setEventId(int eventid)
Set event id.
Definition: TRGECLDigi0MC.h:145
Belle2::TRGECLDigi0MC::setBKGContribution
void setBKGContribution(double bkg_contribution)
set beambackground contribution
Definition: TRGECLDigi0MC.h:156