|
pflib v3.9.0-rc3-11-g2537d8f
Pretty Fine HGCROC Interaction Library
|
Unpack an event packet that includes an extra header inserted by the software. More...
#include <SoftWrappedECONDEventPacket.h>
Public Member Functions | |
| SoftWrappedECONDEventPacket (std::size_t n_links) | |
| provide number of links (eRx) on the ECOND | |
| void | from (std::span< uint32_t > frame) |
| unpack the given data into this structure | |
| Reader & | read (Reader &r) |
| read into this structure from the input Reader | |
Public Attributes | |
| std::array< bool, 1 > | corruption |
| Corruption bits. | |
| int | il1a |
| L1A index for this packet. | |
| int | econ_id |
| ID specifying ECOND we are reading. | |
| bool | is_soi |
| whether this packet is the sample-of-interest | |
| ECONDEventPacket | data |
| actual data packet from ECOND | |
Private Attributes | |
| mutable::pflib::logging::logger | the_log_ {::pflib::logging::get("decoding")} |
| handle to logging source | |
Unpack an event packet that includes an extra header inserted by the software.
This software-inserted-header is written in the read_event for the HcalBackplaneZCU target.
| void pflib::packing::SoftWrappedECONDEventPacket::from | ( | std::span< uint32_t > | frame | ) |
unpack the given data into this structure
The software emulation adds another header before the ECOND packet, which looks like
4b flag | 9b ECON ID | 4b il1a | S | 0 | 8b length
read into this structure from the input Reader
DANGER Without signal trailer words, this assumes that the data stream is word aligned and we aren't starting on the wrong word.
| std::array<bool, 1> pflib::packing::SoftWrappedECONDEventPacket::corruption |
Corruption bits.
| Index | Description |
|---|---|
| 0 | sw header version mismatch |