Enumerations | |
enum | ECONDPacketStatus { Normal = 0x0, PayloadCRCError = 0x1, EventIDMismatch = 0x2, EBTimeout = 0x4, BCIDOrbitIDMismatch = 0x5, MainBufferOverflow = 0x6, InactiveECOND = 0x7 } |
enum | SlinkEmulationFlag { Subsystem = 0, SlinkRocketSenderCore = 1, DTH = 2 } |
Functions | |
std::vector< uint32_t > | buildCaptureBlockHeader (uint32_t bunch_crossing, uint32_t event_counter, uint32_t orbit_counter, const std::vector< ECONDPacketStatus > &econd_statuses) |
uint32_t | buildSlinkContentId (SlinkEmulationFlag, uint8_t l1a_subtype, uint16_t l1a_fragment_cnt) |
std::vector< uint32_t > | buildSlinkHeader (uint8_t boe, uint8_t v, uint64_t global_event_id, uint32_t content_id, uint32_t fed_id) |
uint16_t | buildSlinkRocketStatus (bool fed_crc_err, bool slinkrocket_crc_err, bool source_id_err, bool sync_lost, bool fragment_trunc) |
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) |
Enumerator | |
---|---|
Normal | |
PayloadCRCError | |
EventIDMismatch | |
EBTimeout | |
BCIDOrbitIDMismatch | |
MainBufferOverflow | |
InactiveECOND |
Definition at line 53 of file HGCalRawDataPackingTools.h.
Enumerator | |
---|---|
Subsystem | |
SlinkRocketSenderCore | |
DTH |
Definition at line 85 of file HGCalRawDataPackingTools.h.
std::vector< uint32_t > hgcal::backend::buildCaptureBlockHeader | ( | uint32_t | bunch_crossing, |
uint32_t | event_counter, | ||
uint32_t | orbit_counter, | ||
const std::vector< ECONDPacketStatus > & | econd_statuses | ||
) |
builds the capture block header (see page 16 of "HGCAL BE DAQ firmware description")
Definition at line 164 of file HGCalRawDataPackingTools.cc.
References hgcal::CAPTUREBLOCK_BC_MASK, hgcal::CAPTUREBLOCK_BC_POS, hgcal::CAPTUREBLOCK_EC_MASK, hgcal::CAPTUREBLOCK_EC_POS, hgcal::CAPTUREBLOCK_OC_MASK, hgcal::CAPTUREBLOCK_OC_POS, RecoTauValidation_cfi::header, mps_fire::i, and testProducerWithPsetDescEmpty_cfi::x1.
Referenced by hgcal::HGCalFrameGenerator::produceCaptureBlockEvent().
uint32_t hgcal::backend::buildSlinkContentId | ( | SlinkEmulationFlag | e, |
uint8_t | l1a_subtype, | ||
uint16_t | l1a_fragment_cnt | ||
) |
builds the slink rocket event data content ID
Definition at line 219 of file HGCalRawDataPackingTools.cc.
References MillePedeFileConverter_cfg::e.
Referenced by hgcal::HGCalFrameGenerator::produceSlinkEvent().
std::vector< uint32_t > hgcal::backend::buildSlinkHeader | ( | uint8_t | boe, |
uint8_t | v, | ||
uint64_t | global_event_id, | ||
uint32_t | content_id, | ||
uint32_t | fed_id | ||
) |
builds the slink frame header (128 bits header = 4 words)
Definition at line 183 of file HGCalRawDataPackingTools.cc.
References RecoTauValidation_cfi::header, hgcal::SLINK_BOE_MASK, hgcal::SLINK_BOE_POS, hgcal::SLINK_CONTENTID_MASK, hgcal::SLINK_CONTENTID_POS, hgcal::SLINK_GLOBAL_EVENTID_LSB_MASK, hgcal::SLINK_GLOBAL_EVENTID_MSB_MASK, hgcal::SLINK_GLOBAL_EVENTID_MSB_POS, hgcal::SLINK_SOURCEID_MASK, hgcal::SLINK_SOURCEID_POS, hgcal::SLINK_V_MASK, hgcal::SLINK_V_POS, and findQualityFiles::v.
Referenced by hgcal::HGCalFrameGenerator::produceSlinkEvent().
uint16_t hgcal::backend::buildSlinkRocketStatus | ( | bool | fed_crc_err, |
bool | slinkrocket_crc_err, | ||
bool | source_id_err, | ||
bool | sync_lost, | ||
bool | fragment_trunc | ||
) |
builds the SlinkRocket sender core status field
Definition at line 223 of file HGCalRawDataPackingTools.cc.
References testProducerWithPsetDescEmpty_cfi::x1.
Referenced by hgcal::HGCalFrameGenerator::produceSlinkEvent().
std::vector< uint32_t > hgcal::backend::buildSlinkTrailer | ( | uint8_t | eoe, |
uint16_t | daqcrc, | ||
uint32_t | event_length, | ||
uint16_t | bxid, | ||
uint32_t | orbit_id, | ||
uint16_t | crc, | ||
uint16_t | status | ||
) |
builds the slink frame trailer (128 bits trailer = 4 words)
Definition at line 198 of file HGCalRawDataPackingTools.cc.
References hgcal::SLINK_BXID_MASK, hgcal::SLINK_BXID_POS, hgcal::SLINK_CRC_MASK, hgcal::SLINK_CRC_POS, hgcal::SLINK_DAQCRC_MASK, hgcal::SLINK_DAQCRC_POS, hgcal::SLINK_EOE_MASK, hgcal::SLINK_EOE_POS, hgcal::SLINK_EVLENGTH_MASK, hgcal::SLINK_EVLENGTH_POS, hgcal::SLINK_ORBID_MASK, hgcal::SLINK_ORBID_POS, hgcal::SLINK_STATUS_MASK, hgcal::SLINK_STATUS_POS, and mps_update::status.
Referenced by hgcal::HGCalFrameGenerator::produceSlinkEvent().