pflib v3.0.0-rc1-29-g3a901ac
Pretty Fine HGCROC Interaction Library
All Classes Namespaces Files Functions Variables Typedefs Pages
pflib::packing::DAQLinkFrame Struct Reference

A frame readout from a DAQ Link. More...

#include <DAQLinkFrame.h>

Collaboration diagram for pflib::packing::DAQLinkFrame:
[legend]

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ DAQLinkFrame()

pflib::packing::DAQLinkFrame::DAQLinkFrame ( std::span< uint32_t > data)

Construct from a std::span over 32-bit words.

Note
A std::span can be transparently constructed from a std::vector if that is what is available, but it can also be used to simply view a subslice of a larger std::vector.

The documentation for this struct was generated from the following files: