|
ATLAS Offline Software
|
Go to the documentation of this file.
122 return (parity << 1) + overflow;
131 unsigned int map = 0;
143 const unsigned int ex,
const unsigned int ey,
144 const unsigned int et,
const int exError,
145 const int eyError,
const int etError)
182 const unsigned int ex,
const unsigned int ey,
183 const unsigned int et,
const int exError,
184 const int eyError,
const int etError)
211 if (
energy || overflow || parity) {
227 const SumType sType,
const unsigned int map)
319 for (
int pin = 0; pin <
s_maxJems; ++pin) {
423 std::vector<uint32_t>::const_iterator
pos;
445 for (
int pin = 0; pin <
s_maxJems; ++pin) {
574 const int pos = 3 * jem + eType;
static const uint32_t s_errorMask
void setBunchCrossing(int bc)
Set the Bunch Crossing number (neutral format only)
static const int s_sourceBit
static const uint32_t s_energySumMask
Extra patterns decribing particle interation process.
void setEtHits(int slice, HitsType hType, SumType sType, unsigned int map)
Store hits map for given hits type and sum type.
void clear()
Clear all data.
static const int s_bunchCrossingBits
void packerNeutral(int pin, uint32_t datum, int nbits)
Pack given neutral data from given pin.
static const int s_sumBitsExEy
static const int s_sumTypeBit
static const int s_wordIdBit
std::vector< uint32_t > m_sumsData
Energy subsums data.
void setGlinkParity(int bit=1)
Set G-Link Parity bit in Sub-status word.
bool unpackUncompressed()
Unpack uncompressed data.
void unpackerInit()
Initialise unpacker.
static const int s_jemSumBits
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_sumBitsEtSys
static const int s_sumBitsEtCrate
void clear()
Clear all data.
static const int s_overflowBit
def hType(hist, verbose=False)
void packer(uint32_t datum, int nbits)
Pack given data into given number of bits.
bool unpack()
Unpack data.
static const uint32_t s_energyJemMask
static const int s_etHitMapsBits
void setDaqOverflow(int bit=1)
Set DAQ FIFO Overflow bit in Sub-status word.
static const uint32_t s_energyTypeMask
bool unpackerNeutralParityError(int pin)
Unpack and test G-Link parity bit for given pin.
static const int s_jemPaddingBits
void setSubsums(int slice, int jem, unsigned int ex, unsigned int ey, unsigned int et, int exError, int eyError, int etError)
Store energy subsums and errors for given JEM.
static const uint32_t s_etHitsMask
static const uint32_t s_sourceMask
static const int s_etHitsBit
uint32_t unpacker(int nbits)
Unpack given number of bits of data.
static const int s_wordLength
Data word length.
static const uint32_t s_sumTypeMask
static const int s_maxSums
bool packNeutral()
Pack neutral data.
static const int s_errorBit
bool unpackerSuccess() const
Return unpacker success flag.
static const int s_maxJems
static const int s_jemBit
static const uint32_t s_overflowMask
static const uint32_t s_wordIdMask
static const int s_energyTypeBit
bool unpackNeutral()
Unpack neutral data.
int index(int slice, int pos) const
static const int s_energyTypeJemBit
unsigned int energy(int slice, int jem, EnergyType eType) const
Return energy subsum for given JEM and energy type.
void setUnpackErrorCode(int code)
Set the unpacking error code.
unsigned int hits(int slice, HitsType hType, SumType sType) const
Return hits map for given hits type and sum type.
static const uint32_t s_jemMask
const boost::regex rr(r_r)
uint32_t unpackerNeutral(int pin, int nbits)
Unpack given number of bits of neutral data for given pin.
int error(int slice, int jem, EnergyType eType) const
Return energy subsum error for given JEM and energy type.
static const int s_paddingBits
bool packUncompressed()
Pack uncompressed data.
void packerNeutralParity(int pin)
Pack current G-Link parity bit for given pin.