![]() |
ATLAS Offline Software
|
Error data. More...
#include <DataError.h>
Public Types | |
enum | ErrorBit { Overflow = 0, Parity = 1, LinkDown = 2, ChannelDisabled = 4, MCMAbsent = 5, Timeout = 6, ASICFull = 7, EventMismatch = 8, BunchMismatch = 9, FIFOCorrupt = 10, PinParity = 11, ParityMerge = 4, ParityPhase0 = 5, ParityPhase1 = 6, ParityPhase2 = 7, ParityPhase3 = 8, GLinkParity = 16, GLinkProtocol = 17, BCNMismatch = 18, FIFOOverflow = 19, ModuleError = 20, GLinkDown = 22, GLinkTimeout = 23, FailingBCN = 24, PPMErrorWord = 32, SubStatusWord = 33 } |
Public Member Functions | |
DataError () | |
DataError (int error) | |
~DataError () | |
void | set (ErrorBit bit, int value=1) |
Set an error bit or data. More... | |
int | get (ErrorBit bit) const |
Return an error bit or data. More... | |
int | get (int bit) const |
Return an error bit or data. More... | |
std::string | bitName (int bit) const |
Return the name of an error bit or data. More... | |
int | error () const |
Return the full error word. More... | |
Private Attributes | |
int | m_error |
Error word. More... | |
Static Private Attributes | |
static const int | s_failingBcnMask = 0x3f |
Mask for Failing BCN. More... | |
static const int | s_ppmErrorMask = 0xff |
Mask for PPM error bits. More... | |
static const int | s_subStatusMask = 0xff |
Mask for error bits from sub-status word. More... | |
static const int | s_subStatusBcn = 22 |
Bit position of failing BCN in sub-status word. More... | |
Error data.
Defines the error data bits unpacked from bytestream subdivided as follows:
Bits 0-2 CP/JEP specific error bits Bits 4-11 PP specific error bits Bits 4-8 CMX specific error bits Bits 16-29 Sub-status word error bits and failing BCN
Other bits are spare. Uses an int for backwards compatibility reasons so probably bit 31 should not be used.
Definition at line 27 of file DataError.h.
Definition at line 31 of file DataError.h.
LVL1::DataError::DataError | ( | ) |
Definition at line 14 of file DataError.cxx.
|
explicit |
Definition at line 18 of file DataError.cxx.
LVL1::DataError::~DataError | ( | ) |
Definition at line 22 of file DataError.cxx.
std::string LVL1::DataError::bitName | ( | int | bit | ) | const |
|
inline |
int LVL1::DataError::get | ( | ErrorBit | bit | ) | const |
int LVL1::DataError::get | ( | int | bit | ) | const |
void LVL1::DataError::set | ( | ErrorBit | bit, |
int | value = 1 |
||
) |
|
private |
Error word.
Definition at line 74 of file DataError.h.
|
staticprivate |
Mask for Failing BCN.
Definition at line 65 of file DataError.h.
|
staticprivate |
Mask for PPM error bits.
Definition at line 67 of file DataError.h.
|
staticprivate |
Bit position of failing BCN in sub-status word.
Definition at line 71 of file DataError.h.
|
staticprivate |
Mask for error bits from sub-status word.
Definition at line 69 of file DataError.h.