ATLAS Offline Software
Loading...
Searching...
No Matches
DataError.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4#ifndef TRIGT1CALO_DATAERROR_H
5#define TRIGT1CALO_DATAERROR_H
6
7#include <string>
8
9namespace LVL1 {
10
26
27class DataError {
28
29 public:
30
45
46 DataError();
47 explicit DataError(int error);
48
49 ~DataError();
50
52 void set(ErrorBit bit, int value = 1);
54 int get(ErrorBit bit) const;
56 int get(int bit) const;
58 std::string bitName(int bit) const;
60 int error() const;
61
62 private:
63
65 static const int s_failingBcnMask = 0x3f;
67 static const int s_ppmErrorMask = 0xff;
69 static const int s_subStatusMask = 0xff;
71 static const int s_subStatusBcn = 22;
72
75
76};
77
78inline int DataError::error() const
79{
80 return m_error;
81}
82
83} // end namespace
84
85#endif
static const int s_subStatusMask
Mask for error bits from sub-status word.
Definition DataError.h:69
static const int s_ppmErrorMask
Mask for PPM error bits.
Definition DataError.h:67
static const int s_subStatusBcn
Bit position of failing BCN in sub-status word.
Definition DataError.h:71
static const int s_failingBcnMask
Mask for Failing BCN.
Definition DataError.h:65
std::string bitName(int bit) const
Return the name of an error bit or data.
Definition DataError.cxx:70
int error() const
Return the full error word.
Definition DataError.h:78
int m_error
Error word.
Definition DataError.h:74
void set(ErrorBit bit, int value=1)
Set an error bit or data.
Definition DataError.cxx:28
int get(ErrorBit bit) const
Return an error bit or data.
Definition DataError.cxx:48
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...