|
ATLAS Offline Software
|
Go to the documentation of this file.
66 const int slice,
const int crate,
67 const int module,
const int timeslices)
75 const int em,
const int had,
76 const int emErr,
const int hadErr)
82 for (
int pinOffset = 0; pinOffset < 2; ++pinOffset) {
113 const unsigned int hit1)
118 unsigned int hits = hit0;
119 for (
int indicator = 0; indicator < 2; ++indicator) {
281 unsigned int hit = 0;
319 for (
int i = 0;
i < 2; ++
i) {
351 std::vector<uint32_t>::const_iterator
pos;
372 unsigned int hit0 = 0;
373 unsigned int hit1 = 0;
378 for (
int i = 0;
i < 2; ++
i) {
427 const int id =
dataId(word);
434 const int pin = ix/4;
435 const int pair = ix%4;
void setBunchCrossing(int bc)
Set the Bunch Crossing number (neutral format only)
static const int s_linkDownABit
std::vector< uint32_t > m_ttData
Trigger tower data.
static const uint32_t s_ttDataMask
void clear()
Clear all data.
bool unpack()
Unpack data.
void packerNeutral(int pin, uint32_t datum, int nbits)
Pack given neutral data from given pin.
static const int s_indicatorBit
std::vector< int > m_chanPresent
Channel present flags vector.
static const int s_pairsPerPin
void unpackerInit()
Initialise unpacker.
int index(int slice) const
Return data index appropriate to format.
static const uint32_t s_threshWordId
void setCpmHeader(int version, int format, int slice, int crate, int module, int timeslices)
Store CPM header.
static const int s_glinkBitsPerSlice
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 Trigger tower channels per module.
unsigned int hits(int slice, int offset) const
Return hit counts with given offset.
void packerFlush()
Flush the current data word padded with zeros.
unsigned int hits1(int slice) const
Return tau hit counts.
int bunchCrossing() const
Return the Bunch Crossing number (neutral format only)
bool packNeutral()
Pack neutral data.
static const int s_wordIdVal
CPM header word ID.
void resize(std::vector< uint32_t > &vec, int channels)
Resize a data vector according to format.
int emError(int slice, int channel) const
Return Em error for given channel.
std::vector< uint32_t > m_hitData
Hit counts.
static const int s_pairBit
void clear()
Clear all data.
void packer(uint32_t datum, int nbits)
Pack given data into given number of bits.
bool packUncompressed()
Pack uncompressed data.
bool unpackerNeutralParityError(int pin)
Unpack and test G-Link parity bit for given pin.
static const int s_parityABit
int error(int slice, int channel, int offset) const
Return error for given channel and pin offset.
uint32_t unpacker(int nbits)
Unpack given number of bits of data.
static const int s_dataIdBit
void fillTowerData(int slice, int channel, int em, int had, int emErr, int hadErr)
Store trigger tower data.
static const int s_glinkPins
static const int s_ttWordId
static const uint32_t s_dataIdMask
int timeslices() const
Return number of timeslices.
unsigned int hits0(int slice) const
Return e/gamma hit counts.
bool unpackerSuccess() const
Return unpacker success flag.
int dataWords() const
Return number of data words.
bool unpackNeutral()
Unpack neutral data.
int hadError(int slice, int channel) const
Return Had error for given channel.
int dataId(uint32_t word) const
Return data WordID.
static const int s_wordsPerPin
static const int s_ttBits
static const uint32_t s_pairPinMask
static const int s_ttDataBBit
static const int s_hitBits
static const int s_wordLength
Data word length.
static const uint32_t s_threshMask
void setUnpackErrorCode(int code)
Set the unpacking error code.
bool unpackUncompressed()
Unpack uncompressed data.
static const int s_linkDownBBit
static const int s_fpgaBit
static const int s_ttDataABit
uint32_t unpackerNeutral(int pin, int nbits)
Unpack given number of bits of neutral data for given pin.
int hadData(int slice, int channel) const
Return Had data for given channel.
void setHits(int slice, unsigned int hit0, unsigned int hit1)
Store hit counts.
static const int s_errBits
static const int s_parityBBit
static const int s_hitWords
int data(int slice, int channel, int offset) const
Return data for given channel and pin offset.
int emData(int slice, int channel) const
Return Em data for given channel.
void packerNeutralParity(int pin)
Pack current G-Link parity bit for given pin.