LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 
39  AuxDetHit(unsigned int ID,
40  unsigned int trackID,
41  float energyDeposited,
42  float entryX,
43  float entryY,
44  float entryZ,
45  float entryT,
46  float exitX,
47  float exitY,
48  float exitZ,
49  float exitT,
50  float exitMomentumX,
51  float exitMomentumY,
52  float exitMomentumZ)
53  : ID(ID)
54  , trackID(trackID)
55  , energyDeposited(energyDeposited)
56  , entryX(entryX)
57  , entryY(entryY)
58  , entryZ(entryZ)
59  , entryT(entryT)
60  , exitX(exitX)
61  , exitY(exitY)
62  , exitZ(exitZ)
63  , exitT(exitT)
64  , exitMomentumX(exitMomentumX)
65  , exitMomentumY(exitMomentumY)
66  , exitMomentumZ(exitMomentumZ)
67  {}
68 
69  void SetExitMomentumZ(float exitMomentumZ) { this->exitMomentumZ = exitMomentumZ; }
70 
71  float GetExitMomentumZ() const { return exitMomentumZ; }
72 
73  void SetExitMomentumY(float exitMomentumY) { this->exitMomentumY = exitMomentumY; }
74 
75  float GetExitMomentumY() const { return exitMomentumY; }
76 
77  void SetExitMomentumX(float exitMomentumX) { this->exitMomentumX = exitMomentumX; }
78 
79  float GetExitMomentumX() const { return exitMomentumX; }
80 
81  void SetExitT(float exitT) { this->exitT = exitT; }
82 
83  float GetExitT() const { return exitT; }
84 
85  void SetExitZ(float exitZ) { this->exitZ = exitZ; }
86 
87  float GetExitZ() const { return exitZ; }
88 
89  void SetExitY(float exitY) { this->exitY = exitY; }
90 
91  float GetExitY() const { return exitY; }
92 
93  void SetExitX(float exitX) { this->exitX = exitX; }
94 
95  float GetExitX() const { return exitX; }
96 
97  void SetEntryT(float entryT) { this->entryT = entryT; }
98 
99  float GetEntryT() const { return entryT; }
100 
101  void SetEntryZ(float entryZ) { this->entryZ = entryZ; }
102 
103  float GetEntryZ() const { return entryZ; }
104 
105  void SetEntryY(float entryY) { this->entryY = entryY; }
106 
107  float GetEntryY() const { return entryY; }
108 
109  void SetEntryX(float entryX) { this->entryX = entryX; }
110 
111  float GetEntryX() const { return entryX; }
112 
113  void SetEnergyDeposited(float energyDeposited) { this->energyDeposited = energyDeposited; }
114 
115  float GetEnergyDeposited() const { return energyDeposited; }
116 
117  void SetTrackID(unsigned int trackID) { this->trackID = trackID; }
118 
119  unsigned int GetTrackID() const { return trackID; }
120 
121  void SetID(unsigned int ID) { this->ID = ID; }
122 
123  unsigned int GetID() const { return ID; }
124  };
125 
126  typedef std::vector<AuxDetHit> AuxDetHitCollection;
127  inline bool sim::AuxDetHit::operator<(const AuxDetHit& other) const
128  {
129  return trackID < other.trackID;
130  }
131  inline bool sim::AuxDetHit::operator==(const AuxDetHit& other) const
132  {
133  return other.trackID == trackID;
134  }
135 } // namespace sim
136 #endif /* AUXDETHIT_H */
unsigned int GetTrackID() const
Definition: AuxDetHit.h:119
void SetEntryT(float entryT)
Definition: AuxDetHit.h:97
void SetEntryX(float entryX)
Definition: AuxDetHit.h:109
float GetExitX() const
Definition: AuxDetHit.h:95
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:89
float exitY
Exit position Y of particle.
Definition: AuxDetHit.h:25
float GetExitMomentumY() const
Definition: AuxDetHit.h:75
void SetID(unsigned int ID)
Definition: AuxDetHit.h:121
bool operator==(const AuxDetHit &other) const
Definition: AuxDetHit.h:131
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:77
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:111
void SetExitMomentumZ(float exitMomentumZ)
Definition: AuxDetHit.h:69
float GetExitT() const
Definition: AuxDetHit.h:83
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:99
float GetEnergyDeposited() const
Definition: AuxDetHit.h:115
void SetEntryY(float entryY)
Definition: AuxDetHit.h:105
void SetEnergyDeposited(float energyDeposited)
Definition: AuxDetHit.h:113
bool operator<(const AuxDetHit &other) const
Definition: AuxDetHit.h:127
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:81
std::vector< AuxDetHit > AuxDetHitCollection
Definition: AuxDetHit.h:126
unsigned int GetID() const
Definition: AuxDetHit.h:123
float exitMomentumZ
Exit Z-Momentum of particle.
Definition: AuxDetHit.h:30
void SetExitMomentumY(float exitMomentumY)
Definition: AuxDetHit.h:73
float GetExitY() const
Definition: AuxDetHit.h:91
void SetTrackID(unsigned int trackID)
Definition: AuxDetHit.h:117
void SetExitX(float exitX)
Definition: AuxDetHit.h:93
void SetEntryZ(float entryZ)
Definition: AuxDetHit.h:101
float exitMomentumY
Exit Y-Momentum of particle.
Definition: AuxDetHit.h:29
float GetExitMomentumX() const
Definition: AuxDetHit.h:79
float GetEntryZ() const
Definition: AuxDetHit.h:103
float GetExitZ() const
Definition: AuxDetHit.h:87
void SetExitZ(float exitZ)
Definition: AuxDetHit.h:85
unsigned int ID
Geant4 copy ID.
Definition: AuxDetHit.h:17
float GetExitMomentumZ() const
Definition: AuxDetHit.h:71
float GetEntryY() const
Definition: AuxDetHit.h:107
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:39