ACTARSim
ACTAR TPC Simulation Reference Guide
ActarSimSimpleTrack.cc
Go to the documentation of this file.
1 // - AUTHOR: Hector Alvarez-Pol 05/2006
2 /******************************************************************
3  * Copyright (C) 2005-2016, Hector Alvarez-Pol *
4  * All rights reserved. *
5  * *
6  * License according to GNU LESSER GPL (see lgpl-3.0.txt). *
7  * For the list of contributors see CREDITS. *
8  ******************************************************************/
9 //////////////////////////////////////////////////////////////////
10 /// \class ActarSimSimpleTrack
11 /// A track simplified structure to reduce the space consumption
12 /// while keeping most of the information. The (huge amount of)
13 /// GEANT steps are here reduced to few "strides"
14 /////////////////////////////////////////////////////////////////
15 
16 #include "ActarSimSimpleTrack.hh"
17 
19 
20 //////////////////////////////////////////////////////////////////
21 /// Constructor initializing to defaults
23  xPre = 0.;
24  yPre = 0.;
25  zPre = 0.;
26  xPost = 0.;
27  yPost = 0.;
28  zPost = 0.;
29  energyStride = 0.;
30  strideLength = 0.;
31  timePre = 0.;
32  timePost = 0.;
33  numberSteps = 0;
34  strideOrdinal = 0;
35  parentTrackID = -999;
36  trackID = -999;
37  eventID = -999;
38  runID = -999;
39 }
40 
41 //////////////////////////////////////////////////////////////////
42 /// Destructor. Makes nothing
44 }
45 
46 //////////////////////////////////////////////////////////////////
47 /// Clearing to defaults
49  xPre = 0.;
50  yPre = 0.;
51  zPre = 0.;
52  xPost = 0.;
53  yPost= 0.;
54  zPost = 0.;
55  energyStride = 0.;
56  particleCharge=0.;
57  particleMass=0.;
58  particleID=0;
59  strideLength = 0.;
60  particleEnergy = 0.;
61  timePre = 0.;
62  timePost = 0.;
63  numberSteps = 0;
64  strideOrdinal = 0;
65  parentTrackID = -999;
66  trackID = -999;
67  eventID = -999;
68  runID = -999;
69 }
70 
71 //////////////////////////////////////////////////////////////////
72 /// Overloading the copy operator...
74  if (this != &right){
75  xPre = right.xPre;
76  yPre = right.yPre;
77  zPre = right.zPre;
78  xPost = right.xPost;
79  yPost = right.yPost;
80  zPost = right.zPost;
81  energyStride = right.energyStride;
83  particleMass = right.particleMass;
84  particleID = right.particleID;
85  strideLength = right.strideLength;
87  timePre = right.timePre;
88  timePost = right.timePost;
89  numberSteps = right.numberSteps;
92  trackID = right.trackID;
93  eventID = right.eventID;
94  runID = right.runID;
95  }
96  return *this;
97 }
Double_t xPre
Coordinate X of the preStepPoint for the first step in the stride.
void Reset(void)
Clearing to defaults.
Double_t strideLength
Stride length (sum over all steps length)
Double_t particleCharge
Particle charge.
Int_t strideOrdinal
Stride order.
Double_t particleEnergy
Particle energy before the step and thus before the stride.
Int_t particleID
Particle ID.
Int_t numberSteps
Number of steps in the stride.
Double_t zPost
Coordinate Z of the postStepPoint for the last step in the stride.
Double_t particleMass
Particle mass.
Double_t yPost
Coordinate Y of the postStepPoint for the last step in the stride.
Double_t timePre
Time of preStepPoint for the first step in the stride.
Double_t energyStride
Total energy on the stride (sum over all steps)
Int_t parentTrackID
Parent Track ID.
Double_t timePost
Time of postStepPoint for the last step in the stride.
~ActarSimSimpleTrack()
Destructor. Makes nothing.
Double_t yPre
Coordinate Y of the preStepPoint for the first step in the stride.
ClassImp(ActarSimSimpleTrack) ActarSimSimpleTrack
Constructor initializing to defaults.
Double_t xPost
Coordinate X of the postStepPoint for the last step in the stride.
Double_t zPre
Coordinate Z of the preStepPoint for the first step in the stride.
ActarSimSimpleTrack & operator=(const ActarSimSimpleTrack &right)
Overloading the copy operator...