9#ifndef SIMCORE_EVENT_SIMTRACKERHIT_H_
10#define SIMCORE_EVENT_SIMTRACKERHIT_H_
140 void setPosition(
const float x,
const float y,
const float z);
175 void setMomentum(
const float px,
const float py,
const float pz);
Represents a simulated tracker hit in the simulation.
void setEdep(const float edep)
Set the energy deposited on the hit [MeV].
float getPathLength() const
Get the path length between the start and end points of the hit [mm].
int getModuleID() const
Get the module ID associated with a hit.
SimTrackerHit()=default
Class constructor.
ClassDef(SimTrackerHit, 3)
The ROOT class definition.
float pathLength_
The path length of the hit.
void setModuleID(const int moduleID)
Set the module ID associated with a hit.
int trackID_
The Sim Track ID.
float time_
The global time of the hit.
float edep_
The energy deposited on the hit.
int layerID_
The layer ID.
void setTime(const float time)
Set the global time of the hit [ns].
void Clear()
Reset the SimTrackerHit object.
float getEdep() const
Get the energy deposited on the hit [MeV].
void setID(const long id)
Set the detector ID of the hit.
void setPosition(const float x, const float y, const float z)
Set the position of the hit [mm].
int getPdgID() const
Get the Sim particle track ID of the hit.
void setLayerID(const int layerID)
Set the geometric layer ID of the hit.
std::vector< float > getPosition() const
Get the XYZ position of the hit [mm].
int pdgID_
The Sim PDG ID.
virtual ~SimTrackerHit()
Class destructor.
float getEnergy() const
Get the energy.
void setPathLength(const float pathLength)
Set the path length of the hit [mm].
void setEnergy(const float energy)
Set the energy of the hit.
void Print() const
Print a description of this object.
int getID() const
Get the detector ID of the hit.
float getTime() const
Get the global time of the hit [ns].
float energy_
The total energy.
bool operator<(const ldmx::SimTrackerHit &rhs) const
Sort by time of hit.
int moduleID_
The module ID.
void setPdgID(const int simPdgID)
Set the Sim particle track ID of the hit.
std::vector< double > getMomentum() const
Get the XYZ momentum of the particle at the position at which the hit took place [MeV].
void setTrackID(const int simTrackID)
Set the Sim particle track ID of the hit.
int getLayerID() const
Get the geometric layer ID of the hit.
void setMomentum(const float px, const float py, const float pz)
Set the momentum of the particle at the position at which the hit took place [GeV].
int getTrackID() const
Get the Sim particle track ID of the hit.