Classes | |
class | Emulator |
Pure virtual base class for a ECON-D event emulator implementation. More... | |
struct | EmulatorParameters |
struct | ERxData |
parsed e-rx data More... | |
class | HGCalModuleTreeReader |
class | TrivialEmulator |
A "trivial" ECON-D emulator emulating non-empty ECON-D events. More... | |
Typedefs | |
typedef std::pair< EventId, ERxInput > | ECONDInput |
ECON-D inputs for a given event. More... | |
typedef std::map< EventId, ERxInput > | ECONDInputColl |
collection of ECON-D inputs More... | |
typedef std::vector< bool > | ERxChannelEnable |
list of channels enabled in eRx More... | |
typedef std::pair< uint8_t, uint8_t > | ERxId_t |
chip/half More... | |
typedef std::map< ERxId_t, ERxData > | ERxInput |
eRx data maps More... | |
typedef std::tuple< uint32_t, uint32_t, uint32_t > | EventId |
Event index (L1A/BX/orbit) More... | |
Enumerations | |
enum | ToTStatus { ZeroSuppressed = 0x0, noZeroSuppressed_TOASuppressed = 0x1, invalid = 0x2, AutomaticFull = 0x3 } |
Functions | |
uint32_t | buildIdleWord (uint8_t bufStat, uint8_t err, uint8_t rr, uint32_t progPattern) |
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) |
std::vector< uint32_t > | eRxSubPacketHeader (uint8_t stat, uint8_t ham, bool bitE, uint16_t common_mode0, uint16_t common_mode1, uint64_t channels_map) |
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) |
std::vector< uint32_t > | produceERxData (const ERxChannelEnable &, const ERxData &, bool passZS, bool passZSm1, bool hasToA, bool char_mode) |
typedef std::pair<EventId, ERxInput> hgcal::econd::ECONDInput |
ECON-D inputs for a given event.
Definition at line 32 of file SlinkTypes.h.
typedef std::map<EventId, ERxInput> hgcal::econd::ECONDInputColl |
collection of ECON-D inputs
Definition at line 35 of file SlinkTypes.h.
typedef std::vector<bool> hgcal::econd::ERxChannelEnable |
list of channels enabled in eRx
Definition at line 38 of file SlinkTypes.h.
typedef std::pair<uint8_t, uint8_t> hgcal::econd::ERxId_t |
chip/half
Definition at line 17 of file SlinkTypes.h.
typedef std::map<ERxId_t, ERxData> hgcal::econd::ERxInput |
eRx data maps
Definition at line 29 of file SlinkTypes.h.
typedef std::tuple<uint32_t, uint32_t, uint32_t> hgcal::econd::EventId |
Event index (L1A/BX/orbit)
Definition at line 14 of file SlinkTypes.h.
Enumerator | |
---|---|
ZeroSuppressed | |
noZeroSuppressed_TOASuppressed | |
invalid | |
AutomaticFull |
Definition at line 6 of file HGCalRawDataDefinitions.h.
uint32_t hgcal::econd::buildIdleWord | ( | uint8_t | bufStat, |
uint8_t | err, | ||
uint8_t | rr, | ||
uint32_t | progPattern | ||
) |
builds a trailing idle word
Definition at line 159 of file HGCalRawDataPackingTools.cc.
References submitPVResolutionJobs::err, and findQualityFiles::rr.
Referenced by hgcal::HGCalFrameGenerator::produceECONEvent().
std::vector< uint32_t > hgcal::econd::eRxSubPacketHeader | ( | uint8_t | stat, |
uint8_t | ham, | ||
bool | bitE, | ||
uint16_t | common_mode0, | ||
uint16_t | common_mode1, | ||
const ERxChannelEnable & | channel_enable | ||
) |
returns the words for a new eRx header
Definition at line 80 of file HGCalRawDataPackingTools.cc.
References mps_fire::i.
Referenced by hgcal::HGCalFrameGenerator::generateERxData().
std::vector< uint32_t > hgcal::econd::eRxSubPacketHeader | ( | uint8_t | stat, |
uint8_t | ham, | ||
bool | bitE, | ||
uint16_t | common_mode0, | ||
uint16_t | common_mode1, | ||
uint64_t | channels_map | ||
) |
Definition at line 94 of file HGCalRawDataPackingTools.cc.
References hgcal::CHMAP0_MASK, hgcal::CHMAP0_POS, hgcal::CHMAP32_MASK, hgcal::CHMAP32_POS, hgcal::COMMONMODE0_MASK, hgcal::COMMONMODE0_POS, hgcal::COMMONMODE1_MASK, hgcal::COMMONMODE1_POS, hgcal::ERX_E_POS, hgcal::ERXFORMAT_POS, hgcal::ERXHAM_MASK, hgcal::ERXHAM_POS, hgcal::ERXSTAT_MASK, hgcal::ERXSTAT_POS, and RecoTauValidation_cfi::header.
std::vector< uint32_t > hgcal::econd::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 | ||
) |
builds the two ECON-D header words
Definition at line 124 of file HGCalRawDataPackingTools.cc.
References hgcal::BITE_POS, hgcal::BITM_POS, hgcal::BITP_POS, hgcal::BITS_POS, hgcal::BITT_POS, nano_mu_digi_cff::bx, hgcal::BX_MASK, hgcal::BX_POS, computeCRC8bit(), hgcal::EBO_MASK, hgcal::EBO_POS, hgcal::EHCRC_MASK, hgcal::EHCRC_POS, hgcal::EHHAM_MASK, hgcal::EHHAM_POS, RecoTauValidation_cfi::header, hgcal::HEADER_MASK, hgcal::HEADER_POS, hgcal::HT_MASK, hgcal::HT_POS, hgcal::L1A_MASK, hgcal::L1A_POS, hgcal::ORBIT_MASK, hgcal::ORBIT_POS, jetsAK4_Puppi_cff::payload, hgcal::PAYLOAD_MASK, hgcal::PAYLOAD_POS, findQualityFiles::rr, hgcal::RR_MASK, and hgcal::RR_POS.
Referenced by hgcal::HGCalFrameGenerator::produceECONEvent().
std::vector< uint32_t > hgcal::econd::produceERxData | ( | const ERxChannelEnable & | channel_enable, |
const ERxData & | erx, | ||
bool | passZS, | ||
bool | passZSm1, | ||
bool | hasToA, | ||
bool | char_mode | ||
) |
pack the ROC data to the ECON-D format dependending on:
Definition at line 6 of file HGCalRawDataPackingTools.cc.
References hgcal::econd::ERxData::adc, hgcal::econd::ERxData::adcm, AutomaticFull, data, Exception, mps_fire::i, createfilelist::int, noZeroSuppressed_TOASuppressed, hgcal::econd::ERxData::tctp, hgcal::econd::ERxData::toa, hgcal::econd::ERxData::tot, testProducerWithPsetDescEmpty_cfi::x1, testProducerWithPsetDescEmpty_cfi::x2, and siStripShotFilter_cfi::ZeroSuppressed.
Referenced by hgcal::HGCalFrameGenerator::generateERxData().