ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_ByteStreamErrors Namespace Reference

Enumerations

enum  ErrorType
 SCT byte stream error type enums used in SCT_RodDecoder, SCT_ByteStreamErrorsTool, SCTErrMonAlg. More...

Functions

template<ErrorType et>
static constexpr uint64_t maskUpTo ()
static constexpr uint64_t ABCDErrorMask ()
static constexpr uint64_t TempMaskedChipsMask ()
ErrorType TempMaskedChipToBit (const int chip)
IDCInDetBSErrContainer::ErrorCode makeError (ErrorType errType)
 <
void addError (IDCInDetBSErrContainer::ErrorCode &errWord, ErrorType errType)

Variables

static const std::vector< std::string > ErrorTypeDescription
 SCT byte stream error type strings used in SCTErrMonAlg.
static const std::vector< ErrorTypeBadErrors
 Bad error enums used in SCT_ByteStreamErrorsTool and SCTErrMonAlg.
static const std::vector< ErrorTypeLinkLevelBadErrors
 Bad error enums in FE-link level used in SCTErrMonAlg.
static const std::vector< ErrorTypeRodLevelBadErrors
 Bad error enums in ROD level used in SCTErrMonAlg.
static const std::vector< ErrorTypeLinkLevelErrors
 Error enums in FE-link level used in SCTErrMonAlg (assigned by SCT_RodDecoder::addSingleError)
static const std::vector< ErrorTypeRodLevelErrors
 Error enums in ROD level used in SCTErrMonAlg (assigned by SCT_RodDecoder::addRODError)

Enumeration Type Documentation

◆ ErrorType

SCT byte stream error type enums used in SCT_RodDecoder, SCT_ByteStreamErrorsTool, SCTErrMonAlg.

Definition at line 178 of file SCT_ByteStreamErrors.h.

178 {
180 };
#define SCT_ERRORTYPELIST(XYZ)
Specifications of the data format and errors is found in [1] http://www-eng.lbl.gov/~jmjoseph/Atlas-S...
#define SCT_DO_ENUM(e)

Function Documentation

◆ ABCDErrorMask()

constexpr uint64_t SCT_ByteStreamErrors::ABCDErrorMask ( )
staticconstexpr

Definition at line 275 of file SCT_ByteStreamErrors.h.

275{ return maskUpTo<static_cast<ErrorType>(ABCDError_Chip5 + 1)>() & ~(maskUpTo<ABCDError_Chip0>()); }
static constexpr uint64_t maskUpTo()

◆ addError()

void SCT_ByteStreamErrors::addError ( IDCInDetBSErrContainer::ErrorCode & errWord,
ErrorType errType )
inline

Definition at line 43 of file ISCT_ByteStreamErrorsTool.h.

43 {
44 errWord |= makeError(errType);
45 }
IDCInDetBSErrContainer::ErrorCode makeError(ErrorType errType)
<

◆ makeError()

IDCInDetBSErrContainer::ErrorCode SCT_ByteStreamErrors::makeError ( ErrorType errType)
inline

<

for cases when error doe snot need to be accumulated

helper to be used in clients to fetch error information

Definition at line 33 of file ISCT_ByteStreamErrorsTool.h.

◆ maskUpTo()

template<ErrorType et>
constexpr uint64_t SCT_ByteStreamErrors::maskUpTo ( )
staticconstexpr

Definition at line 273 of file SCT_ByteStreamErrors.h.

273{ return ( uint64_t(1) << et ) - 1; }
Extra patterns decribing particle interation process.

◆ TempMaskedChipsMask()

constexpr uint64_t SCT_ByteStreamErrors::TempMaskedChipsMask ( )
staticconstexpr

Definition at line 277 of file SCT_ByteStreamErrors.h.

277{ return maskUpTo<static_cast<ErrorType>(TempMaskedChip5 + 1)>() & ~(maskUpTo<TempMaskedChip0>()); }

◆ TempMaskedChipToBit()

ErrorType SCT_ByteStreamErrors::TempMaskedChipToBit ( const int chip)
inline

Definition at line 278 of file SCT_ByteStreamErrors.h.

278 { return std::array<ErrorType, 6>{{
279 TempMaskedChip0,
280 TempMaskedChip1,
281 TempMaskedChip2,
282 TempMaskedChip3,
283 TempMaskedChip4,
284 TempMaskedChip5}}[chip]; }

Variable Documentation

◆ BadErrors

const std::vector<ErrorType> SCT_ByteStreamErrors::BadErrors
static
Initial value:
= {
TimeOutError,
BCIDError,
LVL1IDError,
HeaderTrailerLimitError,
MaskedLink,
TruncatedROD,
ROBFragmentError,
MissingLinkHeaderError,
MaskedROD
}

Bad error enums used in SCT_ByteStreamErrorsTool and SCTErrMonAlg.

Definition at line 193 of file SCT_ByteStreamErrors.h.

193 {
194 TimeOutError,
195 BCIDError,
196 LVL1IDError,
197 HeaderTrailerLimitError,
198 MaskedLink,
199 TruncatedROD,
200 ROBFragmentError,
201 MissingLinkHeaderError,
202 MaskedROD
203 };

◆ ErrorTypeDescription

const std::vector<std::string> SCT_ByteStreamErrors::ErrorTypeDescription
static
Initial value:
= {
}

SCT byte stream error type strings used in SCTErrMonAlg.

Definition at line 185 of file SCT_ByteStreamErrors.h.

185 {
187 };
#define SCT_DO_DESCRIPTION(e)

◆ LinkLevelBadErrors

const std::vector<ErrorType> SCT_ByteStreamErrors::LinkLevelBadErrors
static
Initial value:
= {
TimeOutError,
BCIDError,
LVL1IDError,
HeaderTrailerLimitError,
MaskedLink
}

Bad error enums in FE-link level used in SCTErrMonAlg.

Definition at line 208 of file SCT_ByteStreamErrors.h.

208 {
209 TimeOutError,
210 BCIDError,
211 LVL1IDError,
212 HeaderTrailerLimitError,
213 MaskedLink
214 };

◆ LinkLevelErrors

const std::vector<ErrorType> SCT_ByteStreamErrors::LinkLevelErrors
static
Initial value:
= {
ByteStreamParseError,
TimeOutError,
BCIDError,
LVL1IDError,
PreambleError,
FormatterError,
TrailerError,
TrailerOverflowError,
HeaderTrailerLimitError,
ABCDError,
RawError,
MaskedLink,
ABCDError_Chip0,
ABCDError_Chip1,
ABCDError_Chip2,
ABCDError_Chip3,
ABCDError_Chip4,
ABCDError_Chip5,
ABCDError_Error1,
ABCDError_Error2,
ABCDError_Error4,
TempMaskedChip0,
TempMaskedChip1,
TempMaskedChip2,
TempMaskedChip3,
TempMaskedChip4,
TempMaskedChip5,
ABCDError_Error7
}

Error enums in FE-link level used in SCTErrMonAlg (assigned by SCT_RodDecoder::addSingleError)

Definition at line 231 of file SCT_ByteStreamErrors.h.

231 {
232 ByteStreamParseError,
233 TimeOutError,
234 BCIDError,
235 LVL1IDError,
236 PreambleError,
237 FormatterError,
238 TrailerError,
239 TrailerOverflowError,
240 HeaderTrailerLimitError,
241 ABCDError,
242 RawError,
243 MaskedLink,
244 ABCDError_Chip0,
245 ABCDError_Chip1,
246 ABCDError_Chip2,
247 ABCDError_Chip3,
248 ABCDError_Chip4,
249 ABCDError_Chip5,
250 ABCDError_Error1,
251 ABCDError_Error2,
252 ABCDError_Error4,
253 TempMaskedChip0,
254 TempMaskedChip1,
255 TempMaskedChip2,
256 TempMaskedChip3,
257 TempMaskedChip4,
258 TempMaskedChip5,
259 ABCDError_Error7
260 };

◆ RodLevelBadErrors

const std::vector<ErrorType> SCT_ByteStreamErrors::RodLevelBadErrors
static
Initial value:
= {
TruncatedROD,
ROBFragmentError,
MissingLinkHeaderError,
MaskedROD
}

Bad error enums in ROD level used in SCTErrMonAlg.

Definition at line 219 of file SCT_ByteStreamErrors.h.

219 {
220 TruncatedROD,
221 ROBFragmentError,
222 MissingLinkHeaderError,
223 // We cannot know which FE-link does not have header. We assign this error
224 // to all the FE-links without hit, ABCD error or raw data of the ROD.
225 MaskedROD
226 };

◆ RodLevelErrors

const std::vector<ErrorType> SCT_ByteStreamErrors::RodLevelErrors
static
Initial value:
= {
RODClockError,
TruncatedROD,
ROBFragmentError,
MissingLinkHeaderError,
MaskedROD
}

Error enums in ROD level used in SCTErrMonAlg (assigned by SCT_RodDecoder::addRODError)

Definition at line 265 of file SCT_ByteStreamErrors.h.

265 {
266 RODClockError,
267 TruncatedROD,
268 ROBFragmentError,
269 MissingLinkHeaderError, // We cannot know which FE-link does not have header. We assign this error to all the FE-links of the ROD.
270 MaskedROD
271 };