Belle II Software  release-05-01-25
TRGECLHitMC.h
1 //-----------------------------------------------------------
2 // $Id$
3 //-----------------------------------------------------------
4 // Filename : TRGECLHit.h
5 // Section : TRG ECL
6 // Owner : InSu Lee/Yuuji Unno
7 // Email : islee@hep.hanyang.ac.kr / yunno@post.kek.jp
8 //-----------------------------------------------------------
9 // Description : A class to represent TRG ECL.
10 //-----------------------------------------------------------
11 // $Log$
12 //-----------------------------------------------------------
13 #ifndef TRGECLHITMC_H
14 #define TRGECLHITMC_H
15 
16 
17 #include <TObject.h>
18 
19 namespace Belle2 {
25  class TRGECLHitMC : public TObject {
27  public:
28 
29 
31  int m_eventId;
32 
34  int m_cellId;
35 
37  int m_noutput;
38 
39 
41  double m_edep;
42 
44  double m_TimeAve;
45 
47 
55  int m_pdg_1;
66 
74  double m_energy_1;
77 
79 
87  int m_pdg_2;
98 
106  double m_energy_2;
109 
111 
119  int m_pdg_3;
130 
138  double m_energy_3;
141 
142 
147 
148 
150  void setEventId(int eventId) { m_eventId = eventId; }
151 
153  void setTCId(int cellId) { m_cellId = cellId; }
154 
156  void setTCOutput(int noutput) { m_noutput = noutput; }
158  void setSignalContribution(double signal_contribution) { m_signal_contribution = signal_contribution; }
160  void setBKGContribution(double bkg_contribution) { m_bkg_contribution = bkg_contribution; }
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 
264  void setEnergyDep(double edep) { m_edep = edep; }
265 
267  void setTimeAve(double TimeAve) { m_TimeAve = TimeAve; }
268 
270  int getEventId() const { return m_eventId; }
271 
273  int getCellId() const { return m_cellId; }
274 
276  double getEnergyDep() const { return m_edep; }
277 
279  double getTimeAve() const {return m_TimeAve;}
280  //MC information
281  /* int getTrackId() const{return m_trackId ; } */
282  /* int getPDG() const{ return m_pdg ; } */
283  /* int getMother() const{return m_mother ; } */
284  /* int getGMother() const{return m_gmother ; } */
285  /* int getGGMother() const{return m_ggmother ; } */
286  /* int getGGGMother() const{return m_gggmother ; } */
287 
288  /* int getBackgroundTag()const {return m_background_tag ; } */
289 
290  /* double getPX() const{return m_momentum_x ; } */
291  /* double getPY()const {return m_momentum_y ; } */
292  /* double getPZ()const {return m_momentum_z ; } */
293  /* double getEnergy()const {return m_energy ; } */
294 
295 
296 
300  {
301 
302  m_eventId = 0;
303  m_cellId = 0;
304  m_edep = 0;
305  m_TimeAve = 0;
306  m_noutput = 0;
307 
308 
309  m_background_tag_1 = 0;
310  m_background_tag_2 = 0;
311  m_background_tag_3 = 0;
312  m_bkg_contribution = 0;
314  m_cellId_1 = 0;
315  m_cellId_2 = 0;
316  m_cellId_3 = 0;
317  m_contribution_1 = 0;
318  m_contribution_2 = 0;
319  m_contribution_3 = 0;
320  m_energy_1 = 0;
321  m_energy_2 = 0;
322  m_energy_3 = 0;
323  m_ggggmother_1 = 0;
324  m_ggggmother_2 = 0;
325  m_ggggmother_3 = 0;
326  m_gggmother_1 = 0;
327  m_gggmother_2 = 0;
328  m_gggmother_3 = 0;
329  m_ggmother_1 = 0;
330  m_ggmother_2 = 0;
331  m_ggmother_3 = 0;
332  m_gmother_1 = 0;
333  m_gmother_2 = 0;
334  m_gmother_3 = 0;
335  m_mother_1 = 0;
336  m_mother_2 = 0;
337  m_mother_3 = 0;
338 
339 
340  m_momentum_x_1 = 0;
341  m_momentum_x_2 = 0;
342  m_momentum_x_3 = 0;
343  m_momentum_y_1 = 0;
344  m_momentum_y_2 = 0;
345  m_momentum_y_3 = 0;
346  m_momentum_z_1 = 0;
347  m_momentum_z_2 = 0;
348  m_momentum_z_3 = 0;
349 
350  m_pdg_1 = 0; ;
351  m_pdg_2 = 0; ;
352  m_pdg_3 = 0; ;
353  m_trackId_1 = 0;
354  m_trackId_2 = 0;
355  m_trackId_3 = 0;
356 
357 
358 
359  }
360 
363  int eventId,
364  int cellId,
365  int noutput,
366  double edep,
367  double TimeAve,
368  int background_tag_1,
369  int background_tag_2,
370  int background_tag_3,
371  int bkg_contribution,
372  int signal_contribution,
373  int cellId_1,
374  int cellId_2,
375  int cellId_3,
376  int contribution_1,
377  int contribution_2,
378  int contribution_3,
379  int energy_1,
380  int energy_2,
381  int energy_3,
382  int ggggmother_1,
383  int ggggmother_2,
384  int ggggmother_3,
385  int gggmother_1,
386  int gggmother_2,
387  int gggmother_3,
388  int ggmother_1,
389  int ggmother_2,
390  int ggmother_3,
391  int gmother_1,
392  int gmother_2,
393  int gmother_3,
394  int mother_1,
395  int mother_2,
396  int mother_3,
397  int momentum_x_1,
398  int momentum_x_2,
399  int momentum_x_3,
400  int momentum_y_1,
401  int momentum_y_2,
402  int momentum_y_3,
403  int momentum_z_1,
404  int momentum_z_2,
405  int momentum_z_3,
406  int pdg_1,
407  int pdg_2,
408  int pdg_3,
409  int trackId_1,
410  int trackId_2,
411  int trackId_3
412 
413 
414  )
415  {
416  m_eventId = eventId;
417  m_cellId = cellId;
418  m_edep = edep;
419  m_TimeAve = TimeAve;
420  m_noutput = noutput;
421 
422  m_background_tag_1 = background_tag_1;
423  m_background_tag_2 = background_tag_2;
424  m_background_tag_3 = background_tag_3;
425  m_bkg_contribution = bkg_contribution;
426  m_signal_contribution = signal_contribution;
427  m_cellId_1 = cellId_1;
428  m_cellId_2 = cellId_2;
429  m_cellId_3 = cellId_3;
430  m_contribution_1 = contribution_1;
431  m_contribution_2 = contribution_2;
432  m_contribution_3 = contribution_3;
433  m_energy_1 = energy_1;
434  m_energy_2 = energy_2;
435  m_energy_3 = energy_3;
436  m_ggggmother_1 = ggggmother_1;
437  m_ggggmother_2 = ggggmother_2;
438  m_ggggmother_3 = ggggmother_3;
439  m_gggmother_1 = gggmother_1;
440  m_gggmother_2 = gggmother_2;
441  m_gggmother_3 = gggmother_3;
442  m_ggmother_1 = ggmother_1;
443  m_ggmother_2 = ggmother_2;
444  m_ggmother_3 = ggmother_3;
445  m_gmother_1 = gmother_1;
446  m_gmother_2 = gmother_2;
447  m_gmother_3 = gmother_3;
448  m_mother_1 = mother_1;
449  m_mother_2 = mother_2;
450  m_mother_3 = mother_3;
451 
452 
453  m_momentum_x_1 = momentum_x_1;
454  m_momentum_x_2 = momentum_x_2;
455  m_momentum_x_3 = momentum_x_3;
456  m_momentum_y_1 = momentum_y_1;
457  m_momentum_y_2 = momentum_y_2;
458  m_momentum_y_3 = momentum_y_3;
459  m_momentum_z_1 = momentum_z_1;
460  m_momentum_z_2 = momentum_z_2;
461  m_momentum_z_3 = momentum_z_3;
462 
463  m_pdg_1 = pdg_1;
464  m_pdg_2 = pdg_2;
465  m_pdg_3 = pdg_3;
466  m_trackId_1 = trackId_1;
467  m_trackId_2 = trackId_2;
468  m_trackId_3 = trackId_3;
469 
470  }
472  ClassDef(TRGECLHitMC, 1); /*< the class title */
473 
474  };
475 
477 } // end namespace Belle2
478 
479 #endif
Belle2::TRGECLHitMC::m_energy_3
double m_energy_3
energy
Definition: TRGECLHitMC.h:138
Belle2::TRGECLHitMC::m_contribution_1
double m_contribution_1
contribution
Definition: TRGECLHitMC.h:76
Belle2::TRGECLHitMC::m_gmother_2
int m_gmother_2
Grand mother ID.
Definition: TRGECLHitMC.h:91
Belle2::TRGECLHitMC
Example Detector.
Definition: TRGECLHitMC.h:26
Belle2::TRGECLHitMC::setContribution
void setContribution(double contribution[3])
set contribution
Definition: TRGECLHitMC.h:252
Belle2::TRGECLHitMC::setPX
void setPX(double px[3])
set momentum X
Definition: TRGECLHitMC.h:223
Belle2::TRGECLHitMC::m_energy_2
double m_energy_2
energy
Definition: TRGECLHitMC.h:106
Belle2::TRGECLHitMC::m_ggmother_3
int m_ggmother_3
Grand Grand Mother ID.
Definition: TRGECLHitMC.h:125
Belle2::TRGECLHitMC::m_trackId_1
int m_trackId_1
track ID
Definition: TRGECLHitMC.h:53
Belle2::TRGECLHitMC::m_bkg_contribution
double m_bkg_contribution
beam background contribution
Definition: TRGECLHitMC.h:146
Belle2::TRGECLHitMC::m_momentum_x_2
double m_momentum_x_2
momentum x
Definition: TRGECLHitMC.h:100
Belle2::TRGECLHitMC::setPZ
void setPZ(double pz[3])
set momentum Z
Definition: TRGECLHitMC.h:237
Belle2::TRGECLHitMC::m_energy_1
double m_energy_1
energy
Definition: TRGECLHitMC.h:74
Belle2::TRGECLHitMC::m_pdg_3
int m_pdg_3
PDF.
Definition: TRGECLHitMC.h:119
Belle2::TRGECLHitMC::setBKGContribution
void setBKGContribution(double bkg_contribution)
set beambackground contribution
Definition: TRGECLHitMC.h:160
Belle2::TRGECLHitMC::setGGGMother
void setGGGMother(int gggmother[3])
set Grand Grand grandMother
Definition: TRGECLHitMC.h:208
Belle2::TRGECLHitMC::m_gmother_1
int m_gmother_1
Grand mother ID.
Definition: TRGECLHitMC.h:59
Belle2::TRGECLHitMC::m_ggmother_1
int m_ggmother_1
Grand Grand Mother ID.
Definition: TRGECLHitMC.h:61
Belle2::TRGECLHitMC::m_mother_3
int m_mother_3
Mother ID.
Definition: TRGECLHitMC.h:121
Belle2::TRGECLHitMC::m_gmother_3
int m_gmother_3
Grand mother ID.
Definition: TRGECLHitMC.h:123
Belle2::TRGECLHitMC::m_edep
double m_edep
Deposited energy of this hit.
Definition: TRGECLHitMC.h:41
Belle2::TRGECLHitMC::m_eventId
int m_eventId
The cell id of this hit.
Definition: TRGECLHitMC.h:31
Belle2::TRGECLHitMC::setMCEnergy
void setMCEnergy(double energy[3])
set energy
Definition: TRGECLHitMC.h:244
Belle2::TRGECLHitMC::m_ggggmother_2
int m_ggggmother_2
Grand grand grand grand Mother ID.
Definition: TRGECLHitMC.h:97
Belle2::TRGECLHitMC::setPY
void setPY(double py[3])
set momentum Y
Definition: TRGECLHitMC.h:230
Belle2::TRGECLHitMC::setBackgroundTag
void setBackgroundTag(int back[3])
set grand grand grand grand Mother
Definition: TRGECLHitMC.h:215
Belle2::TRGECLHitMC::m_signal_contribution
double m_signal_contribution
signal contribution
Definition: TRGECLHitMC.h:144
Belle2::TRGECLHitMC::m_momentum_x_1
double m_momentum_x_1
momentum x
Definition: TRGECLHitMC.h:68
Belle2::TRGECLHitMC::setEventId
void setEventId(int eventId)
The method to set event id.
Definition: TRGECLHitMC.h:150
Belle2::TRGECLHitMC::setGMother
void setGMother(int gmother[3])
set Grand Mother
Definition: TRGECLHitMC.h:194
Belle2::TRGECLHitMC::m_cellId_2
int m_cellId_2
2nd contribution particle information
Definition: TRGECLHitMC.h:81
Belle2::TRGECLHitMC::TRGECLHitMC
TRGECLHitMC(int eventId, int cellId, int noutput, double edep, double TimeAve, 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: TRGECLHitMC.h:362
Belle2::TRGECLHitMC::m_trackId_3
int m_trackId_3
track ID
Definition: TRGECLHitMC.h:117
Belle2::TRGECLHitMC::m_cellId
int m_cellId
The cell id of this hit.
Definition: TRGECLHitMC.h:34
Belle2::TRGECLHitMC::setEnergyDep
void setEnergyDep(double edep)
The method to set deposited energy.
Definition: TRGECLHitMC.h:264
Belle2::TRGECLHitMC::m_momentum_x_3
double m_momentum_x_3
momentum x
Definition: TRGECLHitMC.h:132
Belle2::TRGECLHitMC::m_cellId_1
int m_cellId_1
1st contribution particle information
Definition: TRGECLHitMC.h:49
Belle2::TRGECLHitMC::m_gggmother_2
int m_gggmother_2
Grand Grand Grand Mother ID.
Definition: TRGECLHitMC.h:95
Belle2::TRGECLHitMC::getTimeAve
double getTimeAve() const
The method to get hit average time.
Definition: TRGECLHitMC.h:279
Belle2::TRGECLHitMC::m_background_tag_3
int m_background_tag_3
beam background tag
Definition: TRGECLHitMC.h:115
Belle2::TRGECLHitMC::setTCId
void setTCId(int cellId)
The method to set cell id.
Definition: TRGECLHitMC.h:153
Belle2::TRGECLHitMC::m_momentum_y_3
double m_momentum_y_3
momentum y
Definition: TRGECLHitMC.h:134
Belle2::TRGECLHitMC::m_gggmother_1
int m_gggmother_1
Grand Grand Grand Mother ID.
Definition: TRGECLHitMC.h:63
Belle2::TRGECLHitMC::m_noutput
int m_noutput
The # of output of TC.
Definition: TRGECLHitMC.h:37
Belle2::TRGECLHitMC::TRGECLHitMC
TRGECLHitMC()
Empty constructor Recommended for ROOT IO.
Definition: TRGECLHitMC.h:299
Belle2::TRGECLHitMC::m_pdg_2
int m_pdg_2
PDF.
Definition: TRGECLHitMC.h:87
Belle2::TRGECLHitMC::ClassDef
ClassDef(TRGECLHitMC, 1)
the class title
Belle2::TRGECLHitMC::setPDG
void setPDG(int pdg[3])
set PDG
Definition: TRGECLHitMC.h:180
Belle2::TRGECLHitMC::getEventId
int getEventId() const
The method to get event id.
Definition: TRGECLHitMC.h:270
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TRGECLHitMC::m_momentum_y_2
double m_momentum_y_2
momentum y
Definition: TRGECLHitMC.h:102
Belle2::TRGECLHitMC::m_ggggmother_1
int m_ggggmother_1
Grand grand grand grand Mother ID.
Definition: TRGECLHitMC.h:65
Belle2::TRGECLHitMC::m_pdg_1
int m_pdg_1
PDF.
Definition: TRGECLHitMC.h:55
Belle2::TRGECLHitMC::setCellId
void setCellId(int cell[3])
set TC ID
Definition: TRGECLHitMC.h:164
Belle2::TRGECLHitMC::m_ggggmother_3
int m_ggggmother_3
Grand grand grand grand Mother ID.
Definition: TRGECLHitMC.h:129
Belle2::TRGECLHitMC::m_mother_2
int m_mother_2
Mother ID.
Definition: TRGECLHitMC.h:89
Belle2::TRGECLHitMC::setTrackId
void setTrackId(int track[3])
set Track Id
Definition: TRGECLHitMC.h:172
Belle2::TRGECLHitMC::m_momentum_z_2
double m_momentum_z_2
momentum z
Definition: TRGECLHitMC.h:104
Belle2::TRGECLHitMC::m_momentum_z_1
double m_momentum_z_1
momentum z
Definition: TRGECLHitMC.h:72
Belle2::TRGECLHitMC::getEnergyDep
double getEnergyDep() const
The method to get deposited energy.
Definition: TRGECLHitMC.h:276
Belle2::TRGECLHitMC::setTimeAve
void setTimeAve(double TimeAve)
The method to set hit average time.
Definition: TRGECLHitMC.h:267
Belle2::TRGECLHitMC::setSignalContribution
void setSignalContribution(double signal_contribution)
set Signal Contribtion
Definition: TRGECLHitMC.h:158
Belle2::TRGECLHitMC::m_momentum_z_3
double m_momentum_z_3
momentum z
Definition: TRGECLHitMC.h:136
Belle2::TRGECLHitMC::m_contribution_2
double m_contribution_2
contribution
Definition: TRGECLHitMC.h:108
Belle2::TRGECLHitMC::m_TimeAve
double m_TimeAve
Hit average time.
Definition: TRGECLHitMC.h:44
Belle2::TRGECLHitMC::m_mother_1
int m_mother_1
Mother ID.
Definition: TRGECLHitMC.h:57
Belle2::TRGECLHitMC::setTCOutput
void setTCOutput(int noutput)
The method to set # of output per TC.
Definition: TRGECLHitMC.h:156
Belle2::TRGECLHitMC::m_ggmother_2
int m_ggmother_2
Grand Grand Mother ID.
Definition: TRGECLHitMC.h:93
Belle2::TRGECLHitMC::getCellId
int getCellId() const
The method to get cell id.
Definition: TRGECLHitMC.h:273
Belle2::TRGECLHitMC::m_gggmother_3
int m_gggmother_3
Grand Grand Grand Mother ID.
Definition: TRGECLHitMC.h:127
Belle2::TRGECLHitMC::setGGMother
void setGGMother(int ggmother[3])
set Grand Grand Mother
Definition: TRGECLHitMC.h:201
Belle2::TRGECLHitMC::m_trackId_2
int m_trackId_2
track ID
Definition: TRGECLHitMC.h:85
Belle2::TRGECLHitMC::m_momentum_y_1
double m_momentum_y_1
momentum y
Definition: TRGECLHitMC.h:70
Belle2::TRGECLHitMC::m_background_tag_1
int m_background_tag_1
beam background tag
Definition: TRGECLHitMC.h:51
Belle2::TRGECLHitMC::setMother
void setMother(int mother[3])
set Mother
Definition: TRGECLHitMC.h:187
Belle2::TRGECLHitMC::m_contribution_3
double m_contribution_3
contribution
Definition: TRGECLHitMC.h:140
Belle2::TRGECLHitMC::m_background_tag_2
int m_background_tag_2
beam background tag
Definition: TRGECLHitMC.h:83
Belle2::TRGECLHitMC::m_cellId_3
int m_cellId_3
3rd contribution particle information
Definition: TRGECLHitMC.h:113