pflib v3.9.5-8-gf71a60f
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
pflib::packing::ECONDFormatter Class Reference

Helper class emulating the ECON-D's behavior for constructing an event packet. More...

#include <ECONDFormatter.h>

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

Public Member Functions

 ECONDFormatter (bool disable_zs)
 
void disableZS (bool disable=true)
 
void startEvent (int bx, int l1a, int orbit)
 
void finishEvent ()
 
const std::vector< uint32_t > & getPacket () const
 
void add_elink_packet (int ielink, const std::vector< uint32_t > &src)
 

Private Member Functions

std::vector< uint32_t > format_elink (int ielink, const std::vector< uint32_t > &src)
 
int zs_process (int ielink, int ic, uint32_t word)
 

Private Attributes

std::vector< uint32_t > packet_ {}
 packet currently under construction
 
bool disable_zs_ {true}
 whether zero-suppresion should be disabled or not
 

Detailed Description

Helper class emulating the ECON-D's behavior for constructing an event packet.

Member Function Documentation

◆ zs_process()

int pflib::packing::ECONDFormatter::zs_process ( int ielink,
int ic,
uint32_t word )
private

at this point, we have tctp=0, so we can apply zs algorithms


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