pflib v3.0.0-rc1-29-g3a901ac
Pretty Fine HGCROC Interaction Library
|
A frame readout from a DAQ Link. More...
#include <DAQLinkFrame.h>
Public Member Functions | |
void | from (std::span< uint32_t > data) |
Parse into this link frame from a std::span over 32-bit words. | |
DAQLinkFrame (std::span< uint32_t > data) | |
Construct from a std::span over 32-bit words. | |
DAQLinkFrame ()=default | |
default constructor that does not do anything:w | |
Public Attributes | |
int | bx |
id number for bunch crossing of this sample | |
int | event |
event number for this readout-request | |
int | orbit |
orbit id number | |
bool | counter_err |
error present in one of the counters | |
bool | first_quarter_err |
error present in first quarter (ch0-17 and cm) | |
bool | second_quarter_err |
error present in second quarter (calib and ch18-35) | |
bool | first_event |
flag if this is the first event | |
int | adc_cm0 |
adc readout from common mode 0 | |
int | adc_cm1 |
adc readout from common mode 1 | |
std::array< Sample, 36 > | channels |
array of samples from the channels | |
Sample | calib |
sample from calibration channel | |
A frame readout from a DAQ Link.
The header and common mode words are unpacked into memory while the DAQ and Calibration samples are given to Sample to be unpacked only upon request.
pflib::packing::DAQLinkFrame::DAQLinkFrame | ( | std::span< uint32_t > | data | ) |
Construct from a std::span over 32-bit words.