|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TRIGT1CALOBYTESTREAM_CMXJETSUBBLOCK_H
6 #define TRIGT1CALOBYTESTREAM_CMXJETSUBBLOCK_H
static const uint32_t s_tobCoordMask
unsigned int presenceMap(int slice, int jem) const
Return presence map for given JEM.
static const int s_sourceIdBit
void clear()
Clear all data.
static const int s_hlFlagBit
std::vector< uint32_t > m_tobData
TOB data.
static const uint32_t s_tobEnergySmMask
static const int s_tobCoordBit
int frame(int slice, int jem, int tob) const
Return frame for given jem and tob.
void setTob(int slice, int jem, int frame, int loc, int energyLarge, int energySmall, int error)
Store TOB (RoI) data for given JEM, frame, local coord.
static const int s_threshMainBits
static const int s_presenceBits
static const uint32_t s_tobJemMask
static const int s_roiOverflowBits
int parityBits(int slice, int jem) const
Return parity bits for given JEM.
bool unpack()
Unpack data.
static const int s_threshFwdLBits
static const int s_tobFrameBit
static const int s_topoMapBits
Sub-Block class for CMX data post LS1.
int energyLarge(int slice, int jem, int tob) const
Return energy large window size for given jem and tob.
static const int s_energyLgBits
static const uint32_t s_topoCheckMask
static const int s_tobEnergySmBit
static const int s_topoPaddingBits
static const uint32_t s_sourceIdMask
unsigned int hitIndex(int slice, int source, int flag) const
static const uint32_t s_threshFwdHMask
static const uint32_t s_tobFrameMask
static const int s_threshFwdHBits
static const int s_threshBit
bool unpackUncompressed()
Unpack uncompressed data.
static const int s_energySmBits[8]
unsigned int hits(int slice, int source, int flag) const
Return hit/topo counts for given source ID and HL flag.
int dataWordId(uint32_t word) const
int localCoord(int slice, int jem, int tob) const
Return Local coordinate for given jem and tob.
static const int s_tobEnergyLgBit
static const int s_paddingBits
bool packUncompressed()
Pack uncompressed data.
static const int s_dataWordIdBit
static const uint32_t s_tobErrorMask
static const int s_tobJemBit
unsigned int tobIndex(int slice, int jem, int tob) const
static const int s_threshHlFlagBit
static const int s_wordLength
Data word length.
static const uint32_t s_tobEnergyLgMask
static const int s_tobWordId
int jem(uint32_t word) const
static const uint32_t s_dataWordIdMask
static const int s_muxPhases
std::vector< unsigned int > m_presenceMaps
Presence maps.
std::vector< int > m_parityBits
Parity data for neutral format.
static const int s_topoHlFlagBit
Sub-Block class for CMX-Jet data post LS1.
static const int s_threshWordId
int tobError(int slice, int jem, int tob) const
Return error bit for given jem and tob.
std::vector< int > m_jemTobCount
JEM TOB count vector for unpacking.
static const int s_bunchCrossingBits
static const int s_tobErrorBit
void setPresenceMap(int slice, int jem, unsigned int map)
Store presence map.
static const int s_topoCountsBits
static const int s_topoChecksumBits
void setParityBits(int slice, int jem, int parity)
Store parity bits for neutral format.
unsigned int mapIndex(int slice, int jem) const
bool unpackNeutral()
Unpack neutral data.
static const uint32_t s_threshMainMask
int sourceId(uint32_t word) const
static const uint32_t s_errorMask
static const int s_parityErrorBits
static const int s_glinkPins
static const int s_threshErrorBit
static const int s_coordBits
static const uint32_t s_topoMapMask
int hlFlag(uint32_t word) const
bool packNeutral()
Pack neutral data.
void setHits(int slice, int source, int flag, unsigned int hits, int error)
Store hit counts for given source ID and HL flag.
static const int s_tobsPerModule
static const uint32_t s_threshFwdLMask
static const uint32_t s_topoCountsMask
int hitsError(int slice, int source, int flag) const
Return hit error for given source ID and HL flag.
static const int s_modules
static const int s_fifoOverflowBits
static const uint32_t s_hlFlagMask
int energySmall(int slice, int jem, int tob) const
Return energy small window size for given jem and tob.
std::vector< uint32_t > m_hitsData
Hits and topo data.
unsigned int parIndex(int slice, int jem) const