ACTARSim
ACTAR TPC Simulation Reference Guide
ActarSimTrack.hh
Go to the documentation of this file.
1 // - AUTHOR: Hector Alvarez-Pol 05/2005
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 ActarSimTrack_h
11 #define ActarSimTrack_h 1
12 
13 //#include "G4Types.hh"
14 
15 #include "TROOT.h" //for including Rtypes.h
16 
17 //#ifndef __CINT__
18 //#include "G4String.hh" //Explicit inclusion for root dictionary
19 //using namespace std;
20 //#else
21 //struct G4String;
22 //#endif
23 
25 private:
26  Double_t xCoord; ///< X coordinate
27  Double_t yCoord; ///< Y coordinate
28  Double_t zCoord; ///< Z coordinate
29  Double_t xPreCoord; ///< X coordinate at the start of step
30  Double_t yPreCoord; ///< Y coordinate at the start of step
31  Double_t zPreCoord; ///< Z coordinate at the start of step
32  Double_t energyStep; ///< Energy step
33  Int_t parentTrackID; ///< Parent Track ID
34  Int_t trackID; ///< Track ID
35  Int_t eventID; ///< Event ID
36  Int_t runID; ///< Run ID
37 
38 public:
39  ActarSimTrack();
40  virtual ~ActarSimTrack();
41 
42  Double_t GetXCoord(){return xCoord;}
43  Double_t GetYCoord(){return yCoord;}
44  Double_t GetZCoord(){return zCoord;}
45  Double_t GetXPreCoord(){return xPreCoord;}
46  Double_t GetYPreCoord(){return yPreCoord;}
47  Double_t GetZPreCoord(){return zPreCoord;}
48  Double_t GetEnergyStep(){return energyStep;}
49  Int_t GetTrackID(){return trackID;}
51  Int_t GetEventID(){return eventID;}
52  Int_t GetRunID(){return runID;}
53 
54  void SetXCoord(Double_t xc){xCoord = xc;}
55  void SetYCoord(Double_t yc){yCoord = yc;}
56  void SetZCoord(Double_t zc){zCoord = zc;}
57  void SetXPreCoord(Double_t xc){xPreCoord = xc;}
58  void SetYPreCoord(Double_t yc){yPreCoord = yc;}
59  void SetZPreCoord(Double_t zc){zPreCoord = zc;}
60  void SetEnergyStep(Double_t energy){energyStep = energy;}
61  void SetTrackID(Int_t track){trackID = track;}
62  void SetParentTrackID(Int_t pt){parentTrackID = pt;}
63  void SetEventID(Int_t ev){eventID = ev;}
64  void SetRunID(Int_t ev){runID = ev;}
65 
66  ClassDef(ActarSimTrack,1) //ROOT CINT
67 };
68 #endif
void SetZCoord(Double_t zc)
void SetZPreCoord(Double_t zc)
Double_t GetEnergyStep()
void SetTrackID(Int_t track)
void SetRunID(Int_t ev)
Int_t GetParentTrackID()
Double_t xCoord
X coordinate.
Double_t GetZPreCoord()
Double_t energyStep
Energy step.
void SetParentTrackID(Int_t pt)
Double_t GetZCoord()
Int_t parentTrackID
Parent Track ID.
Int_t GetTrackID()
void SetEventID(Int_t ev)
Double_t GetYPreCoord()
void SetXCoord(Double_t xc)
void SetYPreCoord(Double_t yc)
virtual ~ActarSimTrack()
Destructor.
Double_t yPreCoord
Y coordinate at the start of step.
Double_t zCoord
Z coordinate.
void SetEnergyStep(Double_t energy)
Int_t eventID
Event ID.
void SetXPreCoord(Double_t xc)
Int_t trackID
Track ID.
Double_t GetXPreCoord()
void SetYCoord(Double_t yc)
Int_t GetEventID()
Double_t GetXCoord()
Double_t yCoord
Y coordinate.
Double_t xPreCoord
X coordinate at the start of step.
Double_t GetYCoord()
Int_t GetRunID()
Int_t runID
Run ID.
Double_t zPreCoord
Z coordinate at the start of step.