|
LDMX Software
|
Implementation of a raw digitized hit from a silicon strip detector. More...
#include <RawSiStripHit.h>
Public Member Functions | |
| RawSiStripHit ()=default | |
| Default constructor. | |
| RawSiStripHit (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 | ~RawSiStripHit () |
| Destructor. | |
| void | clear () |
| Clear the vector of samples and set the timestamp to 0. | |
| std::vector< short > | getSamples () const |
| Get the digitized (ADC) samples composing this hit. | |
| int | getLayerID () const |
| Get the sensor layer identifier. | |
| int | getStripID () const |
| Get the readout strip index within the sensor. | |
| long | getTime () const |
| Get the time stamp of this hit. | |
| 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). | |
| bool | operator< (const RawSiStripHit &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 | |
| ClassDef (RawSiStripHit, 3) | |
| 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. | |
| std::vector< short > | samples_ |
| 16 bit ADC samples associated with this hit. | |
| long | time_ {0} |
| The hit time stamp in units of ns. | |
| 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]. | |
Friends | |
| std::ostream & | operator<< (std::ostream &o, const RawSiStripHit &d) |
| Print the string representation of this object. | |
| std::ostream & | operator<< (std::ostream &output, const RawSiStripHit &hit) |
| Overload the stream insertion operator to output a string representation of this RawStripHit. | |
Implementation of a raw digitized hit from a silicon strip detector.
This class is meant to encapsulate the raw data coming from a silicon strip detector prior to any additional processing. Typically, the raw data will contain a header with ID information and timestamp, a tail with error info and multiple 32 bit data samples.
Definition at line 26 of file RawSiStripHit.h.
| ldmx::RawSiStripHit::RawSiStripHit | ( | 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. |
Definition at line 6 of file RawSiStripHit.cxx.
|
inlinevirtual |
Destructor.
Currently, the destructor does nothing.
Definition at line 53 of file RawSiStripHit.h.
| void ldmx::RawSiStripHit::clear | ( | ) |
Clear the vector of samples and set the timestamp to 0.
This class is needed by ROOT when building the dictionary.
Definition at line 19 of file RawSiStripHit.cxx.
References edep_, layer_id_, pdg_id_, samples_, sim_hit_id_, strip_id_, time_, and track_id_.
|
inline |
Get the energy deposited by the parent SimTrackerHit [MeV] (0 if unknown).
Definition at line 110 of file RawSiStripHit.h.
References edep_.
|
inline |
Get the sensor layer identifier.
Definition at line 83 of file RawSiStripHit.h.
References layer_id_.
|
inline |
Get the PDG particle ID of the particle that created this hit (0 if unknown).
Definition at line 104 of file RawSiStripHit.h.
References pdg_id_.
|
inline |
Get the digitized (ADC) samples composing this hit.
This can be a single value or multiple values depending on the readout being used.
| [in] | samples_ | The ADC values composing this hit. For now, the size of a sample is assumed to be 16 bits. |
Definition at line 80 of file RawSiStripHit.h.
References samples_.
|
inline |
Get the detector ID of the originating SimTrackerHit (-1 if unknown).
Definition at line 107 of file RawSiStripHit.h.
References sim_hit_id_.
|
inline |
Get the readout strip index within the sensor.
Definition at line 86 of file RawSiStripHit.h.
References strip_id_.
|
inline |
Get the time stamp of this hit.
This is the time stamp as set by the data aquisition system. This will typically be in units of ns.
Definition at line 96 of file RawSiStripHit.h.
References time_.
Referenced by operator<().
|
inline |
Get the Geant4 track ID of the particle that created this hit (-1 if unknown).
Definition at line 100 of file RawSiStripHit.h.
References track_id_.
|
inline |
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.
| [in] | rhs | The RawStripHit on the right side of the comparison. |
Definition at line 121 of file RawSiStripHit.h.
References getTime().
|
friend |
Print the string representation of this object.
This class is needed by ROOT when building the dictionary.
Definition at line 30 of file RawSiStripHit.cxx.
|
friend |
Overload the stream insertion operator to output a string representation of this RawStripHit.
| [in] | output | The output stream where the string representation will be inserted. |
| [in] | hit | The RawSiStripHit to output. |
This class is needed by ROOT when building the dictionary.
Definition at line 30 of file RawSiStripHit.cxx.
|
protected |
Energy deposited by the parent SimTrackerHit [MeV].
Definition at line 160 of file RawSiStripHit.h.
|
protected |
Sensor layer identifier (from tracking geometry).
Definition at line 141 of file RawSiStripHit.h.
Referenced by clear(), and getLayerID().
|
protected |
PDG particle ID of the particle that created this hit.
Definition at line 156 of file RawSiStripHit.h.
Referenced by clear(), and getPdgID().
|
protected |
16 bit ADC samples associated with this hit.
Definition at line 147 of file RawSiStripHit.h.
Referenced by clear(), and getSamples().
|
protected |
Detector ID of the originating SimTrackerHit.
Definition at line 158 of file RawSiStripHit.h.
Referenced by clear(), and getSimHitID().
|
protected |
Readout strip index within the sensor.
Definition at line 144 of file RawSiStripHit.h.
Referenced by clear(), and getStripID().
|
protected |
|
protected |
Geant4 track ID of the particle that created this hit.
Definition at line 154 of file RawSiStripHit.h.
Referenced by clear(), and getTrackID().