|
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 | 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, 4) | |
| The ROOT class definition. | |
Private Attributes | |
| int | id_ {0} |
| The detector ID. | |
| int | layer_id_ {0} |
| The layer ID. | |
| int | module_id_ {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 | path_length_ {0} |
| The path length of the hit. | |
| int | track_id_ {0} |
| The Sim Track ID. | |
| int | pdg_id_ {0} |
| The Sim PDG ID. | |
Friends | |
| std::ostream & | operator<< (std::ostream &o, const SimTrackerHit &d) |
| Print a description of this object. | |
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 19 of file SimTrackerHit.cxx.
References edep_, energy_, id_, layer_id_, module_id_, path_length_, pdg_id_, px_, py_, pz_, time_, track_id_, 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_.
Referenced by ldmx::Measurement::Measurement().
|
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_.
Referenced by ldmx::Measurement::Measurement().
|
inline |
Get the geometric layer ID of the hit.
Definition at line 56 of file SimTrackerHit.h.
References layer_id_.
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 module_id_.
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(), ecal::EcalPnetVetoProcessor::produce(), recon::ParticleFlow::produce(), tracking::reco::TruthSeedProcessor::produce(), and tracking::reco::TruthSeedProcessor::scoringPlaneHitFilter().
|
inline |
Get the path length between the start and end points of the hit [mm].
Definition at line 94 of file SimTrackerHit.h.
References path_length_.
|
inline |
Get the Sim particle track ID of the hit.
Definition at line 113 of file SimTrackerHit.h.
References pdg_id_.
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(), ldmx::Measurement::Measurement(), ecal::EcalPnetVetoProcessor::produce(), recon::ParticleFlow::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 ldmx::Measurement::Measurement(), and operator<().
|
inline |
Get the Sim particle track ID of the hit.
Definition at line 107 of file SimTrackerHit.h.
References track_id_.
Referenced by tracking::reco::TruthSeedProcessor::createTruthTrack(), ldmx::Measurement::Measurement(), 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().
|
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 layer_id_.
|
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 module_id_.
| 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 path_length_.
|
inline |
Set the Sim particle track ID of the hit.
Definition at line 187 of file SimTrackerHit.h.
References pdg_id_.
| 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 track_id_.
Referenced by simcore::ScoringPlaneSD::ProcessHits(), and simcore::TrackerSD::ProcessHits().
|
friend |
Print a description of this object.
Definition at line 9 of file SimTrackerHit.cxx.
|
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(), and setLayerID().
|
private |
The module ID.
Definition at line 208 of file SimTrackerHit.h.
Referenced by clear(), getModuleID(), 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(), and setMomentum().
|
private |
The Y momentum.
Definition at line 228 of file SimTrackerHit.h.
Referenced by clear(), getMomentum(), and setMomentum().
|
private |
The Z momentum.
Definition at line 233 of file SimTrackerHit.h.
Referenced by clear(), getMomentum(), 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(), and setPosition().
|
private |
The Y position.
Definition at line 248 of file SimTrackerHit.h.
Referenced by clear(), getPosition(), and setPosition().
|
private |
The Z position.
Definition at line 253 of file SimTrackerHit.h.
Referenced by clear(), getPosition(), and setPosition().