![]() |
Project
|
Container for FastOR time series. More...
#include <FastORTimeSeries.h>
Public Member Functions | |
FastORTimeSeries ()=default | |
Dummy constructor. | |
FastORTimeSeries (int maxsamples, const gsl::span< const uint16_t > timesamples, uint8_t starttime) | |
Construcor. | |
~FastORTimeSeries ()=default | |
Destructor. | |
void | setTimeSamples (const gsl::span< const uint16_t > timesamples, uint8_t starttime) |
uint16_t | calculateL1TimeSum (uint8_t l0time) const |
Calculate L0 timesum (4-integral of the ADC series) with respect to a given L0 time. | |
const gsl::span< const uint16_t > | getADCs () const |
Access raw ADC values (in forward time order) | |
void | clear () |
Clear ADC samples in the time series. | |
Container for FastOR time series.
Time series are encoded in bunches in the raw data, which are usually time-reversed. The FastORTimeSeries handles the time series of all bunches in the readout window, in proper future-direction time order, correcting the time-reversal from the Fake-ALTRO. Consequently the ADC samples are expected in time-reversed format. The function calculateL1TimeSum calculates the timesum of the timeseries as 4-integral with respect to a given L0 time, which is expected at the end of the time integration range.
Definition at line 33 of file FastORTimeSeries.h.
|
default |
Dummy constructor.
|
inline |
Construcor.
maxsamples | Maximum number of time samples |
timesamples | Time-reversed raw ADC samples |
starttime | Start time |
Definition at line 43 of file FastORTimeSeries.h.
|
default |
Destructor.
uint16_t FastORTimeSeries::calculateL1TimeSum | ( | uint8_t | l0time | ) | const |
Calculate L0 timesum (4-integral of the ADC series) with respect to a given L0 time.
l0time | L0 time (end of the time series) |
Definition at line 32 of file FastORTimeSeries.cxx.
void FastORTimeSeries::clear | ( | ) |
Clear ADC samples in the time series.
Definition at line 47 of file FastORTimeSeries.cxx.
|
inline |
Access raw ADC values (in forward time order)
Definition at line 61 of file FastORTimeSeries.h.
|
inline |
Definition at line 52 of file FastORTimeSeries.h.