|
LDMX Software
|
Truth (Monte Carlo) representation of a digitized silicon strip detector hit. More...
#include <SimSiStripHit.h>
Public Member Functions | |
| SimSiStripHit ()=default | |
| Default constructor. | |
| SimSiStripHit (int layer_id, int strip_id, std::vector< short > samples, long time, int track_id=-1, int pdg_id=0, int sim_hit_id=-1, float edep=0.f) | |
| Constructor. | |
| virtual | ~SimSiStripHit ()=default |
| Destructor. | |
| void | clear () override |
| Clear the samples, time stamp, sensor position and truth fields. | |
| int | getLayerID () const |
| Get the sensor layer identifier. | |
| int | getStripID () const |
| Get the readout strip index within the sensor. | |
| int | getTrackID () const |
| Get the Geant4 track ID of the particle that created this hit (-1 if unknown). | |
| int | getPdgID () const |
| Get the PDG particle ID of the particle that created this hit (0 if unknown). | |
| int | getSimHitID () const |
| Get the detector ID of the originating SimTrackerHit (-1 if unknown). | |
| float | getEdep () const |
| Get the energy deposited by the parent SimTrackerHit [MeV] (0 if unknown). | |
| void | setLayerID (int v) |
| Set the sensor layer identifier. | |
| void | setStripID (int v) |
| Set the readout strip index within the sensor. | |
| void | setTrackID (int v) |
| Set the Geant4 track ID of the particle that created this hit. | |
| void | setPdgID (int v) |
| Set the PDG particle ID of the particle that created this hit. | |
| void | setSimHitID (int v) |
| Set the detector ID of the originating SimTrackerHit. | |
| void | setEdep (float v) |
| Set the energy deposited by the parent SimTrackerHit [MeV]. | |
Public Member Functions inherited from ldmx::SiStripHit | |
| SiStripHit ()=default | |
| Default constructor. | |
| virtual | ~SiStripHit ()=default |
| Destructor. | |
| std::vector< short > | getSamples () const |
| Get the digitized (ADC) samples composing this hit. | |
| long | getTime () const |
| Get the time stamp of this hit. | |
| bool | operator< (const SiStripHit &rhs) const |
| When the less than operator is used for comparison, return true if this hit's time is less than the hit we are comparing against. | |
Protected Member Functions | |
| ClassDefOverride (SimSiStripHit, 1) | |
| Class declaration needed by the ROOT dictionary. | |
Protected Member Functions inherited from ldmx::SiStripHit | |
| SiStripHit (std::vector< short > samples, long time) | |
| Constructor used by derived classes to initialize the shared fields. | |
| void | clearBase () |
| Clear the fields owned by the base class. | |
| ClassDef (SiStripHit, 1) | |
| Class declaration needed by the ROOT dictionary. | |
Protected Attributes | |
| int | layer_id_ {-1} |
| Sensor layer identifier (from tracking geometry). | |
| int | strip_id_ {-1} |
| Readout strip index within the sensor. | |
| int | track_id_ {-1} |
| Geant4 track ID of the particle that created this hit. | |
| int | pdg_id_ {0} |
| PDG particle ID of the particle that created this hit. | |
| int | sim_hit_id_ {-1} |
| Detector ID of the originating SimTrackerHit. | |
| float | edep_ {0.f} |
| Energy deposited by the parent SimTrackerHit [MeV]. | |
Protected Attributes inherited from ldmx::SiStripHit | |
| std::vector< short > | samples_ |
| 16 bit ADC samples associated with this hit. | |
| long | time_ {0} |
| The hit time stamp in units of ns. | |
Friends | |
| std::ostream & | operator<< (std::ostream &output, const SimSiStripHit &hit) |
| Overload the stream insertion operator to output a string representation of this SimSiStripHit. | |
Truth (Monte Carlo) representation of a digitized silicon strip detector hit.
This is the output of the realistic tracker digitization of simulated data. In addition to the ADC samples and time stamp held by the SiStripHit base class, it carries the sensor position (layer/strip) and the MC-truth matching information (originating track, particle, SimTrackerHit and deposited energy). The reco-level (real data) counterpart is RawSiStripHit.
Definition at line 27 of file SimSiStripHit.h.
| ldmx::SimSiStripHit::SimSiStripHit | ( | int | layer_id, |
| int | strip_id, | ||
| std::vector< short > | samples, | ||
| long | time, | ||
| int | track_id = -1, | ||
| int | pdg_id = 0, | ||
| int | sim_hit_id = -1, | ||
| float | edep = 0.f ) |
Constructor.
| [in] | layer_id | Sensor layer identifier (from tracking geometry). |
| [in] | strip_id | Readout strip index within the sensor. |
| [in] | samples | The ADC samples composing this hit (16-bit each). |
| [in] | time | Hit timestamp [ns]. |
| [in] | track_id | Geant4 track ID of the particle that created this hit. |
| [in] | pdg_id | PDG particle ID of the particle that created this hit. |
| [in] | sim_hit_id | Detector ID of the originating SimTrackerHit. |
| [in] | edep | Energy deposited by the parent SimTrackerHit [MeV]. |
Definition at line 8 of file SimSiStripHit.cxx.
|
virtualdefault |
Destructor.
Currently, the destructor does nothing.
|
overridevirtual |
Clear the samples, time stamp, sensor position and truth fields.
This method is needed by ROOT when building the dictionary.
Implements ldmx::SiStripHit.
Definition at line 20 of file SimSiStripHit.cxx.
References ldmx::SiStripHit::clearBase(), edep_, layer_id_, pdg_id_, sim_hit_id_, strip_id_, and track_id_.
|
inline |
Get the energy deposited by the parent SimTrackerHit [MeV] (0 if unknown).
Definition at line 82 of file SimSiStripHit.h.
References edep_.
|
inline |
Get the sensor layer identifier.
Definition at line 65 of file SimSiStripHit.h.
References layer_id_.
|
inline |
Get the PDG particle ID of the particle that created this hit (0 if unknown).
Definition at line 76 of file SimSiStripHit.h.
References pdg_id_.
|
inline |
Get the detector ID of the originating SimTrackerHit (-1 if unknown).
Definition at line 79 of file SimSiStripHit.h.
References sim_hit_id_.
|
inline |
Get the readout strip index within the sensor.
Definition at line 68 of file SimSiStripHit.h.
References strip_id_.
|
inline |
Get the Geant4 track ID of the particle that created this hit (-1 if unknown).
Definition at line 72 of file SimSiStripHit.h.
References track_id_.
|
inline |
Set the energy deposited by the parent SimTrackerHit [MeV].
Definition at line 95 of file SimSiStripHit.h.
References edep_.
|
inline |
Set the sensor layer identifier.
Definition at line 85 of file SimSiStripHit.h.
References layer_id_.
|
inline |
Set the PDG particle ID of the particle that created this hit.
Definition at line 91 of file SimSiStripHit.h.
References pdg_id_.
|
inline |
Set the detector ID of the originating SimTrackerHit.
Definition at line 93 of file SimSiStripHit.h.
References sim_hit_id_.
|
inline |
Set the readout strip index within the sensor.
Definition at line 87 of file SimSiStripHit.h.
References strip_id_.
|
inline |
Set the Geant4 track ID of the particle that created this hit.
Definition at line 89 of file SimSiStripHit.h.
References track_id_.
|
friend |
Overload the stream insertion operator to output a string representation of this SimSiStripHit.
| [in] | output | The output stream where the string representation will be inserted. |
| [in] | hit | The SimSiStripHit to output. |
Definition at line 30 of file SimSiStripHit.cxx.
|
protected |
Energy deposited by the parent SimTrackerHit [MeV].
Definition at line 126 of file SimSiStripHit.h.
|
protected |
Sensor layer identifier (from tracking geometry).
Definition at line 113 of file SimSiStripHit.h.
Referenced by clear(), getLayerID(), and setLayerID().
|
protected |
PDG particle ID of the particle that created this hit.
Definition at line 122 of file SimSiStripHit.h.
Referenced by clear(), getPdgID(), and setPdgID().
|
protected |
Detector ID of the originating SimTrackerHit.
Definition at line 124 of file SimSiStripHit.h.
Referenced by clear(), getSimHitID(), and setSimHitID().
|
protected |
Readout strip index within the sensor.
Definition at line 116 of file SimSiStripHit.h.
Referenced by clear(), getStripID(), and setStripID().
|
protected |
Geant4 track ID of the particle that created this hit.
Definition at line 120 of file SimSiStripHit.h.
Referenced by clear(), getTrackID(), and setTrackID().