ACTARSim
ACTAR TPC Simulation Reference Guide
ActarSimSimpleTrack.hh
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 #ifndef ActarSimSimpleTrack_h
11 #define ActarSimSimpleTrack_h 1
12 
13 #include "TROOT.h" //for including Rtypes.h
14 #include "TObject.h"
15 
16 class ActarSimSimpleTrack : public TObject {
17 private:
18  Double_t xPre; ///< Coordinate X of the preStepPoint for the first step in the stride
19  Double_t yPre; ///< Coordinate Y of the preStepPoint for the first step in the stride
20  Double_t zPre; ///< Coordinate Z of the preStepPoint for the first step in the stride
21  Double_t xPost; ///< Coordinate X of the postStepPoint for the last step in the stride
22  Double_t yPost; ///< Coordinate Y of the postStepPoint for the last step in the stride
23  Double_t zPost; ///< Coordinate Z of the postStepPoint for the last step in the stride
24  Double_t energyStride; ///< Total energy on the stride (sum over all steps)
25  Double_t particleCharge; ///< Particle charge
26  Double_t particleMass; ///< Particle mass
27  Int_t particleID; ///< Particle ID
28  Double_t strideLength; ///< Stride length (sum over all steps length)
29  Double_t particleEnergy; ///< Particle energy before the step and thus before the stride
30  Double_t timePre; ///< Time of preStepPoint for the first step in the stride
31  Double_t timePost; ///< Time of postStepPoint for the last step in the stride
32  Int_t numberSteps; ///< Number of steps in the stride
33  Int_t strideOrdinal; ///< Stride order
34  Int_t parentTrackID; ///< Parent Track ID
35 
36  //Note that with the new TClonesArray access this data is not neccesary,
37  //as they are in the event tree and very well structured. TODO REMOVE!!!
38 
39  Int_t trackID; ///< Track ID
40  Int_t eventID; ///< Event ID
41  Int_t runID; ///< Run ID
42 
43 public:
46 
47  void Reset(void);
48 
50 
51  Double_t GetXPre(){return xPre;}
52  Double_t GetYPre(){return yPre;}
53  Double_t GetZPre(){return zPre;}
54  Double_t GetXPost(){return xPost;}
55  Double_t GetYPost(){return yPost;}
56  Double_t GetZPost(){return zPost;}
57 
58  Double_t GetEnergyStride(){return energyStride;}
59  Double_t GetParticleCharge(){return particleCharge;}
60  Double_t GetParticleMass(){return particleMass;}
61  Int_t GetParticleID(){return particleID;}
62  Double_t GetStrideLength(){return strideLength;}
63  Double_t GetParticleEnergy(){return particleEnergy;}
64  Double_t GetTimePre(){return timePre;}
65  Double_t GetTimePost(){return timePost;}
66  Int_t GetNumberSteps(){return numberSteps;}
68  Int_t GetTrackID(){return trackID;}
70  Int_t GetEventID(){return eventID;}
71  Int_t GetRunID(){return runID;}
72 
73  void SetXPre(Double_t xc){xPre = xc;}
74  void SetYPre(Double_t yc){yPre = yc;}
75  void SetZPre(Double_t zc){zPre = zc;}
76  void SetXPost(Double_t xc){xPost = xc;}
77  void SetYPost(Double_t yc){yPost = yc;}
78  void SetZPost(Double_t zc){zPost = zc;}
79  void SetEnergyStride(Double_t energy){energyStride = energy;}
80  void SetParticleCharge(Double_t parcha){particleCharge=parcha;}
81  void SetParticleMass(Double_t pm){particleMass=pm;}
82  void SetParticleID(Int_t piD){particleID=piD;}
83  void SetStrideLength(Double_t len){strideLength = len;}
84  void SetParticleEnergy(Double_t penergy){particleEnergy = penergy;}
85  void SetTimePre(Double_t te){timePre = te;}
86  void SetTimePost(Double_t te){timePost = te;}
87  void SetNumberSteps(Int_t num){numberSteps = num;}
88  void SetStrideOrdinal(Int_t num){strideOrdinal = num;}
89  void SetTrackID(Int_t track){trackID = track;}
90  void SetParentTrackID(Int_t pt){parentTrackID = pt;}
91  void SetEventID(Int_t ev){eventID = ev;}
92  void SetRunID(Int_t ev){runID = ev;}
93 
94  ClassDef(ActarSimSimpleTrack,1) //ROOT CINT
95 };
96 #endif
void SetParentTrackID(Int_t pt)
void SetParticleID(Int_t piD)
void SetTimePre(Double_t te)
Double_t xPre
Coordinate X of the preStepPoint for the first step in the stride.
void Reset(void)
Clearing to defaults.
void SetStrideOrdinal(Int_t num)
Double_t strideLength
Stride length (sum over all steps length)
void SetParticleCharge(Double_t parcha)
Double_t particleCharge
Particle charge.
void SetYPre(Double_t yc)
void SetEnergyStride(Double_t energy)
void SetNumberSteps(Int_t num)
Int_t strideOrdinal
Stride order.
Double_t particleEnergy
Particle energy before the step and thus before the stride.
Int_t particleID
Particle ID.
void SetTimePost(Double_t te)
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.
void SetParticleEnergy(Double_t penergy)
void SetStrideLength(Double_t len)
void SetZPost(Double_t zc)
void SetParticleMass(Double_t pm)
~ActarSimSimpleTrack()
Destructor. Makes nothing.
Double_t yPre
Coordinate Y of the preStepPoint for the first step in the stride.
void SetTrackID(Int_t track)
void SetXPost(Double_t xc)
Double_t xPost
Coordinate X of the postStepPoint for the last step in the stride.
void SetYPost(Double_t yc)
Double_t zPre
Coordinate Z of the preStepPoint for the first step in the stride.
void SetZPre(Double_t zc)
ActarSimSimpleTrack & operator=(const ActarSimSimpleTrack &right)
Overloading the copy operator...
void SetXPre(Double_t xc)