|
ATLAS Offline Software
|
Go to the documentation of this file.
171 const int flag)
const
173 unsigned int hits = 0;
192 const int flag)
const
209 const unsigned int map)
221 const int loc,
const int energyLarge,
222 const int energySmall,
const int error)
242 if (
frame < frameOld) {
269 const unsigned int hits,
const int error)
347 unsigned int ix =
jem;
357 unsigned int ix =
jem;
375 const int flag)
const
483 std::vector<uint32_t>::const_iterator
pos;
500 int fifoOverflow = 0;
531 const int error = (parity) ? 1 : 0;
535 if ((map >>
frame) & 1) {
537 energySmVec[tob],
error);
557 errorMain |= overflow;
558 errorFwd |= overflow;
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 setBunchCrossing(int bc)
Set the Bunch Crossing number (neutral format only)
void clear()
Clear all data.
Extra patterns decribing particle interation process.
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.
void clear()
Clear all data.
static const int s_threshMainBits
static const int s_presenceBits
void packerNeutral(int pin, uint32_t datum, int nbits)
Pack given neutral data from given pin.
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
void setGlinkParity(int bit=1)
Set G-Link Parity bit in Sub-status word.
void unpackerInit()
Initialise unpacker.
static const int s_tobFrameBit
static const int s_topoMapBits
int energyLarge(int slice, int jem, int tob) const
Return energy large window size for given jem and tob.
void packerFlush()
Flush the current data word padded with zeros.
static const int s_energyLgBits
int bunchCrossing() const
Return the Bunch Crossing number (neutral format only)
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.
void packer(uint32_t datum, int nbits)
Pack given data into given number of bits.
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.
void setDaqOverflow(int bit=1)
Set DAQ FIFO Overflow bit in Sub-status word.
static const int s_tobEnergyLgBit
static const int s_paddingBits
bool unpackerNeutralParityError(int pin)
Unpack and test G-Link parity bit for given pin.
bool packUncompressed()
Pack uncompressed data.
static const int s_dataWordIdBit
uint32_t unpacker(int nbits)
Unpack given number of bits of data.
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_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.
bool unpackerSuccess() const
Return unpacker success flag.
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
void setUnpackErrorCode(int code)
Set the unpacking error code.
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
uint32_t unpackerNeutral(int pin, int nbits)
Unpack given number of bits of neutral data for given pin.
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
void packerNeutralParity(int pin)
Pack current G-Link parity bit for given pin.