|
ATLAS Offline Software
|
Go to the documentation of this file.
62 const int slice,
const int crate,
63 const int module,
const int timeslices)
84 const unsigned int ey,
const unsigned int et)
271 std::vector<uint32_t>::const_iterator
pos;
303 hadParity, linkError);
335 const int id =
dataId(word);
JemJetElement jetElement(int slice, int channel) const
Return jet element for given channel.
void setBunchCrossing(int bc)
Set the Bunch Crossing number (neutral format only)
Extra patterns decribing particle interation process.
JEM jet element dataword class.
static const int s_wordLength
Data word length.
bool unpackUncompressed()
Unpack uncompressed data.
static const int s_bunchCrossingBits
void clear()
Clear all data.
static const int s_exEyId
unsigned int ey(int slice) const
Return energy subsum Ey.
void packerNeutral(int pin, uint32_t datum, int nbits)
Pack given neutral data from given pin.
bool unpackNeutral()
Unpack neutral data.
void unpackerInit()
Initialise unpacker.
void clear()
Clear all data.
static const int s_jeWordId
std::vector< size_t > vec
void setHeader(int wordId, int version, int format, int seqno, int crate, int module, int slices2, int slices1)
Store header data.
int m_channels
Number of jet element channels.
static const uint32_t s_exMask
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
std::vector< uint32_t > m_jeData
Jet element data.
static const uint32_t s_sourceIdMask
static const uint32_t s_etMask
void packer(uint32_t datum, int nbits)
Pack given data into given number of bits.
static const int s_glinkBitsPerSlice
std::vector< uint32_t > m_energySubsums
Energy subsum data.
int dataId(uint32_t word) const
bool packNeutral()
Pack neutral data.
unsigned int et(int slice) const
Return energy subsum Et.
bool unpackerNeutralParityError(int pin)
Unpack and test G-Link parity bit for given pin.
uint32_t unpacker(int nbits)
Unpack given number of bits of data.
static const int s_wordIdVal
JEM header word ID.
void setEnergySubsums(int slice, unsigned int ex, unsigned int ey, unsigned int et)
Store energy subsum data.
static const int s_dataIdBit
static const uint32_t s_eyMask
static const int s_jePaddingBits
static const int s_jetElementBits
bool packUncompressed()
Pack uncompressed data.
bool unpackerSuccess() const
Return unpacker success flag.
int dataWords() const
Return number of data words.
unsigned int ex(int slice) const
Return energy subsum Ex.
int m_energyWords
Number of energy data words.
static const int s_energyPaddingBits
int timeslices() const
Return number of timeslices.
void fillJetElement(int slice, const JemJetElement &jetEle)
Store jet element data.
void setUnpackErrorCode(int code)
Set the unpacking error code.
static const int s_pairsPerPin
void setJemHeader(int version, int format, int slice, int crate, int module, int timeslices)
Store JEM header.
void resize(std::vector< uint32_t > &vec, int channels)
int index(int slice, int channels) const
uint32_t unpackerNeutral(int pin, int nbits)
Unpack given number of bits of neutral data for given pin.
bool unpack()
Unpack data.
static const int s_sourceIdBit
int sourceId(uint32_t word) const
static const uint32_t s_energyWordId
void packerNeutralParity(int pin)
Pack current G-Link parity bit for given pin.
static const uint32_t s_dataIdMask