|
LDMX Software
|
Full multi-trigger waveform for one silicon strip channel. More...
#include <SiStripWaveform.h>
Public Member Functions | |
| SiStripWaveform (std::vector< short > samples, int16_t pchannel, uint8_t hybrid_id, uint8_t feb_id, uint8_t n_triggers) | |
| void | clear () |
| const std::vector< short > & | getSamples () const |
| int16_t | getPchannel () const |
| uint8_t | getHybridId () const |
| uint8_t | getFebId () const |
| uint8_t | getNTriggers () const |
| short | getSample (uint8_t t, uint8_t s) const |
| Sample at trigger index t (0-based), APV sample s (0-2). | |
| short | peakAmplitude () const |
| Peak amplitude: the maximum (pedestal-subtracted) ADC sample. | |
| uint8_t | peakTrigger () const |
| Trigger index (0-based) of the sample with the maximum ADC value. | |
Protected Member Functions | |
| ClassDef (SiStripWaveform, 3) | |
Protected Attributes | |
| std::vector< short > | samples_ |
| n_triggers * 3 pedestal-subtracted ADC samples | |
| int16_t | pchannel_ {0} |
| physical strip number within hybrid [0, 639] | |
| uint8_t | hybrid_id_ {0} |
| uint8_t | feb_id_ {0} |
| uint8_t | n_triggers_ {0} |
| number of APV triggers assembled | |
Friends | |
| std::ostream & | operator<< (std::ostream &o, const SiStripWaveform &w) |
Full multi-trigger waveform for one silicon strip channel.
Assembled by SiStripWaveformBuilder from the per-trigger pedestal-subtracted RawSiStripHit objects for a single (feb, hybrid, pchannel). Samples are stored in trigger order: [s0_t0, s1_t0, s2_t0, s0_t1, s1_t1, s2_t1, ...], so the total size is n_triggers * 3.
This is the natural input for waveform fitting (APV25 CR-RC pulse shape → hit time with ~2.5 ns resolution) and any per-channel waveform corrections before clustering.
Definition at line 24 of file SiStripWaveform.h.
| ldmx::SiStripWaveform::SiStripWaveform | ( | std::vector< short > | samples, |
| int16_t | pchannel, | ||
| uint8_t | hybrid_id, | ||
| uint8_t | feb_id, | ||
| uint8_t | n_triggers ) |
Definition at line 9 of file SiStripWaveform.cxx.
|
inlinevirtual |
Definition at line 31 of file SiStripWaveform.h.
| void ldmx::SiStripWaveform::clear | ( | ) |
Definition at line 18 of file SiStripWaveform.cxx.
|
inline |
Definition at line 38 of file SiStripWaveform.h.
|
inline |
Definition at line 37 of file SiStripWaveform.h.
|
inline |
Definition at line 39 of file SiStripWaveform.h.
|
inline |
Definition at line 36 of file SiStripWaveform.h.
|
inline |
Sample at trigger index t (0-based), APV sample s (0-2).
Definition at line 42 of file SiStripWaveform.h.
References samples_.
|
inline |
Definition at line 35 of file SiStripWaveform.h.
|
inline |
Peak amplitude: the maximum (pedestal-subtracted) ADC sample.
Convert to a significance downstream by dividing by the per-channel noise from the TrackerPedestals conditions object.
Definition at line 47 of file SiStripWaveform.h.
References samples_.
|
inline |
Trigger index (0-based) of the sample with the maximum ADC value.
Definition at line 53 of file SiStripWaveform.h.
References samples_.
|
friend |
Definition at line 26 of file SiStripWaveform.cxx.
|
protected |
Definition at line 66 of file SiStripWaveform.h.
|
protected |
Definition at line 65 of file SiStripWaveform.h.
|
protected |
|
protected |
physical strip number within hybrid [0, 639]
Definition at line 64 of file SiStripWaveform.h.
|
protected |
n_triggers * 3 pedestal-subtracted ADC samples
Definition at line 63 of file SiStripWaveform.h.
Referenced by getSample(), peakAmplitude(), and peakTrigger().