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