|
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 (uint8_t channel, std::vector< short > samples, long time) | |
| Constructor. | |
| virtual | ~RawSiStripHit ()=default |
| Destructor. | |
| void | clear () override |
| Clear the samples, time stamp and electronics/quality fields. | |
| uint8_t | getChannel () const |
| uint8_t | getApvId () const |
| uint8_t | getHybridId () const |
| uint8_t | getFebId () const |
| uint16_t | getApvTrigger () const |
| uint8_t | getReadError () const |
| uint8_t | getHead () const |
| uint8_t | getTail () const |
| uint8_t | getFilter () const |
| void | setChannel (uint8_t v) |
| void | setApvId (uint8_t v) |
| void | setHybridId (uint8_t v) |
| void | setFebId (uint8_t v) |
| void | setApvTrigger (uint16_t v) |
| void | setReadError (uint8_t v) |
| void | setHead (uint8_t v) |
| void | setTail (uint8_t v) |
| void | setFilter (uint8_t v) |
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 (RawSiStripHit, 4) | |
| 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 | |
| uint8_t | channel_ {0} |
| uint8_t | apv_id_ {0} |
| uint8_t | hybrid_id_ {0} |
| uint8_t | feb_id_ {0} |
| uint16_t | apv_trigger_ {0} |
| uint8_t | read_error_ {0} |
| uint8_t | head_ {0} |
| uint8_t | tail_ {0} |
| uint8_t | filter_ {0} |
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 RawSiStripHit &hit) |
| Overload the stream insertion operator to output a string representation of this RawSiStripHit. | |
Implementation of a raw digitized hit from a silicon strip detector.
This class encapsulates the reco-level (real data) information for a silicon strip hit: in addition to the ADC samples and time stamp held by the SiStripHit base class, it carries the electronics identifiers (channel, APV, hybrid, FEB) and quality/error flags read out of the raw Rogue frame. The truth-level counterpart is SimSiStripHit.
Definition at line 28 of file RawSiStripHit.h.
| ldmx::RawSiStripHit::RawSiStripHit | ( | uint8_t | channel, |
| std::vector< short > | samples, | ||
| long | time ) |
Constructor.
The remaining electronics and quality fields are populated through the dedicated setters.
| [in] | channel | The readout channel of this hit. |
| [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 8 of file RawSiStripHit.cxx.
|
virtualdefault |
Destructor.
Currently, the destructor does nothing.
|
overridevirtual |
Clear the samples, time stamp and electronics/quality fields.
This method is needed by ROOT when building the dictionary.
Implements ldmx::SiStripHit.
Definition at line 12 of file RawSiStripHit.cxx.
References ldmx::SiStripHit::clearBase().
|
inline |
Definition at line 62 of file RawSiStripHit.h.
|
inline |
Definition at line 65 of file RawSiStripHit.h.
|
inline |
Definition at line 61 of file RawSiStripHit.h.
|
inline |
Definition at line 64 of file RawSiStripHit.h.
|
inline |
Definition at line 69 of file RawSiStripHit.h.
|
inline |
Definition at line 67 of file RawSiStripHit.h.
|
inline |
Definition at line 63 of file RawSiStripHit.h.
|
inline |
Definition at line 66 of file RawSiStripHit.h.
|
inline |
Definition at line 68 of file RawSiStripHit.h.
|
inline |
Definition at line 72 of file RawSiStripHit.h.
|
inline |
Definition at line 75 of file RawSiStripHit.h.
|
inline |
Definition at line 71 of file RawSiStripHit.h.
|
inline |
Definition at line 74 of file RawSiStripHit.h.
|
inline |
Definition at line 79 of file RawSiStripHit.h.
|
inline |
Definition at line 77 of file RawSiStripHit.h.
|
inline |
Definition at line 73 of file RawSiStripHit.h.
|
inline |
Definition at line 76 of file RawSiStripHit.h.
|
inline |
Definition at line 78 of file RawSiStripHit.h.
|
friend |
Overload the stream insertion operator to output a string representation of this RawSiStripHit.
| [in] | output | The output stream where the string representation will be inserted. |
| [in] | hit | The RawSiStripHit to output. |
Definition at line 25 of file RawSiStripHit.cxx.
|
protected |
Definition at line 97 of file RawSiStripHit.h.
|
protected |
Definition at line 100 of file RawSiStripHit.h.
|
protected |
Definition at line 96 of file RawSiStripHit.h.
|
protected |
Definition at line 99 of file RawSiStripHit.h.
|
protected |
Definition at line 104 of file RawSiStripHit.h.
|
protected |
Definition at line 102 of file RawSiStripHit.h.
|
protected |
Definition at line 98 of file RawSiStripHit.h.
|
protected |
Definition at line 101 of file RawSiStripHit.h.
|
protected |
Definition at line 103 of file RawSiStripHit.h.