LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
AuxDetHit.h
Go to the documentation of this file.
1 /*
2  * File: AuxDetHit.h
3  * Author: wenzel
4  *
5  * Created on October 22, 2018, 2:35 PM
6  */
7 
8 #ifndef AUXDETHIT_H
9 #define AUXDETHIT_H
10 
11 #include <vector>
12 
13 namespace sim {
14 
15  class AuxDetHit {
16  private:
17  unsigned int ID;
18  unsigned int trackID;
20  float entryX;
21  float entryY;
22  float entryZ;
23  float entryT;
24  float exitX;
25  float exitY;
26  float exitZ;
27  float exitT;
28  float exitMomentumX;
29  float exitMomentumY;
30  float exitMomentumZ;
31 
32  public:
33  // Default constructor
34  AuxDetHit() {}
35  bool operator<(const AuxDetHit& other) const;
36  bool operator==(const AuxDetHit& other) const;
37  // Hide the following from Root
38 #ifndef __GCCXML__
39 
40  AuxDetHit(unsigned int ID,
41  unsigned int trackID,
42  float energyDeposited,
43  float entryX,
44  float entryY,
45  float entryZ,
46  float entryT,
47  float exitX,
48  float exitY,
49  float exitZ,
50  float exitT,
51  float exitMomentumX,
52  float exitMomentumY,
53  float exitMomentumZ) :
54  ID(ID),
55  trackID(trackID),
56  energyDeposited(energyDeposited),
57  entryX(entryX),
58  entryY(entryY),
59  entryZ(entryZ),
60  entryT(entryT),
61  exitX(exitX),
62  exitY(exitY),
63  exitZ(exitZ),
64  exitT(exitT),
65  exitMomentumX(exitMomentumX),
66  exitMomentumY(exitMomentumY),
67  exitMomentumZ(exitMomentumZ) {
68  }
69 
70  void SetExitMomentumZ(float exitMomentumZ) {
71  this->exitMomentumZ = exitMomentumZ;
72  }
73 
74  float GetExitMomentumZ() const {
75  return exitMomentumZ;
76  }
77 
78  void SetExitMomentumY(float exitMomentumY) {
79  this->exitMomentumY = exitMomentumY;
80  }
81 
82  float GetExitMomentumY() const {
83  return exitMomentumY;
84  }
85 
86  void SetExitMomentumX(float exitMomentumX) {
87  this->exitMomentumX = exitMomentumX;
88  }
89 
90  float GetExitMomentumX() const {
91  return exitMomentumX;
92  }
93 
94  void SetExitT(float exitT) {
95  this->exitT = exitT;
96  }
97 
98  float GetExitT() const {
99  return exitT;
100  }
101 
102  void SetExitZ(float exitZ) {
103  this->exitZ = exitZ;
104  }
105 
106  float GetExitZ() const {
107  return exitZ;
108  }
109 
110  void SetExitY(float exitY) {
111  this->exitY = exitY;
112  }
113 
114  float GetExitY() const {
115  return exitY;
116  }
117 
118  void SetExitX(float exitX) {
119  this->exitX = exitX;
120  }
121 
122  float GetExitX() const {
123  return exitX;
124  }
125 
126  void SetEntryT(float entryT) {
127  this->entryT = entryT;
128  }
129 
130  float GetEntryT() const {
131  return entryT;
132  }
133 
134  void SetEntryZ(float entryZ) {
135  this->entryZ = entryZ;
136  }
137 
138  float GetEntryZ() const {
139  return entryZ;
140  }
141 
142  void SetEntryY(float entryY) {
143  this->entryY = entryY;
144  }
145 
146  float GetEntryY() const {
147  return entryY;
148  }
149 
150  void SetEntryX(float entryX) {
151  this->entryX = entryX;
152  }
153 
154  float GetEntryX() const {
155  return entryX;
156  }
157 
158  void SetEnergyDeposited(float energyDeposited) {
159  this->energyDeposited = energyDeposited;
160  }
161 
162  float GetEnergyDeposited() const {
163  return energyDeposited;
164  }
165 
166  void SetTrackID(unsigned int trackID) {
167  this->trackID = trackID;
168  }
169 
170  unsigned int GetTrackID() const {
171  return trackID;
172  }
173 
174  void SetID(unsigned int ID) {
175  this->ID = ID;
176  }
177 
178  unsigned int GetID() const {
179  return ID;
180  }
181 
182 #endif
183  };
184 
185  typedef std::vector<AuxDetHit> AuxDetHitCollection;
186  inline bool sim::AuxDetHit::operator<(const AuxDetHit& other) const { return trackID < other.trackID;}
187  inline bool sim::AuxDetHit::operator==(const AuxDetHit& other) const { return other.trackID == trackID;}
188 } // namespace sim
189 #endif /* AUXDETHIT_H */
190 
unsigned int GetTrackID() const
Definition: AuxDetHit.h:170
void SetEntryT(float entryT)
Definition: AuxDetHit.h:126
void SetEntryX(float entryX)
Definition: AuxDetHit.h:150
float GetExitX() const
Definition: AuxDetHit.h:122
float entryY
Entry position Y of particle.
Definition: AuxDetHit.h:21
float exitMomentumX
Exit X-Momentum of particle.
Definition: AuxDetHit.h:28
void SetExitY(float exitY)
Definition: AuxDetHit.h:110
float exitY
Exit position Y of particle.
Definition: AuxDetHit.h:25
float GetExitMomentumY() const
Definition: AuxDetHit.h:82
void SetID(unsigned int ID)
Definition: AuxDetHit.h:174
bool operator==(const AuxDetHit &other) const
Definition: AuxDetHit.h:187
float exitZ
Exit position Z of particle.
Definition: AuxDetHit.h:26
float entryT
Entry time of particle.
Definition: AuxDetHit.h:23
unsigned int trackID
Geant4 supplied track ID.
Definition: AuxDetHit.h:18
void SetExitMomentumX(float exitMomentumX)
Definition: AuxDetHit.h:86
float exitT
Exit time of particle.
Definition: AuxDetHit.h:27
float entryZ
Entry position Z of particle.
Definition: AuxDetHit.h:22
float GetEntryX() const
Definition: AuxDetHit.h:154
void SetExitMomentumZ(float exitMomentumZ)
Definition: AuxDetHit.h:70
float GetExitT() const
Definition: AuxDetHit.h:98
float entryX
Entry position X of particle.
Definition: AuxDetHit.h:20
float exitX
Exit position X of particle.
Definition: AuxDetHit.h:24
float GetEntryT() const
Definition: AuxDetHit.h:130
float GetEnergyDeposited() const
Definition: AuxDetHit.h:162
void SetEntryY(float entryY)
Definition: AuxDetHit.h:142
void SetEnergyDeposited(float energyDeposited)
Definition: AuxDetHit.h:158
bool operator<(const AuxDetHit &other) const
Definition: AuxDetHit.h:186
Monte Carlo Simulation.
float energyDeposited
total energy deposited for this track ID and time
Definition: AuxDetHit.h:19
void SetExitT(float exitT)
Definition: AuxDetHit.h:94
std::vector< AuxDetHit > AuxDetHitCollection
Definition: AuxDetHit.h:185
unsigned int GetID() const
Definition: AuxDetHit.h:178
float exitMomentumZ
Exit Z-Momentum of particle.
Definition: AuxDetHit.h:30
void SetExitMomentumY(float exitMomentumY)
Definition: AuxDetHit.h:78
float GetExitY() const
Definition: AuxDetHit.h:114
void SetTrackID(unsigned int trackID)
Definition: AuxDetHit.h:166
void SetExitX(float exitX)
Definition: AuxDetHit.h:118
void SetEntryZ(float entryZ)
Definition: AuxDetHit.h:134
float exitMomentumY
Exit Y-Momentum of particle.
Definition: AuxDetHit.h:29
float GetExitMomentumX() const
Definition: AuxDetHit.h:90
float GetEntryZ() const
Definition: AuxDetHit.h:138
float GetExitZ() const
Definition: AuxDetHit.h:106
void SetExitZ(float exitZ)
Definition: AuxDetHit.h:102
unsigned int ID
Geant4 copy ID.
Definition: AuxDetHit.h:17
float GetExitMomentumZ() const
Definition: AuxDetHit.h:74
float GetEntryY() const
Definition: AuxDetHit.h:146
AuxDetHit(unsigned int ID, unsigned int trackID, float energyDeposited, float entryX, float entryY, float entryZ, float entryT, float exitX, float exitY, float exitZ, float exitT, float exitMomentumX, float exitMomentumY, float exitMomentumZ)
Definition: AuxDetHit.h:40