ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
SCT_ConditionsTools
SCT_ConditionsTools
ISCT_ByteStreamErrorsTool.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
3
/*
4
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
5
*/
6
12
13
#ifndef ISCT_ByteStreamErrorsTool_h
14
#define ISCT_ByteStreamErrorsTool_h
15
16
#include "
InDetConditionsSummaryService/InDetHierarchy.h
"
17
#include "
SCT_ConditionsTools/ISCT_ConditionsTool.h
"
18
#include "
SCT_ConditionsData/SCT_ByteStreamErrors.h
"
19
#include "
InDetByteStreamErrors/IDCInDetBSErrContainer.h
"
20
#include "GaudiKernel/EventContext.h"
21
22
#include <set>
23
24
class
Identifier
;
25
class
IdentifierHash
;
26
31
namespace
SCT_ByteStreamErrors
{
33
inline
IDCInDetBSErrContainer::ErrorCode
makeError
(
ErrorType
errType) {
34
return
IDCInDetBSErrContainer::ErrorCode
{1} << errType;
35
}
36
38
inline
bool
hasError(
IDCInDetBSErrContainer::ErrorCode
errWord,
ErrorType
errType) {
39
return
errWord &
makeError
(errType);
40
}
41
43
inline
void
addError
(
IDCInDetBSErrContainer::ErrorCode
& errWord,
ErrorType
errType) {
44
errWord |=
makeError
(errType);
45
}
46
47
}
48
49
50
class
ISCT_ByteStreamErrorsTool
:
virtual
public
ISCT_ConditionsTool
{
51
52
public
:
53
//@name Tool methods
55
56
virtual
~ISCT_ByteStreamErrorsTool
() =
default
;
57
59
DeclareInterfaceID
(
ISCT_ByteStreamErrorsTool
, 1, 0);
61
62
virtual
std::set<IdentifierHash>
getErrorSet
(
int
errorType,
const
EventContext& ctx)
const
=0;
63
65
virtual
unsigned
int
tempMaskedChips
(
const
Identifier
& moduleId,
const
EventContext& ctx)
const
=0;
67
virtual
unsigned
int
abcdErrorChips
(
const
Identifier
& moduleId,
const
EventContext& ctx)
const
=0;
68
69
private
:
70
71
};
72
73
#endif
// ISCT_ByteStreamErrorsTool_h
IDCInDetBSErrContainer.h
ISCT_ConditionsTool.h
header file for baseclass of SCT conditions tools
InDetHierarchy.h
Header containing the InDetHierarchy enum, to avoid pulling in a class every time it is needed and na...
SCT_ByteStreamErrors.h
Define SCT byte stream errors and utility methods.
IDCInDetBSErrContainer::ErrorCode
uint64_t ErrorCode
Definition
IDCInDetBSErrContainer.h:21
ISCT_ByteStreamErrorsTool
Definition
ISCT_ByteStreamErrorsTool.h:50
ISCT_ByteStreamErrorsTool::~ISCT_ByteStreamErrorsTool
virtual ~ISCT_ByteStreamErrorsTool()=default
ISCT_ByteStreamErrorsTool::tempMaskedChips
virtual unsigned int tempMaskedChips(const Identifier &moduleId, const EventContext &ctx) const =0
Temporary status of chips for a particular module (packed as 1st 12 bits of unsigned int).
ISCT_ByteStreamErrorsTool::abcdErrorChips
virtual unsigned int abcdErrorChips(const Identifier &moduleId, const EventContext &ctx) const =0
Status ABCD errors of chips for a particular module (packed as 1st 12 bits of unsigned int).
ISCT_ByteStreamErrorsTool::getErrorSet
virtual std::set< IdentifierHash > getErrorSet(int errorType, const EventContext &ctx) const =0
ISCT_ByteStreamErrorsTool::DeclareInterfaceID
DeclareInterfaceID(ISCT_ByteStreamErrorsTool, 1, 0)
Creates the InterfaceID and interfaceID() method.
ISCT_ConditionsTool
Base class for SCT conditions tools so they can be used in the summary tool.
Definition
ISCT_ConditionsTool.h:34
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
Identifier
Definition
IdentifierFieldParser.cxx:14
SCT_ByteStreamErrors
Definition
SCT_ByteStreamErrors.h:172
SCT_ByteStreamErrors::ErrorType
ErrorType
SCT byte stream error type enums used in SCT_RodDecoder, SCT_ByteStreamErrorsTool,...
Definition
SCT_ByteStreamErrors.h:178
SCT_ByteStreamErrors::makeError
IDCInDetBSErrContainer::ErrorCode makeError(ErrorType errType)
<
Definition
ISCT_ByteStreamErrorsTool.h:33
SCT_ByteStreamErrors::addError
void addError(IDCInDetBSErrContainer::ErrorCode &errWord, ErrorType errType)
Definition
ISCT_ByteStreamErrorsTool.h:43
Generated on
for ATLAS Offline Software by
1.17.0