pflib v3.0.0-rc1-29-g3a901ac
Pretty Fine HGCROC Interaction Library
All Classes Namespaces Files Functions Variables Typedefs Pages
DAQLinkFrame.h
1#pragma once
2
3#include <span>
4#include <array>
5#include <cstdint>
6
7#include "pflib/packing/Mask.h"
8#include "pflib/packing/Sample.h"
9
10namespace pflib::packing {
11
21 int bx;
23 int event;
25 int orbit;
38
43
47 void from(std::span<uint32_t> data);
48
57 DAQLinkFrame(std::span<uint32_t> data);
58
60 DAQLinkFrame() = default;
61};
62
63}
A frame readout from a DAQ Link.
Definition DAQLinkFrame.h:19
int adc_cm1
adc readout from common mode 1
Definition DAQLinkFrame.h:37
int event
event number for this readout-request
Definition DAQLinkFrame.h:23
bool first_event
flag if this is the first event
Definition DAQLinkFrame.h:33
Sample calib
sample from calibration channel
Definition DAQLinkFrame.h:42
int orbit
orbit id number
Definition DAQLinkFrame.h:25
void from(std::span< uint32_t > data)
Parse into this link frame from a std::span over 32-bit words.
Definition DAQLinkFrame.cxx:11
std::array< Sample, 36 > channels
array of samples from the channels
Definition DAQLinkFrame.h:40
DAQLinkFrame()=default
default constructor that does not do anything:w
bool first_quarter_err
error present in first quarter (ch0-17 and cm)
Definition DAQLinkFrame.h:29
int adc_cm0
adc readout from common mode 0
Definition DAQLinkFrame.h:35
bool counter_err
error present in one of the counters
Definition DAQLinkFrame.h:27
int bx
id number for bunch crossing of this sample
Definition DAQLinkFrame.h:21
bool second_quarter_err
error present in second quarter (calib and ch18-35)
Definition DAQLinkFrame.h:31
A single DAQ 32-bit sample.
Definition Sample.h:16