|
ATLAS Offline Software
|
Go to the documentation of this file.
72 const int slice,
const int crate,
73 const int module,
const int timeslices)
97 const int sourceId = (jem == 0 || jem == 7 || jem == 8 || jem == 15)
112 const unsigned int ey,
const unsigned int et)
143 unsigned int hits = 0;
309 std::vector<uint32_t>::const_iterator
pos;
342 hadParity, linkError);
378 const int id =
dataId(word);
void setBunchCrossing(int bc)
Set the Bunch Crossing number (neutral format only)
bool packNeutral()
Pack neutral data.
static const int s_sumIndicator
static const uint32_t s_etMask
Extra patterns decribing particle interation process.
JEM jet element dataword class.
void setEnergySubsums(int slice, unsigned int ex, unsigned int ey, unsigned int et)
Store energy subsum data.
static const int s_hitPaddingBits
void clear()
Clear all data.
JemJetElement jetElement(int slice, int channel) const
Return jet element for given channel.
static const uint32_t s_sourceIdMask
void packerNeutral(int pin, uint32_t datum, int nbits)
Pack given neutral data from given pin.
static const int s_mainFwdThreshId
static const int s_threshBit
static const int s_jeWordId
static const int s_jetElementBits
unsigned int jetHits(int slice) const
Return jet hit counts.
bool packUncompressed()
Pack uncompressed data.
int timeslices() const
Return number of timeslices.
void unpackerInit()
Initialise unpacker.
static const int s_bunchCrossingBits
int dataId(uint32_t word) const
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.
static const uint32_t s_dataIdMask
void packerFlush()
Flush the current data word padded with zeros.
int bunchCrossing() const
Return the Bunch Crossing number (neutral format only)
void resize(std::vector< uint32_t > &vec, int channels=1)
static const int s_sourceIdBit
static const int s_wordIdVal
JEM header word ID.
std::vector< uint32_t > m_jetHits
Jet hit counts.
static const uint32_t s_threshWordId
void packer(uint32_t datum, int nbits)
Pack given data into given number of bits.
void setJetHits(int slice, unsigned int hits)
Store jet hit counts.
int index(int slice) const
int m_channels
Number of jet element channels.
bool unpackNeutral()
Unpack neutral data.
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.
std::vector< uint32_t > m_jeData
Jet element data.
static const int s_dataIdBit
static const uint32_t s_eyMask
static const int s_wordLength
Data word length.
bool unpackUncompressed()
Unpack uncompressed data.
bool unpackerSuccess() const
Return unpacker success flag.
int dataWords() const
Return number of data words.
static const int s_jePaddingBits
static const int s_jetHitsBits
unsigned int et(int slice) const
Return energy subsum Et.
static const int s_jetIndicatorBit
int sourceId(uint32_t word) const
void setJemHeader(int version, int format, int slice, int crate, int module, int timeslices)
Store JEM header.
std::vector< uint32_t > m_energySubsums
Energy subsum data.
static const int s_sumIndicatorBit
bool unpack()
Unpack data.
void setUnpackErrorCode(int code)
Set the unpacking error code.
int parityBit(int init, uint32_t datum, int nbits) const
Return the parity bit for given data.
void clear()
Clear all data.
unsigned int ex(int slice) const
Return energy subsum Ex.
static const int s_jetIndicator
uint32_t unpackerNeutral(int pin, int nbits)
Unpack given number of bits of neutral data for given pin.
unsigned int ey(int slice) const
Return energy subsum Ey.
static const uint32_t s_threshMask
static const int s_glinkBitsPerSlice
static const int s_subsumId
static const int s_mainThreshId
static const int s_pairsPerPin
static const int s_energyBits
void fillJetElement(int slice, const JemJetElement &jetEle)
Store jet element data.
void packerNeutralParity(int pin)
Pack current G-Link parity bit for given pin.
static const uint32_t s_exMask