7#include "pflib/logging/Logging.h"
8#include "pflib/packing/DAQLinkFrame.h"
9#include "pflib/packing/Reader.h"
11namespace pflib::packing {
99 void from(std::span<uint32_t> data);
A frame readout from a DAQ Link.
Definition DAQLinkFrame.h:20
Single ECON-D event packet.
Definition ECONDEventPacket.h:30
int adc_cm0(int i_link) const
get ADC readout from common mode 0 of input link
Definition ECONDEventPacket.cxx:350
mutable::pflib::logging::logger the_log_
handle to logging source
Definition ECONDEventPacket.h:32
ECONDEventPacket(std::size_t n_links)
Construct an event packet with the number of eRx "links".
Definition ECONDEventPacket.cxx:229
void to_csv(std::ofstream &f) const
write current packet into a CSV
Definition ECONDEventPacket.cxx:322
std::vector< DAQLinkFrame > links
storage of unpacked link data
Definition ECONDEventPacket.h:70
static const std::string to_csv_header
header string if using to_csv
Definition ECONDEventPacket.h:102
std::array< bool, 4 > corruption
storage of corruption bits
Definition ECONDEventPacket.h:59
std::size_t unpack_link_subpacket(std::span< uint32_t > data, DAQLinkFrame &link, bool passthrough)
Unpack a eRx ("link") subpacket from the ECOND event into a DAQLinkFrame.
Definition ECONDEventPacket.cxx:13
void from(std::span< uint32_t > data)
parse into the packet from the passed data span
Definition ECONDEventPacket.cxx:231
Sample calib(int i_link) const
get calib Sample from a link half
Definition ECONDEventPacket.cxx:362
Sample channel(int i_link, int i_ch) const
get channel Sample from a link
Definition ECONDEventPacket.cxx:358
int adc_cm1(int i_link) const
get ADC readout from common mode 1 of input link
Definition ECONDEventPacket.cxx:354
logger get(const std::string &name)
Gets a logger with the input name for its channel.
Definition Logging.cxx:24
A single DAQ 32-bit sample.
Definition Sample.h:17