|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TRIGT1CALOBYTESTREAM_CPMSUBBLOCK_H
6 #define TRIGT1CALOBYTESTREAM_CPMSUBBLOCK_H
37 int emErr,
int hadErr);
39 void setHits(
int slice,
unsigned int hit0,
unsigned int hit1);
std::vector< uint32_t > m_hitData
Hit counts.
int hadData(int slice, int channel) const
Return Had data for given channel.
static const uint32_t s_pairPinMask
bool anyTowerData(int channel) const
Return true if there is tower data for given channel.
bool unpackUncompressed()
Unpack uncompressed data.
static const int s_dataIdBit
static const int s_parityBBit
unsigned int hits(int slice, int offset) const
Return hit counts with given offset.
static const uint32_t s_dataIdMask
int emData(int slice, int channel) const
Return Em data for given channel.
static const int s_ttWordId
static const int s_wordLength
Data word length.
std::vector< size_t > vec
static const int s_parityABit
static const uint32_t s_threshWordId
int index(int slice) const
Return data index appropriate to format.
std::vector< uint32_t > m_ttData
Trigger tower data.
unsigned int hits0(int slice) const
Return e/gamma hit counts.
int hadError(int slice, int channel) const
Return Had error for given channel.
void setHits(int slice, unsigned int hit0, unsigned int hit1)
Store hit counts.
bool unpackNeutral()
Unpack neutral data.
static const int s_hitWords
int timeslices() const
Return number of timeslices.
static const int s_pairBit
int error(int slice, int channel, int offset) const
Return error for given channel and pin offset.
bool packUncompressed()
Pack uncompressed data.
int dataId(uint32_t word) const
Return data WordID.
bool packNeutral()
Pack neutral data.
Sub-Block class for CPM data.
void clear()
Clear all data.
static const int s_wordIdVal
CPM header word ID.
int m_channels
Number of Trigger tower channels per module.
static const int s_errBits
void resize(std::vector< uint32_t > &vec, int channels)
Resize a data vector according to format.
static const int s_pairsPerPin
static const int s_fpgaBit
static const int s_indicatorBit
unsigned int hits1(int slice) const
Return tau hit counts.
static const int s_wordsPerPin
static const int s_ttBits
static const int s_glinkBitsPerSlice
static const uint32_t s_ttDataMask
static const int s_glinkPins
L1Calo Sub-Block base class.
static const int s_hitBits
void fillTowerData(int slice, int channel, int em, int had, int emErr, int hadErr)
Store trigger tower data.
int emError(int slice, int channel) const
Return Em error for given channel.
static const int s_ttDataABit
static const int s_linkDownBBit
std::vector< int > m_chanPresent
Channel present flags vector.
static const int s_ttDataBBit
static const uint32_t s_threshMask
void setCpmHeader(int version, int format, int slice, int crate, int module, int timeslices)
Store CPM header.
int data(int slice, int channel, int offset) const
Return data for given channel and pin offset.
bool unpack()
Unpack data.
static const int s_linkDownABit