ATLAS Offline Software
InnerDetector
InDetConditions
PixelConditionsData
PixelConditionsData
PixelByteStreamErrors.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef PixelConditionsData_PixelByteStreamErrors_h
6
#define PixelConditionsData_PixelByteStreamErrors_h
7
#include "
InDetByteStreamErrors/IDCInDetBSErrContainer.h
"
8
9
// errors can coexist per hashID so we need to reserve separate bit for them
10
namespace
PixelByteStreamErrors
{
11
13
enum
PixelErrorsEnum
{
TimeOut
=0,
firstErrType
=
TimeOut
,
BCID
,
LVL1ID
,
Preamble
,
Trailer
,
14
Flagged
,
BadFE
,
Decoding
,
Invalid
,
LinkMaskedByPPC
,
Limit
,
TruncatedROB
,
MaskedROB
,
15
MCCUndefined
,
MCCLVL1IDEoECheck
,
MCCBCIDEoECheck
,
MCCLVL1IDCheck
,
MCCEoEOverflow
,
MCCHitOverflow
,
16
FEWarning
,
FEHitParity
,
FERegisterParity
,
FEHammingCode
,
FEEoCOverflow
,
17
RODTrailerBitError
,
RODHeaderLimit
,
RODDataOVerflow
,
18
lastErrType
=
RODDataOVerflow
,
ErrorsNumber
=
lastErrType
+1 };
19
21
inline
constexpr
IDCInDetBSErrContainer::ErrorCode
makeError
(
PixelErrorsEnum
errType ) {
return
IDCInDetBSErrContainer::ErrorCode
{1} << errType; }
22
24
inline
bool
hasError(
IDCInDetBSErrContainer::ErrorCode
errWord,
PixelErrorsEnum
errType ) {
return
errWord &
makeError
( errType ); }
25
27
inline
void
addError
(
IDCInDetBSErrContainer::ErrorCode
& errWord,
PixelErrorsEnum
errType ) { errWord |=
makeError
( errType ); }
28
29
inline
void
addServiceRecords
(
IDCInDetBSErrContainer::ErrorCode
& errWord,
uint64_t
errorCount ) { errWord = errorCount; }
30
31
}
32
33
34
#endif //PixelConditionsData_PixelByteStreamErrors_h
PixelByteStreamErrors::FEHammingCode
@ FEHammingCode
Definition:
PixelByteStreamErrors.h:16
PixelByteStreamErrors::firstErrType
@ firstErrType
Definition:
PixelByteStreamErrors.h:13
PixelByteStreamErrors::LinkMaskedByPPC
@ LinkMaskedByPPC
Definition:
PixelByteStreamErrors.h:14
PixelByteStreamErrors::RODDataOVerflow
@ RODDataOVerflow
Definition:
PixelByteStreamErrors.h:17
PixelByteStreamErrors::FEWarning
@ FEWarning
Definition:
PixelByteStreamErrors.h:16
PixelByteStreamErrors::MCCBCIDEoECheck
@ MCCBCIDEoECheck
Definition:
PixelByteStreamErrors.h:15
PixelByteStreamErrors::makeError
constexpr IDCInDetBSErrContainer::ErrorCode makeError(PixelErrorsEnum errType)
helper to be used in clients to fetch error information
Definition:
PixelByteStreamErrors.h:21
PixelByteStreamErrors::Decoding
@ Decoding
Definition:
PixelByteStreamErrors.h:14
PixelByteStreamErrors::PixelErrorsEnum
PixelErrorsEnum
< Possible errors in pixel data decoding
Definition:
PixelByteStreamErrors.h:13
PixelByteStreamErrors::TimeOut
@ TimeOut
Definition:
PixelByteStreamErrors.h:13
PixelByteStreamErrors::RODTrailerBitError
@ RODTrailerBitError
Definition:
PixelByteStreamErrors.h:17
PixelByteStreamErrors::BCID
@ BCID
Definition:
PixelByteStreamErrors.h:13
PixelByteStreamErrors::RODHeaderLimit
@ RODHeaderLimit
Definition:
PixelByteStreamErrors.h:17
PixelByteStreamErrors::Flagged
@ Flagged
Definition:
PixelByteStreamErrors.h:14
PixelByteStreamErrors::lastErrType
@ lastErrType
Definition:
PixelByteStreamErrors.h:18
PixelByteStreamErrors::FEEoCOverflow
@ FEEoCOverflow
Definition:
PixelByteStreamErrors.h:16
PixelByteStreamErrors::Preamble
@ Preamble
Definition:
PixelByteStreamErrors.h:13
PixelByteStreamErrors::Invalid
@ Invalid
Definition:
PixelByteStreamErrors.h:14
PixelByteStreamErrors::MCCLVL1IDEoECheck
@ MCCLVL1IDEoECheck
Definition:
PixelByteStreamErrors.h:15
PixelByteStreamErrors::ErrorsNumber
@ ErrorsNumber
Definition:
PixelByteStreamErrors.h:18
xAOD::uint64_t
uint64_t
Definition:
EventInfo_v1.cxx:123
IDCInDetBSErrContainer::ErrorCode
uint64_t ErrorCode
Definition:
IDCInDetBSErrContainer.h:21
PixelByteStreamErrors::MaskedROB
@ MaskedROB
Definition:
PixelByteStreamErrors.h:14
PixelByteStreamErrors::MCCHitOverflow
@ MCCHitOverflow
Definition:
PixelByteStreamErrors.h:15
PixelByteStreamErrors::MCCLVL1IDCheck
@ MCCLVL1IDCheck
Definition:
PixelByteStreamErrors.h:15
PixelByteStreamErrors::addServiceRecords
void addServiceRecords(IDCInDetBSErrContainer::ErrorCode &errWord, uint64_t errorCount)
Definition:
PixelByteStreamErrors.h:29
PixelByteStreamErrors::MCCEoEOverflow
@ MCCEoEOverflow
Definition:
PixelByteStreamErrors.h:15
PixelByteStreamErrors::addError
void addError(IDCInDetBSErrContainer::ErrorCode &errWord, PixelErrorsEnum errType)
Definition:
PixelByteStreamErrors.h:27
PixelByteStreamErrors::FEHitParity
@ FEHitParity
Definition:
PixelByteStreamErrors.h:16
IDCInDetBSErrContainer.h
PixelByteStreamErrors
Definition:
PixelByteStreamErrors.h:10
PixelByteStreamErrors::FERegisterParity
@ FERegisterParity
Definition:
PixelByteStreamErrors.h:16
PixelByteStreamErrors::BadFE
@ BadFE
Definition:
PixelByteStreamErrors.h:14
PixelByteStreamErrors::MCCUndefined
@ MCCUndefined
Definition:
PixelByteStreamErrors.h:15
PixelByteStreamErrors::Limit
@ Limit
Definition:
PixelByteStreamErrors.h:14
PixelByteStreamErrors::TruncatedROB
@ TruncatedROB
Definition:
PixelByteStreamErrors.h:14
PixelByteStreamErrors::Trailer
@ Trailer
Definition:
PixelByteStreamErrors.h:13
PixelByteStreamErrors::LVL1ID
@ LVL1ID
Definition:
PixelByteStreamErrors.h:13
Generated on Sun Dec 22 2024 21:16:18 for ATLAS Offline Software by
1.8.18