|
ATLAS Offline Software
|
Go to the documentation of this file.
156 const int flag)
const
158 unsigned int hits = 0;
169 const int flag)
const
192 const unsigned int map)
204 const int loc,
const int energy,
const int isol,
225 if (
chip < chipOld) {
240 const unsigned int hits,
const int error)
322 unsigned int ix =
cpm - 1;
340 const int flag)
const
391 const int cpm = pin + 1;
469 std::vector<uint32_t>::const_iterator
pos;
486 int fifoOverflow = 0;
524 for (
int bit = 0; bit <
s_presenceBits; ++bit) ntobs += (map>>bit)&1;
525 int error = parityMerge;
531 const int cpm = pin + 1;
void setBunchCrossing(int bc)
Set the Bunch Crossing number (neutral format only)
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.
Extra patterns decribing particle interation process.
unsigned int hitIndex(int slice, int source, int flag) const
static const int s_hitsErrorBits
void clear()
Clear all data.
static const int s_threshWordId
int hlFlag(uint32_t word) const
static const int s_tobsPerModule
void packerNeutral(int pin, uint32_t datum, int nbits)
Pack given neutral data from given pin.
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
void setGlinkParity(int bit=1)
Set G-Link Parity bit in Sub-status word.
void unpackerInit()
Initialise unpacker.
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.
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
void packerFlush()
Flush the current data word padded with zeros.
int bunchCrossing() const
Return the Bunch Crossing number (neutral format only)
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.
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.
void packer(uint32_t datum, int nbits)
Pack given data into given number of bits.
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.
void setDaqOverflow(int bit=1)
Set DAQ FIFO Overflow bit in Sub-status word.
int hitsError(int slice, int source, int flag) const
Return hit error for given source ID and HL flag.
bool unpackerNeutralParityError(int pin)
Unpack and test G-Link parity bit for given pin.
bool unpackUncompressed()
Unpack uncompressed data.
unsigned int mapIndex(int slice, int cpm) const
uint32_t unpacker(int nbits)
Unpack given number of bits of data.
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.
bool unpackerSuccess() const
Return unpacker success flag.
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
void setUnpackErrorCode(int code)
Set the unpacking error code.
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
uint32_t unpackerNeutral(int pin, int nbits)
Unpack given number of bits of neutral data for given pin.
static const uint32_t s_tobChipMask
bool unpack()
Unpack data.
static const uint32_t s_tobEnergyMask
void packerNeutralParity(int pin)
Pack current G-Link parity bit for given pin.