|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TRIGT1CALOBYTESTREAM_CPMSUBBLOCKV1_H
6 #define TRIGT1CALOBYTESTREAM_CPMSUBBLOCKV1_H
37 int emErr,
int hadErr);
39 void setHits(
int slice,
unsigned int hit0,
unsigned int hit1);
static const int s_linkDownABit
std::vector< uint32_t > m_ttData
Trigger tower data.
static const uint32_t s_ttDataMask
bool unpack()
Unpack data.
static const int s_indicatorBit
std::vector< int > m_chanPresent
Channel present flags vector.
static const int s_pairsPerPin
int index(int slice) const
Return data index appropriate to format.
static const uint32_t s_threshWordId
static const int s_glinkBitsPerSlice
void setCpmHeader(int version, int format, int slice, int crate, int module, int timeslices)
Store CPM header.
std::vector< size_t > vec
int m_channels
Number of Trigger tower channels per module.
unsigned int hits(int slice, int offset) const
Return hit counts with given offset.
unsigned int hits1(int slice) const
Return tau hit counts.
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.
bool packUncompressed()
Pack uncompressed data.
Sub-Block class for CPM data.
static const int s_parityABit
int error(int slice, int channel, int offset) const
Return error for given channel and pin offset.
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 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
L1Calo Sub-Block base class.
static const int s_ttBits
static const uint32_t s_pairPinMask
bool anyTowerData(int channel) const
Return true if there is tower data for given channel.
static const int s_ttDataBBit
static const int s_hitBits
static const int s_wordLength
Data word length.
static const uint32_t s_threshMask
bool unpackUncompressed()
Unpack uncompressed data.
static const int s_linkDownBBit
static const int s_fpgaBit
static const int s_ttDataABit
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.