2#ifndef PFLIB_PACKING_ECALECONTCAPTUREFRAME_H
3#define PFLIB_PACKING_ECALECONTCAPTUREFRAME_H
8#include "pflib/logging/Logging.h"
9#include "pflib/packing/ECONTCaptureHeader.h"
10#include "pflib/packing/Reader.h"
12namespace pflib::packing {
45 static constexpr int WORD_LEN = 6;
46 void from(std::span<uint32_t> data);
56 int tc(
int i_tc)
const;
Each Ecal ECON-T sample has the following struture, assuming.
Definition EcalECONTSample.h:36
std::bitset< 48 > ch_map() const
get the channel map showing which TC were included in readout
Definition EcalECONTSample.cxx:42
int encoded_sum() const
the raw value trasmitted by the ECON-T
Definition EcalECONTSample.cxx:40
int bx() const
bx counter for this sample of STC sums
Definition EcalECONTSample.cxx:36
int sum() const
decode the 5E+3M encoding into a linearized sum value
Definition EcalECONTSample.cxx:38
int tc(int i_tc) const
get TC sum for the input TC index
Definition EcalECONTSample.cxx:44
int encoded_tc(int i_tc) const
get TC encoded sum for the input TC index
logger get(const std::string &name)
Gets a logger with the input name for its channel.
Definition Logging.cxx:24