19void FastORTimeSeries::fillReversed(
const gsl::span<const uint16_t>
samples, uint8_t starttime)
21 if (starttime >= 14) {
24 if (starttime + 1 <
samples.size()) {
27 for (std::size_t isample = 0; isample <
samples.size(); isample++) {
28 mTimeSamples[starttime - isample] =
samples[isample];
35 int firstbin = l0time - 4;
36 for (
int isample = firstbin; isample < firstbin + 4; isample++) {
37 timesum += mTimeSamples[isample];
42void FastORTimeSeries::setSize(
int maxsamples)
44 mTimeSamples.resize(maxsamples);
49 std::fill(mTimeSamples.begin(), mTimeSamples.end(), 0);
uint16_t calculateL1TimeSum(uint8_t l0time) const
Calculate L0 timesum (4-integral of the ADC series) with respect to a given L0 time.
void clear()
Clear ADC samples in the time series.
Handling of error if starttime is to large (>=14). This is most likely caused by a corrupted channel ...