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