LDMX Software
|
Represents a simulated tracker hit in the simulation. More...
#include <SimTrackerHit.h>
Public Member Functions | |
SimTrackerHit ()=default | |
Class constructor. | |
virtual | ~SimTrackerHit () |
Class destructor. | |
void | Print () const |
Print a description of this object. | |
void | Clear () |
Reset the SimTrackerHit object. | |
int | getID () const |
Get the detector ID of the hit. | |
int | getLayerID () const |
Get the geometric layer ID of the hit. | |
int | getModuleID () const |
Get the module ID associated with a hit. | |
std::vector< float > | getPosition () const |
Get the XYZ position of the hit [mm]. | |
float | getEdep () const |
Get the energy deposited on the hit [MeV]. | |
float | getEnergy () const |
Get the energy. | |
float | getTime () const |
Get the global time of the hit [ns]. | |
float | getPathLength () const |
Get the path length between the start and end points of the hit [mm]. | |
std::vector< double > | getMomentum () const |
Get the XYZ momentum of the particle at the position at which the hit took place [MeV]. | |
int | getTrackID () const |
Get the Sim particle track ID of the hit. | |
int | getPdgID () const |
Get the Sim particle track ID of the hit. | |
void | setID (const long id) |
Set the detector ID of the hit. | |
void | setLayerID (const int layerID) |
Set the geometric layer ID of the hit. | |
void | setModuleID (const int moduleID) |
Set the module ID associated with a hit. | |
void | setPosition (const float x, const float y, const float z) |
Set the position of the hit [mm]. | |
void | setEdep (const float edep) |
Set the energy deposited on the hit [MeV]. | |
void | setEnergy (const float energy) |
Set the energy of the hit. | |
void | setTime (const float time) |
Set the global time of the hit [ns]. | |
void | setPathLength (const float pathLength) |
Set the path length of the hit [mm]. | |
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]. | |
void | setTrackID (const int simTrackID) |
Set the Sim particle track ID of the hit. | |
void | setPdgID (const int simPdgID) |
Set the Sim particle track ID of the hit. | |
bool | operator< (const ldmx::SimTrackerHit &rhs) const |
Sort by time of hit. | |
Private Member Functions | |
ClassDef (SimTrackerHit, 3) | |
The ROOT class definition. | |
Private Attributes | |
int | id_ {0} |
The detector ID. | |
int | layerID_ {0} |
The layer ID. | |
int | moduleID_ {0} |
The module ID. | |
float | edep_ {0} |
The energy deposited on the hit. | |
float | time_ {0} |
The global time of the hit. | |
float | px_ {0} |
The X momentum. | |
float | py_ {0} |
The Y momentum. | |
float | pz_ {0} |
The Z momentum. | |
float | energy_ {0} |
The total energy. | |
float | x_ {0} |
The X position. | |
float | y_ {0} |
The Y position. | |
float | z_ {0} |
The Z position. | |
float | pathLength_ {0} |
The path length of the hit. | |
int | trackID_ {0} |
The Sim Track ID. | |
int | pdgID_ {0} |
The Sim PDG ID. | |
Represents a simulated tracker hit in the simulation.
Definition at line 24 of file SimTrackerHit.h.
|
virtual |
Class destructor.
Definition at line 7 of file SimTrackerHit.cxx.
References Clear().
void ldmx::SimTrackerHit::Clear | ( | ) |
Reset the SimTrackerHit object.
Definition at line 21 of file SimTrackerHit.cxx.
References edep_, energy_, id_, layerID_, moduleID_, pathLength_, pdgID_, px_, py_, pz_, time_, trackID_, x_, y_, and z_.
Referenced by ~SimTrackerHit().
|
inline |
Get the energy deposited on the hit [MeV].
Definition at line 75 of file SimTrackerHit.h.
References edep_.
|
inline |
Get the energy.
Definition at line 81 of file SimTrackerHit.h.
References energy_.
|
inline |
Get the detector ID of the hit.
Definition at line 50 of file SimTrackerHit.h.
References id_.
|
inline |
Get the geometric layer ID of the hit.
Definition at line 56 of file SimTrackerHit.h.
References layerID_.
Referenced by eventdisplay::DetectorGeometry::getBoundingBox().
|
inline |
Get the module ID associated with a hit.
This is used to uniquely identify a sensor within a layer.
Definition at line 63 of file SimTrackerHit.h.
References moduleID_.
Referenced by eventdisplay::DetectorGeometry::getBoundingBox().
|
inline |
Get the XYZ momentum of the particle at the position at which the hit took place [MeV].
Definition at line 101 of file SimTrackerHit.h.
Referenced by tracking::reco::TruthSeedProcessor::createTruthTrack(), recon::ParticleFlow::produce(), tracking::reco::TruthSeedProcessor::produce(), tracking::reco::TruthSeedProcessor::scoringPlaneHitFilter(), and eventdisplay::Objects::SetSimThresh().
|
inline |
Get the path length between the start and end points of the hit [mm].
Definition at line 94 of file SimTrackerHit.h.
References pathLength_.
|
inline |
Get the Sim particle track ID of the hit.
Definition at line 113 of file SimTrackerHit.h.
References pdgID_.
Referenced by tracking::reco::TruthSeedProcessor::createTruthTrack(), and tracking::reco::TruthSeedProcessor::scoringPlaneHitFilter().
|
inline |
Get the XYZ position of the hit [mm].
Definition at line 69 of file SimTrackerHit.h.
Referenced by tracking::reco::TruthSeedProcessor::createTruthTrack(), eventdisplay::DetectorGeometry::getBoundingBox(), recon::ParticleFlow::produce(), trigger::NtupleWriter::produce(), trigger::PropagationMapWriter::produce(), trigger::TrigElectronProducer::produce(), tracking::reco::TruthSeedProcessor::produce(), and tracking::reco::TruthSeedProcessor::scoringPlaneHitFilter().
|
inline |
Get the global time of the hit [ns].
Definition at line 87 of file SimTrackerHit.h.
References time_.
Referenced by operator<().
|
inline |
Get the Sim particle track ID of the hit.
Definition at line 107 of file SimTrackerHit.h.
References trackID_.
Referenced by tracking::reco::TruthSeedProcessor::createTruthTrack(), tracking::reco::TruthSeedProcessor::produce(), and tracking::reco::TruthSeedProcessor::scoringPlaneHitFilter().
|
inline |
Sort by time of hit.
Definition at line 192 of file SimTrackerHit.h.
References getTime().
void ldmx::SimTrackerHit::Print | ( | ) | const |
|
inline |
Set the energy deposited on the hit [MeV].
edep | The energy deposited on the hit. |
Definition at line 146 of file SimTrackerHit.h.
References edep_.
|
inline |
Set the energy of the hit.
e | The energy of the hit. |
Definition at line 152 of file SimTrackerHit.h.
References energy_.
|
inline |
Set the detector ID of the hit.
id | The detector ID of the hit. |
Definition at line 119 of file SimTrackerHit.h.
References id_.
|
inline |
Set the geometric layer ID of the hit.
layerID | The layer ID of the hit. |
Definition at line 125 of file SimTrackerHit.h.
References layerID_.
|
inline |
Set the module ID associated with a hit.
This is used to uniquely identify a sensor within a layer.
Definition at line 132 of file SimTrackerHit.h.
References moduleID_.
void ldmx::SimTrackerHit::setMomentum | ( | const float | px, |
const float | py, | ||
const float | pz | ||
) |
|
inline |
Set the path length of the hit [mm].
pathLength | The path length of the hit. |
Definition at line 164 of file SimTrackerHit.h.
References pathLength_.
|
inline |
Set the Sim particle track ID of the hit.
Definition at line 187 of file SimTrackerHit.h.
References pdgID_.
void ldmx::SimTrackerHit::setPosition | ( | const float | x, |
const float | y, | ||
const float | z | ||
) |
|
inline |
Set the global time of the hit [ns].
time | The global time of the hit. |
Definition at line 158 of file SimTrackerHit.h.
References time_.
|
inline |
Set the Sim particle track ID of the hit.
Definition at line 181 of file SimTrackerHit.h.
References trackID_.
Referenced by simcore::ScoringPlaneSD::ProcessHits(), and simcore::TrackerSD::ProcessHits().
|
private |
|
private |
The total energy.
Definition at line 238 of file SimTrackerHit.h.
Referenced by Clear(), getEnergy(), and setEnergy().
|
private |
|
private |
The layer ID.
Definition at line 205 of file SimTrackerHit.h.
Referenced by Clear(), getLayerID(), Print(), and setLayerID().
|
private |
The module ID.
Definition at line 208 of file SimTrackerHit.h.
Referenced by Clear(), getModuleID(), Print(), and setModuleID().
|
private |
The path length of the hit.
Definition at line 258 of file SimTrackerHit.h.
Referenced by Clear(), getPathLength(), and setPathLength().
|
private |
The Sim PDG ID.
Definition at line 268 of file SimTrackerHit.h.
Referenced by Clear(), getPdgID(), and setPdgID().
|
private |
The X momentum.
Definition at line 223 of file SimTrackerHit.h.
Referenced by Clear(), getMomentum(), Print(), and setMomentum().
|
private |
The Y momentum.
Definition at line 228 of file SimTrackerHit.h.
Referenced by Clear(), getMomentum(), Print(), and setMomentum().
|
private |
The Z momentum.
Definition at line 233 of file SimTrackerHit.h.
Referenced by Clear(), getMomentum(), Print(), and setMomentum().
|
private |
|
private |
The Sim Track ID.
Definition at line 263 of file SimTrackerHit.h.
Referenced by Clear(), getTrackID(), and setTrackID().
|
private |
The X position.
Definition at line 243 of file SimTrackerHit.h.
Referenced by Clear(), getPosition(), Print(), and setPosition().
|
private |
The Y position.
Definition at line 248 of file SimTrackerHit.h.
Referenced by Clear(), getPosition(), Print(), and setPosition().
|
private |
The Z position.
Definition at line 253 of file SimTrackerHit.h.
Referenced by Clear(), getPosition(), Print(), and setPosition().