|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef TRIGT1CALOBYTESTREAM_PPMSUBBLOCKV1_H
6 #define TRIGT1CALOBYTESTREAM_PPMSUBBLOCKV1_H
43 const std::vector<int>& fadc,
44 const std::vector<int>& bcidLut,
45 const std::vector<int>& bcidFadc);
48 std::vector<int>& fadc,
49 std::vector<int>& bcidLut,
50 std::vector<int>& bcidFadc);
118 const std::vector<uint32_t>&
compStats()
const;
static const uint32_t s_bcidFadcMask
void fillPpmError(int chan, int errorWord)
Store an error word corresponding to a data channel.
static const int s_dataBits
void fillPpmPinError(int pin, int errorWord)
Store an error word corresponding to a G-Link pin.
static const uint32_t s_lutMask
static const int s_channelDisabledBit
int ppmPinError(int pin) const
Return the error word for a G-Link pin.
bool packUncompressedData()
Pack uncompressed data.
static const int s_bunchCrossingBits
static const uint32_t s_wordIdVal
std::vector< uint32_t > m_compStats
Vector for compression statistics.
static const int s_asicChannels
bool unpackUncompressedData()
Unpack uncompressed data.
static const int s_timeoutBit
static const int s_glinkPinParityBit
static const int s_asicFullBit
int fadcThreshold() const
int asic(int chan) const
Return the ASIC channel corresponding to a data channel.
int run(int argc, char *argv[])
void setRunNumber(int run)
static const int s_fadcBit
void setCompStats(const std::vector< uint32_t > &stats)
Set compression stats.
bool channelDisabledD() const
constexpr auto lut(Generator &&f)
bool eventMismatch() const
std::vector< uint32_t > m_datamap
Vector for intermediate data.
static const int s_errorBits
static const int s_mcmAbsentBit
void setPedestal(int pedval)
static const int s_channels
static const int s_bunchMismatchBit
void setPpmErrorHeader(int version, int format, int crate, int module, int slicesFadc, int slicesLut)
Store PPM error block header.
static const uint32_t s_bcidLutMask
int ppmError(int chan) const
Return the error word for a data channel.
bool unpackUncompressedErrors()
Unpack uncompressed error data.
static const int s_eventMismatchBit
bool unpackNeutral()
Unpack neutral data.
int pin(int chan) const
Return the G-Link pin corresponding to a data channel.
static const int s_wordLen
const std::vector< uint32_t > & compStats() const
Return reference to compression stats.
static const int s_fpgaCorruptBit
static const int s_bcidFadcBit
bool channelDisabledB() const
void setPpmHeader(int version, int format, int seqno, int crate, int module, int slicesFadc, int slicesLut)
Store PPM header.
Sub-Block class for PPM data.
bool packUncompressedErrors()
Pack uncompressed error data.
static const uint32_t s_errorMask
bool packNeutral()
Pack neutral data.
void clear()
Clear all data.
void setFadcOffset(int offset)
static const int s_lutBit
static const uint32_t s_fadcMask
bool glinkPinParity() const
static bool errorBlock(uint32_t word)
Check if a header word is for an error block.
void setLutOffset(int offset)
L1Calo Sub-Block base class.
void setFadcThreshold(int threshold)
void ppmData(int chan, std::vector< int > &lut, std::vector< int > &fadc, std::vector< int > &bcidLut, std::vector< int > &bcidFadc)
Return unpacked data for given channel.
bool channelDisabled(int chan) const
bool unpack()
Unpack data.
bool errorBit(int pin, int bit) const
Error bit extraction.
static const int s_glinkPins
void fillPpmData(int chan, const std::vector< int > &lut, const std::vector< int > &fadc, const std::vector< int > &bcidLut, const std::vector< int > &bcidFadc)
Store PPM data for later packing.
int channelsPerSubBlock()
static const int s_bcidLutBit
static const int s_errorMarker
std::vector< uint32_t > m_errormap
Vector for intermediate error data.
bool channelDisabledC() const
void setFadcBaseline(int baseline)
bool channelDisabledA() const
bool bunchMismatch() const