pflib v3.9.0-rc3-11-g2537d8f
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
SoftWrappedECONDEventPacket.h
1#pragma once
2
3#include "pflib/packing/ECONDEventPacket.h"
4#include "pflib/packing/Reader.h"
5
6namespace pflib::packing {
7
23 mutable ::pflib::logging::logger the_log_{::pflib::logging::get("decoding")};
24
25 public:
37 int il1a;
41 bool is_soi;
45 void from(std::span<uint32_t> frame);
47 Reader& read(Reader& r);
48};
49
50} // namespace pflib::packing
Single ECON-D event packet.
Definition ECONDEventPacket.h:30
Reading a raw data stream with some underlying backend.
Definition Reader.h:19
Unpack an event packet that includes an extra header inserted by the software.
Definition SoftWrappedECONDEventPacket.h:21
void from(std::span< uint32_t > frame)
unpack the given data into this structure
Definition SoftWrappedECONDEventPacket.cxx:11
SoftWrappedECONDEventPacket(std::size_t n_links)
provide number of links (eRx) on the ECOND
Definition SoftWrappedECONDEventPacket.cxx:8
std::array< bool, 1 > corruption
Corruption bits.
Definition SoftWrappedECONDEventPacket.h:35
ECONDEventPacket data
actual data packet from ECOND
Definition SoftWrappedECONDEventPacket.h:43
int econ_id
ID specifying ECOND we are reading.
Definition SoftWrappedECONDEventPacket.h:39
mutable::pflib::logging::logger the_log_
handle to logging source
Definition SoftWrappedECONDEventPacket.h:23
int il1a
L1A index for this packet.
Definition SoftWrappedECONDEventPacket.h:37
Reader & read(Reader &r)
read into this structure from the input Reader
Definition SoftWrappedECONDEventPacket.cxx:42
bool is_soi
whether this packet is the sample-of-interest
Definition SoftWrappedECONDEventPacket.h:41
logger get(const std::string &name)
Gets a logger with the input name for its channel.
Definition Logging.cxx:24