|
pflib v3.15.1-5-ge6391b0
Pretty Fine HGCROC Interaction Library
|
Each Ecal ECON-T sample has the following struture, assuming. More...
#include <EcalECONTSample.h>
Public Member Functions | |
| void | from (std::span< uint32_t > data) |
| int | bx () const |
| bx counter for this sample of STC sums | |
| int | sum () const |
| decode the 5E+3M encoding into a linearized sum value | |
| int | encoded_sum () const |
| the raw value trasmitted by the ECON-T | |
| int | encoded_tc (int i_tc) const |
| get TC encoded sum for the input TC index | |
| int | tc (int i_tc) const |
| get TC sum for the input TC index | |
| std::bitset< 48 > | ch_map () const |
| get the channel map showing which TC were included in readout | |
Static Public Attributes | |
| static constexpr int | WORD_LEN = 6 |
Private Attributes | |
| mutable::pflib::logging::logger | the_log_ {::pflib::logging::get("decoding")} |
| std::array< int, N_TC > | max_tc_ |
| std::bitset< 48 > | tc_ch_map_ |
| int | sum_ |
| int | bx_ |
Static Private Attributes | |
| static constexpr std::size_t | N_TC = 18 |
Friends | |
| std::ostream & | operator<< (std::ostream &o, const EcalECONTSample &self) |
Each Ecal ECON-T sample has the following struture, assuming.
This means the 18 highest TCs are transmitted along with the module sum. The TCs are given in their original 4E+3M encoding while the module sum is encoded with 5E+3M.
eTx 0