Belle II Software development
TRGECLDigi0MC.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 TRGECLDIGI0MC_H
10#define TRGECLDIGI0MC_H
11
12#include <TObject.h>
13
14namespace Belle2 {
21 class TRGECLDigi0MC : public TObject {
22 public:
23
27 int m_tcid;
39
40
41
43
62
70 double m_energy_1;
73
75
94
105
107
126
137
138
140 void setEventId(int eventid) { m_eventid = eventid; }
142 void setTCId(int tcid) { m_tcid = tcid; }
144 void setiBinTime(int ibintime) { m_ibintime = ibintime; }
145
147 void setRawEnergy(double raw_energy) { m_raw_energy = raw_energy; }
149 void setSignalContribution(double signal_contribution) { m_signal_contribution = signal_contribution; }
151 void setBKGContribution(double bkg_contribution) { m_bkg_contribution = bkg_contribution; }
153 void setRawTiming(double raw_timing) { m_raw_timing = raw_timing; }
156
157
159 void setCellId(int cell[3])
160 {
161 m_cellId_1 = cell[0];
162 m_cellId_2 = cell[1];
163 m_cellId_3 = cell[2];
164
165 }
167 void setTrackId(int track[3])
168 {
169 m_trackId_1 = track[0];
170 m_trackId_2 = track[1];
171 m_trackId_3 = track[2];
172
173 }
175 void setPDG(int pdg[3])
176 {
177 m_pdg_1 = pdg[0];
178 m_pdg_2 = pdg[1];
179 m_pdg_3 = pdg[2];
180 }
182 void setMother(int mother[3])
183 {
184 m_mother_1 = mother[0];
185 m_mother_2 = mother[1];
186 m_mother_3 = mother[2];
187 }
189 void setGMother(int gmother[3])
190 {
191 m_gmother_1 = gmother[0];
192 m_gmother_2 = gmother[1];
193 m_gmother_3 = gmother[2];
194 }
196 void setGGMother(int ggmother[3])
197 {
198 m_ggmother_1 = ggmother[0];
199 m_ggmother_2 = ggmother[1];
200 m_ggmother_3 = ggmother[2];
201 }
203 void setGGGMother(int gggmother[3])
204 {
205 m_gggmother_1 = gggmother[0];
206 m_gggmother_2 = gggmother[1];
207 m_gggmother_3 = gggmother[2];
208 }
210 void setBackgroundTag(int back[3])
211 {
212 m_background_tag_1 = back[0];
213 m_background_tag_2 = back[1];
214 m_background_tag_3 = back[2];
215
216 }
218 void setPX(double px[3])
219 {
220 m_momentum_x_1 = px[0];
221 m_momentum_x_2 = px[1];
222 m_momentum_x_3 = px[2];
223 }
225 void setPY(double py[3])
226 {
227 m_momentum_y_1 = py[0];
228 m_momentum_y_2 = py[1];
229 m_momentum_y_3 = py[2];
230 }
232 void setPZ(double pz[3])
233 {
234 m_momentum_z_1 = pz[0];
235 m_momentum_z_2 = pz[1];
236 m_momentum_z_3 = pz[2];
237 }
239 void setMCEnergy(double energy[3])
240 {
241 m_energy_1 = energy[0];
242 m_energy_2 = energy[1];
243 m_energy_3 = energy[2];
244
245 }
247 void setContribution(double contribution[3])
248 {
249 m_contribution_1 = contribution[0];
250 m_contribution_2 = contribution[1];
251 m_contribution_3 = contribution[1];
252 }
253
254
255
256
257
258
259
260
261
262
264 int getEventId() const { return m_eventid; }
266 int getTCId() const { return m_tcid; }
268 int getiBinTime() const { return m_ibintime; }
270 double getRawEnergy() const {return m_raw_energy; }
272 double getRawTiming() const {return m_raw_timing; }
273
277 {
278 m_eventid = 0;
279 m_tcid = 0;
280 m_ibintime = 0;
281 m_raw_energy = 0;
282 m_raw_timing = 0;
283
284
290 m_cellId_1 = 0;
291 m_cellId_2 = 0;
292 m_cellId_3 = 0;
296 m_energy_1 = 0;
297 m_energy_2 = 0;
298 m_energy_3 = 0;
299 m_ggggmother_1 = 0;
300 m_ggggmother_2 = 0;
301 m_ggggmother_3 = 0;
302 m_gggmother_1 = 0;
303 m_gggmother_2 = 0;
304 m_gggmother_3 = 0;
305 m_ggmother_1 = 0;
306 m_ggmother_2 = 0;
307 m_ggmother_3 = 0;
308 m_gmother_1 = 0;
309 m_gmother_2 = 0;
310 m_gmother_3 = 0;
311 m_mother_1 = 0;
312 m_mother_2 = 0;
313 m_mother_3 = 0;
314
315
316 m_momentum_x_1 = 0;
317 m_momentum_x_2 = 0;
318 m_momentum_x_3 = 0;
319 m_momentum_y_1 = 0;
320 m_momentum_y_2 = 0;
321 m_momentum_y_3 = 0;
322 m_momentum_z_1 = 0;
323 m_momentum_z_2 = 0;
324 m_momentum_z_3 = 0;
325
326 m_pdg_1 = 0; ;
327 m_pdg_2 = 0; ;
328 m_pdg_3 = 0; ;
329 m_trackId_1 = 0;
330 m_trackId_2 = 0;
331 m_trackId_3 = 0;
332
333
334
335 }
336
339 int eventid,
340 int tcid,
341 int ibintime,
342 double raw_energy,
343 double raw_timing,
344 int background_tag_1,
345 int background_tag_2,
346 int background_tag_3,
347 int bkg_contribution,
348 int signal_contribution,
349 int cellId_1,
350 int cellId_2,
351 int cellId_3,
352 int contribution_1,
353 int contribution_2,
354 int contribution_3,
355 int energy_1,
356 int energy_2,
357 int energy_3,
358 int ggggmother_1,
359 int ggggmother_2,
360 int ggggmother_3,
361 int gggmother_1,
362 int gggmother_2,
363 int gggmother_3,
364 int ggmother_1,
365 int ggmother_2,
366 int ggmother_3,
367 int gmother_1,
368 int gmother_2,
369 int gmother_3,
370 int mother_1,
371 int mother_2,
372 int mother_3,
373 int momentum_x_1,
374 int momentum_x_2,
375 int momentum_x_3,
376 int momentum_y_1,
377 int momentum_y_2,
378 int momentum_y_3,
379 int momentum_z_1,
380 int momentum_z_2,
381 int momentum_z_3,
382 int pdg_1,
383 int pdg_2,
384 int pdg_3,
385 int trackId_1,
386 int trackId_2,
387 int trackId_3
388 )
389 {
390 m_eventid = eventid;
391 m_tcid = tcid;
392 m_ibintime = ibintime;
393 m_raw_energy = raw_energy;
394 m_raw_timing = raw_timing;
395
396
397 m_background_tag_1 = background_tag_1;
398 m_background_tag_2 = background_tag_2;
399 m_background_tag_3 = background_tag_3;
400 m_bkg_contribution = bkg_contribution;
401 m_signal_contribution = signal_contribution;
402 m_cellId_1 = cellId_1;
403 m_cellId_2 = cellId_2;
404 m_cellId_3 = cellId_3;
405 m_contribution_1 = contribution_1;
406 m_contribution_2 = contribution_2;
407 m_contribution_3 = contribution_3;
408 m_energy_1 = energy_1;
409 m_energy_2 = energy_2;
410 m_energy_3 = energy_3;
411 m_ggggmother_1 = ggggmother_1;
412 m_ggggmother_2 = ggggmother_2;
413 m_ggggmother_3 = ggggmother_3;
414 m_gggmother_1 = gggmother_1;
415 m_gggmother_2 = gggmother_2;
416 m_gggmother_3 = gggmother_3;
417 m_ggmother_1 = ggmother_1;
418 m_ggmother_2 = ggmother_2;
419 m_ggmother_3 = ggmother_3;
420 m_gmother_1 = gmother_1;
421 m_gmother_2 = gmother_2;
422 m_gmother_3 = gmother_3;
423 m_mother_1 = mother_1;
424 m_mother_2 = mother_2;
425 m_mother_3 = mother_3;
426
427
428 m_momentum_x_1 = momentum_x_1;
429 m_momentum_x_2 = momentum_x_2;
430 m_momentum_x_3 = momentum_x_3;
431 m_momentum_y_1 = momentum_y_1;
432 m_momentum_y_2 = momentum_y_2;
433 m_momentum_y_3 = momentum_y_3;
434 m_momentum_z_1 = momentum_z_1;
435 m_momentum_z_2 = momentum_z_2;
436 m_momentum_z_3 = momentum_z_3;
437
438 m_pdg_1 = pdg_1;
439 m_pdg_2 = pdg_2;
440 m_pdg_3 = pdg_3;
441 m_trackId_1 = trackId_1;
442 m_trackId_2 = trackId_2;
443 m_trackId_3 = trackId_3;
444
445
446
447 }
449 ClassDef(TRGECLDigi0MC, 1); /*< the class title */
450 };
452}
453
454#endif
Example Detector.
Definition: TRGECLDigi0MC.h:21
void setPX(double px[3])
set momentum X
int m_ibintime
time bin
Definition: TRGECLDigi0MC.h:29
int m_background_tag_3
beam background tag
double m_contribution_3
contribution
int m_ggmother_3
Grand Grand Mother ID.
double m_energy_2
energy
void setGGGMother(int gggmother[3])
set Grand Grand grandMother
int m_ggggmother_1
Grand grand grand grand Mother ID.
Definition: TRGECLDigi0MC.h:61
void setContribution(double contribution[3])
set contribution
void setPY(double py[3])
set momentum Y
double m_momentum_y_1
momentum y
Definition: TRGECLDigi0MC.h:66
double m_raw_energy
TC Energy and Timing raw TC energy.
Definition: TRGECLDigi0MC.h:32
double m_momentum_z_3
momentum z
void setSignalContribution(double signal_contribution)
set Signal Contribtion
void setMother(int mother[3])
set Mother
int m_gggmother_3
Grand Grand Grand Mother ID.
int m_eventid
Event Id.
Definition: TRGECLDigi0MC.h:25
int m_ggggmother_3
Grand grand grand grand Mother ID.
double m_momentum_x_3
momentum x
int m_cellId_3
3rd contribution particle information
int m_background_tag_2
beam background tag
Definition: TRGECLDigi0MC.h:79
double m_energy_1
energy
Definition: TRGECLDigi0MC.h:70
int m_trackId_2
track ID
Definition: TRGECLDigi0MC.h:81
int m_ggmother_1
Grand Grand Mother ID.
Definition: TRGECLDigi0MC.h:57
void setPZ(double pz[3])
set momentum Z
void setCellId(int cell[3])
MC information.
int m_mother_1
Mother ID.
Definition: TRGECLDigi0MC.h:53
double m_momentum_x_1
momentum x
Definition: TRGECLDigi0MC.h:64
int m_ggmother_2
Grand Grand Mother ID.
Definition: TRGECLDigi0MC.h:89
int m_trackId_1
track ID
Definition: TRGECLDigi0MC.h:49
int getiBinTime() const
get Bin number
double m_momentum_y_3
momentum y
void setBackgroundTag(int back[3])
set grand grand grand grand Mother
void setTCId(int tcid)
Set TC id.
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.
int m_gggmother_2
Grand Grand Grand Mother ID.
Definition: TRGECLDigi0MC.h:91
int m_gmother_1
Grand mother ID.
Definition: TRGECLDigi0MC.h:55
ClassDef(TRGECLDigi0MC, 1)
the class title
int m_gmother_3
Grand mother ID.
double m_momentum_z_1
momentum z
Definition: TRGECLDigi0MC.h:68
int m_mother_3
Mother ID.
TRGECLDigi0MC()
Empty constructor Recommended for ROOT IO.
void setPDG(int pdg[3])
set PDG
double m_momentum_z_2
momentum z
int m_ggggmother_2
Grand grand grand grand Mother ID.
Definition: TRGECLDigi0MC.h:93
int m_cellId_2
2nd contribution particle information
Definition: TRGECLDigi0MC.h:77
int getEventId() const
Get event id.
void setTrackId(int track[3])
set Track Id
int m_background_tag_1
beam background tag
Definition: TRGECLDigi0MC.h:47
int m_gmother_2
Grand mother ID.
Definition: TRGECLDigi0MC.h:87
double m_momentum_y_2
momentum y
Definition: TRGECLDigi0MC.h:98
void setiBinTime(int ibintime)
Set Bin Number.
void setGGMother(int ggmother[3])
set Grand Grand Mother
int m_mother_2
Mother ID.
Definition: TRGECLDigi0MC.h:85
double m_energy_3
energy
double m_signal_contribution
Signal contribution.
Definition: TRGECLDigi0MC.h:36
double getRawTiming() const
Get Raw Timing.
double m_contribution_2
contribution
double m_momentum_x_2
momentum x
Definition: TRGECLDigi0MC.h:96
void setGMother(int gmother[3])
set Grand Mother
double m_bkg_contribution
beam background contribution
Definition: TRGECLDigi0MC.h:38
int getTCId() const
Get TC id.
void setRawEnergy(double raw_energy)
Set Energy and Timing.
double m_raw_timing
raw TC timing
Definition: TRGECLDigi0MC.h:34
void setEventId(int eventid)
Set event id.
int m_gggmother_1
Grand Grand Grand Mother ID.
Definition: TRGECLDigi0MC.h:59
void setRawTiming(double raw_timing)
set Raw timing
double getRawEnergy() const
Get Raw Energy.
void setBKGContribution(double bkg_contribution)
set beambackground contribution
void setMCEnergy(double energy[3])
set energy
int m_cellId_1
1st contribution particle information
Definition: TRGECLDigi0MC.h:45
double m_contribution_1
contribution
Definition: TRGECLDigi0MC.h:72
Abstract base class for different kinds of events.