|
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 (std::vector< short > samples, long time) | |
| 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. | |
| long | getTime () const |
| Get the time stamp of this hit. | |
| 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, 2) | |
| Class declaration needed by the ROOT dictionary. | |
Protected Attributes | |
| 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 &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 | ( | std::vector< short > | samples, |
| long | time ) |
Constructor.
| [in] | samples | The ADC samples composing this hit. For now, the size of a sample is assumed to be 16 bits. |
| [in] | time | The timestamp of this hit as set by the data acquisition system. |
Definition at line 6 of file RawSiStripHit.cxx.
|
inlinevirtual |
Destructor.
Currently, the destructor does nothing.
Definition at line 46 of file RawSiStripHit.h.
| void ldmx::RawSiStripHit::clear | ( | ) |
|
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 73 of file RawSiStripHit.h.
References samples_.
|
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.
| [in] | time_ | The timestamp as set by the data acquisition system. |
Definition at line 85 of file RawSiStripHit.h.
References time_.
Referenced by operator<().
|
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 96 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 14 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 14 of file RawSiStripHit.cxx.
|
protected |
16 bit ADC samples associated with this hit.
Definition at line 116 of file RawSiStripHit.h.
Referenced by clear(), and getSamples().
|
protected |