pflib v3.15.1-5-ge6391b0
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
pflib::packing::HcalBackplaneECONTPairSample Class Reference

A single sample from a pair of ECON-T on an Hcal Backplane. More...

#include <HcalBackplaneECONTPairSample.h>

Collaboration diagram for pflib::packing::HcalBackplaneECONTPairSample:
[legend]

Public Member Functions

void from (std::span< uint32_t > data)
 parse the input data
 
int bx (int i_econt) const
 bx counter for this sample of STC sums
 
int stc_sum (int i_stc) const
 decode the 5E+4M encoding into a linearized sum value
 
int encoded_stc_sum (int i_stc) const
 the raw value trasmitted by the ECON-T
 
int max_tc (int i_stc) const
 index of the TC within the STC that was the maximum
 

Static Public Attributes

static constexpr int WORD_LEN = 6
 2 ECON-T producing 3 words each
 

Private Attributes

mutable::pflib::logging::logger the_log_ {::pflib::logging::get("decoding")}
 
std::array< int, N_STC > max_tc_
 
std::array< int, N_STC > stc_sums_
 
std::array< int, 2 > bx_
 

Static Private Attributes

static constexpr std::size_t N_STC = 16
 

Friends

std::ostream & operator<< (std::ostream &o, const HcalBackplaneECONTPairSample &self)
 

Detailed Description

A single sample from a pair of ECON-T on an Hcal Backplane.

Each ECON-T sample as the following structure, assuming

  • using STC4 algorithm
  • with the 5M+4E encoding
  • and three eTx enabled

This means there are up to 8 STCs. Each sample is spread across the three eTx.

eTx 0

  • [31:28] = header
  • [27:26] = Max1 (index of highest TC in STC1)
  • [25:24] = Max2 (index of highest TC in STC2)
  • ... continue down
  • [12:11] = Max8 (index of highest TC in STC8)
  • [10:2] = STC1
  • [1:0] = 2 MSBs of STC2 eTx 1
  • [31:25] = 7 LSBs of STC2
  • [25:16] = STC3
  • [15:7] = STC4
  • [6:0] = 7 MSB of STC5 eTx 2
  • [31:30] = 2 LSB of STC5
  • [29:21] = STC6
  • [20:12] = STC7
  • [11:3] = STC8
  • [2:0] = zero padding
Note
The i_stc indices here are the normal STC indices output by the ECON-T, but the "higher" ECON-T (ECON-T2) is shifted by 8 so that they range from 0 to 15.

The documentation for this class was generated from the following files: