|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TRIGT1CALOBYTESTREAM_CMXCPSUBBLOCK_H
6 #define TRIGT1CALOBYTESTREAM_CMXCPSUBBLOCK_H
static const int s_bunchCrossingBits
int localCoord(int slice, int cpm, int tob) const
Return Local coordinate for given cpm and tob.
static const int s_fifoOverflowBits
static const int s_topoChecksumBits
static const uint32_t s_sourceIdMask
void clear()
Clear all data.
unsigned int hitIndex(int slice, int source, int flag) const
static const int s_hitsErrorBits
static const int s_threshWordId
int hlFlag(uint32_t word) const
static const int s_tobsPerModule
unsigned int ovfIndex(int slice, int source) const
std::vector< uint32_t > m_hitsData
Hits and topo data.
static const int s_tobWordId
int isolation(int slice, int cpm, int tob) const
Return isolation for given cpm and tob.
int sourceId(uint32_t word) const
unsigned int presenceMap(int slice, int cpm) const
Return presence map for given CPM.
static const int s_muxPhases
int cpm(uint32_t word) const
void setPresenceMap(int slice, int cpm, unsigned int map)
Store presence map.
Sub-Block class for CMX data post LS1.
static const int s_roiOverflowBits
int tobError(int slice, int cpm, int tob) const
Return error bits for given cpm and tob.
static const int s_topoCountsBits
static const int s_tobOverflowBit
static const int s_hitsBits
static const int s_energyBits
static const int s_tobErrorBit
unsigned int hits(int slice, int source, int flag) const
Return hit/topo counts for given source ID and HL flag.
static const int s_coordBits
static const int s_parityErrorMask
void setHits(int slice, int source, int flag, unsigned int hits, int error)
Store hit counts for given source ID and HL flag.
SourceId
Sources of threshold sums.
void setTob(int slice, int cpm, int chip, int loc, int energy, int isol, int error)
Store TOB (RoI) data for given CPM, chip, local coord.
static const uint32_t s_tobCoordMask
static const uint32_t s_errorMask
static const int s_topoPaddingBits
bool packNeutral()
Pack neutral data.
std::vector< int > m_cpmTobCount
CPM TOB count vector for unpacking.
bool unpackNeutral()
Unpack neutral data.
std::vector< int > m_overflow
RoI overflows for neutral data.
static const int s_presenceBits
std::vector< unsigned int > m_presenceMaps
Presence maps.
int hitsError(int slice, int source, int flag) const
Return hit error for given source ID and HL flag.
bool unpackUncompressed()
Unpack uncompressed data.
unsigned int mapIndex(int slice, int cpm) const
Sub-Block class for CMX-CP data post LS1.
static const uint32_t s_hlFlagMask
void setRoiOverflow(int slice, int source, int overflow)
Store RoI overflow for given source ID.
bool packUncompressed()
Pack uncompressed data.
int roiOverflow(int slice, int source) const
Return RoI overflow for given source ID.
static const int s_modules
int chip(int slice, int cpm, int tob) const
Return chip for given cpm and tob.
int dataWordId(uint32_t word) const
static const int s_tobCpmBit
static const int s_tobEnergyBit
std::vector< uint32_t > m_tobData
TOB data.
static const int s_hlFlagBit
static const uint32_t s_dataWordIdMask
static const int s_glinkPins
static const int s_threshErrorBit
unsigned int tobIndex(int slice, int cpm, int tob) const
static const uint32_t s_tobIsolationMask
static const int s_sourceIdBit
static const int s_tobCoordBit
static const int s_tobIsolationBit
static const uint32_t s_threshMask
static const int s_wordLength
Data word length.
static const int s_dataWordIdBit
static const int s_threshBit
static const int s_tobChipBit
static const int s_paddingBits
int energy(int slice, int cpm, int tob) const
Return energy for given cpm and tob.
static const int s_topoMapBits
static const uint32_t s_tobErrorMask
static const int s_parityErrorBits
static const int s_isolationBits
static const uint32_t s_tobCpmMask
static const uint32_t s_tobChipMask
bool unpack()
Unpack data.
static const uint32_t s_tobEnergyMask