3#include "pflib/packing/ECONDEventPacket.h"
4#include "pflib/packing/Reader.h"
6namespace pflib::packing {
54 void from(std::span<uint32_t> data);
Unpack an event that has potentially more than one sample collected from a single ECOND.
Definition MultiSampleECONDEventPacket.h:21
int subsys_id
subsystem ID specifying ECOND
Definition MultiSampleECONDEventPacket.h:46
Reader & read(Reader &r)
read into this structure from the input Reader
Definition MultiSampleECONDEventPacket.cxx:90
int run
run number
Definition MultiSampleECONDEventPacket.h:48
int n_links_
number of links connected to the ECOND
Definition MultiSampleECONDEventPacket.h:25
void from(std::span< uint32_t > data)
unpack the given data into this structure
Definition MultiSampleECONDEventPacket.cxx:11
std::vector< ECONDEventPacket > samples
samples from ECOND stored in order of transmission
Definition MultiSampleECONDEventPacket.h:50
mutable::pflib::logging::logger the_log_
handle to logging source
Definition MultiSampleECONDEventPacket.h:23
std::array< bool, 2 > corruption
Corruption bits.
Definition MultiSampleECONDEventPacket.h:36
int bx
bunch counter/number for event
Definition MultiSampleECONDEventPacket.h:40
int contrib_id
contributor ID specifying ECOND
Definition MultiSampleECONDEventPacket.h:44
std::size_t i_soi
index of the sample of interest (SOI)
Definition MultiSampleECONDEventPacket.h:38
int ievent
event counter
Definition MultiSampleECONDEventPacket.h:42
MultiSampleECONDEventPacket(int n_links)
constructor defining how many links are connected to this ECOND
Definition MultiSampleECONDEventPacket.cxx:8
Reading a raw data stream with some underlying backend.
Definition Reader.h:19
logger get(const std::string &name)
Gets a logger with the input name for its channel.
Definition Logging.cxx:24