1 #ifndef EventFilter_HGCalRawToDigi_HGCalRawDataPackingTools_h 2 #define EventFilter_HGCalRawToDigi_HGCalRawDataPackingTools_h 15 const ERxChannelEnable&,
const ERxData&,
bool passZS,
bool passZSm1,
bool hasToA,
bool char_mode);
23 uint16_t common_mode0,
24 uint16_t common_mode1,
27 uint8_t
stat, uint8_t ham,
bool bitE, uint16_t common_mode0, uint16_t common_mode1,
uint64_t channels_map);
49 uint32_t
buildIdleWord(uint8_t bufStat, uint8_t
err, uint8_t
rr, uint32_t progPattern);
66 uint32_t event_counter,
67 uint32_t orbit_counter,
68 const std::vector<ECONDPacketStatus>& econd_statuses);
73 uint8_t boe, uint8_t
v,
uint64_t global_event_id, uint32_t content_id, uint32_t fed_id);
79 uint32_t event_length,
93 bool fed_crc_err,
bool slinkrocket_crc_err,
bool source_id_err,
bool sync_lost,
bool fragment_trunc);
std::vector< uint32_t > produceERxData(const ERxChannelEnable &, const ERxData &, bool passZS, bool passZSm1, bool hasToA, bool char_mode)
std::vector< uint32_t > buildCaptureBlockHeader(uint32_t bunch_crossing, uint32_t event_counter, uint32_t orbit_counter, const std::vector< ECONDPacketStatus > &econd_statuses)
std::vector< uint32_t > eRxSubPacketHeader(uint8_t stat, uint8_t ham, bool bitE, uint16_t common_mode0, uint16_t common_mode1, const ERxChannelEnable &channel_enable)
uint32_t buildSlinkContentId(SlinkEmulationFlag, uint8_t l1a_subtype, uint16_t l1a_fragment_cnt)
std::vector< bool > ERxChannelEnable
list of channels enabled in eRx
std::vector< uint32_t > buildSlinkHeader(uint8_t boe, uint8_t v, uint64_t global_event_id, uint32_t content_id, uint32_t fed_id)
uint32_t buildIdleWord(uint8_t bufStat, uint8_t err, uint8_t rr, uint32_t progPattern)
uint16_t buildSlinkRocketStatus(bool fed_crc_err, bool slinkrocket_crc_err, bool source_id_err, bool sync_lost, bool fragment_trunc)
unsigned long long uint64_t
std::vector< uint32_t > buildSlinkTrailer(uint8_t eoe, uint16_t daqcrc, uint32_t event_length, uint16_t bxid, uint32_t orbit_id, uint16_t crc, uint16_t status)
std::vector< uint32_t > eventPacketHeader(uint16_t header, uint16_t payload, bool bitP, bool bitE, uint8_t ht, uint8_t ebo, bool bitM, bool bitT, uint8_t hamming, uint16_t bx, uint16_t l1a, uint8_t orb, bool bitS, uint8_t RR)