ATLAS Offline Software
Loading...
Searching...
No Matches
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
IDCInDetBSErrContainer.h
IDCInDetBSErrContainer::ErrorCode
uint64_t ErrorCode
Definition
IDCInDetBSErrContainer.h:21
PixelByteStreamErrors
Definition
PixelByteStreamErrors.h:10
PixelByteStreamErrors::addError
void addError(IDCInDetBSErrContainer::ErrorCode &errWord, PixelErrorsEnum errType)
Definition
PixelByteStreamErrors.h:27
PixelByteStreamErrors::addServiceRecords
void addServiceRecords(IDCInDetBSErrContainer::ErrorCode &errWord, uint64_t errorCount)
Definition
PixelByteStreamErrors.h:29
PixelByteStreamErrors::makeError
constexpr IDCInDetBSErrContainer::ErrorCode makeError(PixelErrorsEnum errType)
helper to be used in clients to fetch error information
Definition
PixelByteStreamErrors.h:21
PixelByteStreamErrors::PixelErrorsEnum
PixelErrorsEnum
< Possible errors in pixel data decoding
Definition
PixelByteStreamErrors.h:13
PixelByteStreamErrors::RODDataOVerflow
@ RODDataOVerflow
Definition
PixelByteStreamErrors.h:17
PixelByteStreamErrors::MaskedROB
@ MaskedROB
Definition
PixelByteStreamErrors.h:14
PixelByteStreamErrors::TimeOut
@ TimeOut
Definition
PixelByteStreamErrors.h:13
PixelByteStreamErrors::firstErrType
@ firstErrType
Definition
PixelByteStreamErrors.h:13
PixelByteStreamErrors::FEEoCOverflow
@ FEEoCOverflow
Definition
PixelByteStreamErrors.h:16
PixelByteStreamErrors::Decoding
@ Decoding
Definition
PixelByteStreamErrors.h:14
PixelByteStreamErrors::Preamble
@ Preamble
Definition
PixelByteStreamErrors.h:13
PixelByteStreamErrors::MCCUndefined
@ MCCUndefined
Definition
PixelByteStreamErrors.h:15
PixelByteStreamErrors::MCCLVL1IDEoECheck
@ MCCLVL1IDEoECheck
Definition
PixelByteStreamErrors.h:15
PixelByteStreamErrors::ErrorsNumber
@ ErrorsNumber
Definition
PixelByteStreamErrors.h:18
PixelByteStreamErrors::FEWarning
@ FEWarning
Definition
PixelByteStreamErrors.h:16
PixelByteStreamErrors::MCCLVL1IDCheck
@ MCCLVL1IDCheck
Definition
PixelByteStreamErrors.h:15
PixelByteStreamErrors::lastErrType
@ lastErrType
Definition
PixelByteStreamErrors.h:18
PixelByteStreamErrors::MCCEoEOverflow
@ MCCEoEOverflow
Definition
PixelByteStreamErrors.h:15
PixelByteStreamErrors::Flagged
@ Flagged
Definition
PixelByteStreamErrors.h:14
PixelByteStreamErrors::LVL1ID
@ LVL1ID
Definition
PixelByteStreamErrors.h:13
PixelByteStreamErrors::BadFE
@ BadFE
Definition
PixelByteStreamErrors.h:14
PixelByteStreamErrors::BCID
@ BCID
Definition
PixelByteStreamErrors.h:13
PixelByteStreamErrors::RODTrailerBitError
@ RODTrailerBitError
Definition
PixelByteStreamErrors.h:17
PixelByteStreamErrors::Limit
@ Limit
Definition
PixelByteStreamErrors.h:14
PixelByteStreamErrors::MCCHitOverflow
@ MCCHitOverflow
Definition
PixelByteStreamErrors.h:15
PixelByteStreamErrors::FERegisterParity
@ FERegisterParity
Definition
PixelByteStreamErrors.h:16
PixelByteStreamErrors::FEHitParity
@ FEHitParity
Definition
PixelByteStreamErrors.h:16
PixelByteStreamErrors::FEHammingCode
@ FEHammingCode
Definition
PixelByteStreamErrors.h:16
PixelByteStreamErrors::MCCBCIDEoECheck
@ MCCBCIDEoECheck
Definition
PixelByteStreamErrors.h:15
PixelByteStreamErrors::TruncatedROB
@ TruncatedROB
Definition
PixelByteStreamErrors.h:14
PixelByteStreamErrors::Invalid
@ Invalid
Definition
PixelByteStreamErrors.h:14
PixelByteStreamErrors::LinkMaskedByPPC
@ LinkMaskedByPPC
Definition
PixelByteStreamErrors.h:14
PixelByteStreamErrors::RODHeaderLimit
@ RODHeaderLimit
Definition
PixelByteStreamErrors.h:17
PixelByteStreamErrors::Trailer
@ Trailer
Definition
PixelByteStreamErrors.h:13
Generated on
for ATLAS Offline Software by
1.14.0