Belle II Software development
TRGECLHitMC.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 TRGECLHITMC_H
10#define TRGECLHITMC_H
11
12
13#include <TObject.h>
14
15namespace Belle2 {
22 class TRGECLHitMC : public TObject {
23 public:
24
25
28
31
34
35
37 double m_edep;
38
40 double m_TimeAve;
41
43
62
70 double m_energy_1;
73
75
94
105
107
126
137
138
143
144
146 void setEventId(int eventId) { m_eventId = eventId; }
147
149 void setTCId(int cellId) { m_cellId = cellId; }
150
152 void setTCOutput(int noutput) { m_noutput = noutput; }
154 void setSignalContribution(double signal_contribution) { m_signal_contribution = signal_contribution; }
156 void setBKGContribution(double bkg_contribution) { m_bkg_contribution = bkg_contribution; }
157
158
160 void setCellId(int cell[3])
161 {
162 m_cellId_1 = cell[0];
163 m_cellId_2 = cell[1];
164 m_cellId_3 = cell[2];
165
166 }
168 void setTrackId(int track[3])
169 {
170 m_trackId_1 = track[0];
171 m_trackId_2 = track[1];
172 m_trackId_3 = track[2];
173
174 }
176 void setPDG(int pdg[3])
177 {
178 m_pdg_1 = pdg[0];
179 m_pdg_2 = pdg[1];
180 m_pdg_3 = pdg[2];
181 }
183 void setMother(int mother[3])
184 {
185 m_mother_1 = mother[0];
186 m_mother_2 = mother[1];
187 m_mother_3 = mother[2];
188 }
190 void setGMother(int gmother[3])
191 {
192 m_gmother_1 = gmother[0];
193 m_gmother_2 = gmother[1];
194 m_gmother_3 = gmother[2];
195 }
197 void setGGMother(int ggmother[3])
198 {
199 m_ggmother_1 = ggmother[0];
200 m_ggmother_2 = ggmother[1];
201 m_ggmother_3 = ggmother[2];
202 }
204 void setGGGMother(int gggmother[3])
205 {
206 m_gggmother_1 = gggmother[0];
207 m_gggmother_2 = gggmother[1];
208 m_gggmother_3 = gggmother[2];
209 }
211 void setBackgroundTag(int back[3])
212 {
213 m_background_tag_1 = back[0];
214 m_background_tag_2 = back[1];
215 m_background_tag_3 = back[2];
216
217 }
219 void setPX(double px[3])
220 {
221 m_momentum_x_1 = px[0];
222 m_momentum_x_2 = px[1];
223 m_momentum_x_3 = px[2];
224 }
226 void setPY(double py[3])
227 {
228 m_momentum_y_1 = py[0];
229 m_momentum_y_2 = py[1];
230 m_momentum_y_3 = py[2];
231 }
233 void setPZ(double pz[3])
234 {
235 m_momentum_z_1 = pz[0];
236 m_momentum_z_2 = pz[1];
237 m_momentum_z_3 = pz[2];
238 }
240 void setMCEnergy(double energy[3])
241 {
242 m_energy_1 = energy[0];
243 m_energy_2 = energy[1];
244 m_energy_3 = energy[2];
245
246 }
248 void setContribution(double contribution[3])
249 {
250 m_contribution_1 = contribution[0];
251 m_contribution_2 = contribution[1];
252 m_contribution_3 = contribution[1];
253 }
254
255
256
257
258
260 void setEnergyDep(double edep) { m_edep = edep; }
261
263 void setTimeAve(double TimeAve) { m_TimeAve = TimeAve; }
264
266 int getEventId() const { return m_eventId; }
267
269 int getCellId() const { return m_cellId; }
270
272 double getEnergyDep() const { return m_edep; }
273
275 double getTimeAve() const {return m_TimeAve;}
276 //MC information
277 /* int getTrackId() const{return m_trackId ; } */
278 /* int getPDG() const{ return m_pdg ; } */
279 /* int getMother() const{return m_mother ; } */
280 /* int getGMother() const{return m_gmother ; } */
281 /* int getGGMother() const{return m_ggmother ; } */
282 /* int getGGGMother() const{return m_gggmother ; } */
283
284 /* int getBackgroundTag()const {return m_background_tag ; } */
285
286 /* double getPX() const{return m_momentum_x ; } */
287 /* double getPY()const {return m_momentum_y ; } */
288 /* double getPZ()const {return m_momentum_z ; } */
289 /* double getEnergy()const {return m_energy ; } */
290
291
292
296 {
297
298 m_eventId = 0;
299 m_cellId = 0;
300 m_edep = 0;
301 m_TimeAve = 0;
302 m_noutput = 0;
303
304
310 m_cellId_1 = 0;
311 m_cellId_2 = 0;
312 m_cellId_3 = 0;
316 m_energy_1 = 0;
317 m_energy_2 = 0;
318 m_energy_3 = 0;
319 m_ggggmother_1 = 0;
320 m_ggggmother_2 = 0;
321 m_ggggmother_3 = 0;
322 m_gggmother_1 = 0;
323 m_gggmother_2 = 0;
324 m_gggmother_3 = 0;
325 m_ggmother_1 = 0;
326 m_ggmother_2 = 0;
327 m_ggmother_3 = 0;
328 m_gmother_1 = 0;
329 m_gmother_2 = 0;
330 m_gmother_3 = 0;
331 m_mother_1 = 0;
332 m_mother_2 = 0;
333 m_mother_3 = 0;
334
335
336 m_momentum_x_1 = 0;
337 m_momentum_x_2 = 0;
338 m_momentum_x_3 = 0;
339 m_momentum_y_1 = 0;
340 m_momentum_y_2 = 0;
341 m_momentum_y_3 = 0;
342 m_momentum_z_1 = 0;
343 m_momentum_z_2 = 0;
344 m_momentum_z_3 = 0;
345
346 m_pdg_1 = 0; ;
347 m_pdg_2 = 0; ;
348 m_pdg_3 = 0; ;
349 m_trackId_1 = 0;
350 m_trackId_2 = 0;
351 m_trackId_3 = 0;
352
353
354
355 }
356
359 int eventId,
360 int cellId,
361 int noutput,
362 double edep,
363 double TimeAve,
364 int background_tag_1,
365 int background_tag_2,
366 int background_tag_3,
367 int bkg_contribution,
368 int signal_contribution,
369 int cellId_1,
370 int cellId_2,
371 int cellId_3,
372 int contribution_1,
373 int contribution_2,
374 int contribution_3,
375 int energy_1,
376 int energy_2,
377 int energy_3,
378 int ggggmother_1,
379 int ggggmother_2,
380 int ggggmother_3,
381 int gggmother_1,
382 int gggmother_2,
383 int gggmother_3,
384 int ggmother_1,
385 int ggmother_2,
386 int ggmother_3,
387 int gmother_1,
388 int gmother_2,
389 int gmother_3,
390 int mother_1,
391 int mother_2,
392 int mother_3,
393 int momentum_x_1,
394 int momentum_x_2,
395 int momentum_x_3,
396 int momentum_y_1,
397 int momentum_y_2,
398 int momentum_y_3,
399 int momentum_z_1,
400 int momentum_z_2,
401 int momentum_z_3,
402 int pdg_1,
403 int pdg_2,
404 int pdg_3,
405 int trackId_1,
406 int trackId_2,
407 int trackId_3
408
409
410 )
411 {
412 m_eventId = eventId;
413 m_cellId = cellId;
414 m_edep = edep;
415 m_TimeAve = TimeAve;
416 m_noutput = noutput;
417
418 m_background_tag_1 = background_tag_1;
419 m_background_tag_2 = background_tag_2;
420 m_background_tag_3 = background_tag_3;
421 m_bkg_contribution = bkg_contribution;
422 m_signal_contribution = signal_contribution;
423 m_cellId_1 = cellId_1;
424 m_cellId_2 = cellId_2;
425 m_cellId_3 = cellId_3;
426 m_contribution_1 = contribution_1;
427 m_contribution_2 = contribution_2;
428 m_contribution_3 = contribution_3;
429 m_energy_1 = energy_1;
430 m_energy_2 = energy_2;
431 m_energy_3 = energy_3;
432 m_ggggmother_1 = ggggmother_1;
433 m_ggggmother_2 = ggggmother_2;
434 m_ggggmother_3 = ggggmother_3;
435 m_gggmother_1 = gggmother_1;
436 m_gggmother_2 = gggmother_2;
437 m_gggmother_3 = gggmother_3;
438 m_ggmother_1 = ggmother_1;
439 m_ggmother_2 = ggmother_2;
440 m_ggmother_3 = ggmother_3;
441 m_gmother_1 = gmother_1;
442 m_gmother_2 = gmother_2;
443 m_gmother_3 = gmother_3;
444 m_mother_1 = mother_1;
445 m_mother_2 = mother_2;
446 m_mother_3 = mother_3;
447
448
449 m_momentum_x_1 = momentum_x_1;
450 m_momentum_x_2 = momentum_x_2;
451 m_momentum_x_3 = momentum_x_3;
452 m_momentum_y_1 = momentum_y_1;
453 m_momentum_y_2 = momentum_y_2;
454 m_momentum_y_3 = momentum_y_3;
455 m_momentum_z_1 = momentum_z_1;
456 m_momentum_z_2 = momentum_z_2;
457 m_momentum_z_3 = momentum_z_3;
458
459 m_pdg_1 = pdg_1;
460 m_pdg_2 = pdg_2;
461 m_pdg_3 = pdg_3;
462 m_trackId_1 = trackId_1;
463 m_trackId_2 = trackId_2;
464 m_trackId_3 = trackId_3;
465
466 }
468 ClassDef(TRGECLHitMC, 1); /*< the class title */
469
470 };
471
473} // end namespace Belle2
474
475#endif
Example Detector.
Definition: TRGECLHitMC.h:22
double getTimeAve() const
The method to get hit average time.
Definition: TRGECLHitMC.h:275
void setPX(double px[3])
set momentum X
Definition: TRGECLHitMC.h:219
int m_background_tag_3
beam background tag
Definition: TRGECLHitMC.h:111
double m_contribution_3
contribution
Definition: TRGECLHitMC.h:136
int m_ggmother_3
Grand Grand Mother ID.
Definition: TRGECLHitMC.h:121
double m_energy_2
energy
Definition: TRGECLHitMC.h:102
void setGGGMother(int gggmother[3])
set Grand Grand grandMother
Definition: TRGECLHitMC.h:204
int m_ggggmother_1
Grand grand grand grand Mother ID.
Definition: TRGECLHitMC.h:61
void setContribution(double contribution[3])
set contribution
Definition: TRGECLHitMC.h:248
void setPY(double py[3])
set momentum Y
Definition: TRGECLHitMC.h:226
double m_momentum_y_1
momentum y
Definition: TRGECLHitMC.h:66
void setTCOutput(int noutput)
The method to set # of output per TC.
Definition: TRGECLHitMC.h:152
double m_momentum_z_3
momentum z
Definition: TRGECLHitMC.h:132
void setSignalContribution(double signal_contribution)
set Signal Contribtion
Definition: TRGECLHitMC.h:154
void setMother(int mother[3])
set Mother
Definition: TRGECLHitMC.h:183
int m_gggmother_3
Grand Grand Grand Mother ID.
Definition: TRGECLHitMC.h:123
int getCellId() const
The method to get cell id.
Definition: TRGECLHitMC.h:269
int m_ggggmother_3
Grand grand grand grand Mother ID.
Definition: TRGECLHitMC.h:125
double m_momentum_x_3
momentum x
Definition: TRGECLHitMC.h:128
int m_cellId_3
3rd contribution particle information
Definition: TRGECLHitMC.h:109
int m_background_tag_2
beam background tag
Definition: TRGECLHitMC.h:79
double m_energy_1
energy
Definition: TRGECLHitMC.h:70
int m_trackId_2
track ID
Definition: TRGECLHitMC.h:81
int m_cellId
The cell id of this hit.
Definition: TRGECLHitMC.h:30
int m_ggmother_1
Grand Grand Mother ID.
Definition: TRGECLHitMC.h:57
void setPZ(double pz[3])
set momentum Z
Definition: TRGECLHitMC.h:233
void setCellId(int cell[3])
set TC ID
Definition: TRGECLHitMC.h:160
int m_mother_1
Mother ID.
Definition: TRGECLHitMC.h:53
double m_momentum_x_1
momentum x
Definition: TRGECLHitMC.h:64
int m_ggmother_2
Grand Grand Mother ID.
Definition: TRGECLHitMC.h:89
int m_trackId_1
track ID
Definition: TRGECLHitMC.h:49
double m_momentum_y_3
momentum y
Definition: TRGECLHitMC.h:130
void setBackgroundTag(int back[3])
set grand grand grand grand Mother
Definition: TRGECLHitMC.h:211
double getEnergyDep() const
The method to get deposited energy.
Definition: TRGECLHitMC.h:272
int m_gggmother_2
Grand Grand Grand Mother ID.
Definition: TRGECLHitMC.h:91
int m_gmother_1
Grand mother ID.
Definition: TRGECLHitMC.h:55
int m_gmother_3
Grand mother ID.
Definition: TRGECLHitMC.h:119
void setEnergyDep(double edep)
The method to set deposited energy.
Definition: TRGECLHitMC.h:260
double m_momentum_z_1
momentum z
Definition: TRGECLHitMC.h:68
int m_mother_3
Mother ID.
Definition: TRGECLHitMC.h:117
void setPDG(int pdg[3])
set PDG
Definition: TRGECLHitMC.h:176
double m_momentum_z_2
momentum z
Definition: TRGECLHitMC.h:100
int m_ggggmother_2
Grand grand grand grand Mother ID.
Definition: TRGECLHitMC.h:93
ClassDef(TRGECLHitMC, 1)
the class title
int m_eventId
The cell id of this hit.
Definition: TRGECLHitMC.h:27
int m_cellId_2
2nd contribution particle information
Definition: TRGECLHitMC.h:77
int getEventId() const
The method to get event id.
Definition: TRGECLHitMC.h:266
void setTrackId(int track[3])
set Track Id
Definition: TRGECLHitMC.h:168
int m_background_tag_1
beam background tag
Definition: TRGECLHitMC.h:47
double m_edep
Deposited energy of this hit.
Definition: TRGECLHitMC.h:37
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:358
int m_gmother_2
Grand mother ID.
Definition: TRGECLHitMC.h:87
double m_momentum_y_2
momentum y
Definition: TRGECLHitMC.h:98
int m_noutput
The # of output of TC.
Definition: TRGECLHitMC.h:33
void setGGMother(int ggmother[3])
set Grand Grand Mother
Definition: TRGECLHitMC.h:197
int m_trackId_3
track ID
Definition: TRGECLHitMC.h:113
int m_mother_2
Mother ID.
Definition: TRGECLHitMC.h:85
void setTCId(int cellId)
The method to set cell id.
Definition: TRGECLHitMC.h:149
double m_TimeAve
Hit average time.
Definition: TRGECLHitMC.h:40
double m_energy_3
energy
Definition: TRGECLHitMC.h:134
double m_signal_contribution
signal contribution
Definition: TRGECLHitMC.h:140
void setEventId(int eventId)
The method to set event id.
Definition: TRGECLHitMC.h:146
double m_contribution_2
contribution
Definition: TRGECLHitMC.h:104
double m_momentum_x_2
momentum x
Definition: TRGECLHitMC.h:96
void setGMother(int gmother[3])
set Grand Mother
Definition: TRGECLHitMC.h:190
double m_bkg_contribution
beam background contribution
Definition: TRGECLHitMC.h:142
TRGECLHitMC()
Empty constructor Recommended for ROOT IO.
Definition: TRGECLHitMC.h:295
int m_gggmother_1
Grand Grand Grand Mother ID.
Definition: TRGECLHitMC.h:59
void setBKGContribution(double bkg_contribution)
set beambackground contribution
Definition: TRGECLHitMC.h:156
void setMCEnergy(double energy[3])
set energy
Definition: TRGECLHitMC.h:240
int m_cellId_1
1st contribution particle information
Definition: TRGECLHitMC.h:45
void setTimeAve(double TimeAve)
The method to set hit average time.
Definition: TRGECLHitMC.h:263
double m_contribution_1
contribution
Definition: TRGECLHitMC.h:72
Abstract base class for different kinds of events.