![]() |
Project
|
ALTRO bunch information. More...
#include <Bunch.h>
Public Member Functions | |
Bunch ()=default | |
Constructor. | |
Bunch (uint8_t length, uint8_t start) | |
Initialize the bunch with start time and bunch length. | |
~Bunch ()=default | |
void | addADC (uint16_t adc) |
Add ADC value to the bunch. | |
void | initFromRange (gsl::span< uint16_t > range) |
Initialize the ADC values in the bunch from a range. | |
const std::vector< uint16_t > & | getADC () const |
Get range of ADC values in the bunch. | |
uint8_t | getBunchLength () const |
Get the length of the bunch (number of time bins) | |
uint8_t | getStartTime () const |
Get the start time bin. | |
uint8_t | getEndTime () const |
Get the end time bin. | |
void | setBunchLength (uint8_t length) |
Set the length of the ALTRO bunch. | |
void | setStartTime (uint8_t start) |
Set the start time bin. | |
ALTRO bunch information.
The bunch contains the ADC values of a given data bunch for a channel in the ALTRO stream. The ADC values are stored in reversed order in time both in the ALTRO stream and in the bunch object.
For iteration one should assume that the end time is 0, however it can also be larger than 0. In this case the first value has to be mapped to the end timebin and the last value to the start timebin, still iterating only over the number of samples.
|
default |
Constructor.
|
inline |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void Bunch::initFromRange | ( | gsl::span< uint16_t > | range | ) |
|
inline |
|
inline |