ATLAS Offline Software
Loading...
Searching...
No Matches
ISCT_ByteStreamErrorsTool.h
Go to the documentation of this file.
1// -*- C++ -*-
2
3/*
4 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5*/
6
12
13#ifndef ISCT_ByteStreamErrorsTool_h
14#define ISCT_ByteStreamErrorsTool_h
15
20#include "GaudiKernel/EventContext.h"
21
22#include <set>
23
24class Identifier;
25class IdentifierHash;
26
31namespace SCT_ByteStreamErrors {
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
51
52public:
53 //@name Tool methods
55
56 virtual ~ISCT_ByteStreamErrorsTool() = default;
57
61
62 virtual std::set<IdentifierHash> getErrorSet(int errorType) const =0;
63 virtual std::set<IdentifierHash> getErrorSet(int errorType, const EventContext& ctx) const =0;
64
66 virtual unsigned int tempMaskedChips(const Identifier& moduleId) const =0;
67 virtual unsigned int tempMaskedChips(const Identifier& moduleId, const EventContext& ctx) const =0;
69 virtual unsigned int abcdErrorChips(const Identifier& moduleId) const =0;
70 virtual unsigned int abcdErrorChips(const Identifier& moduleId, const EventContext& ctx) const =0;
71
72private:
73
74};
75
76#endif // ISCT_ByteStreamErrorsTool_h
header file for baseclass of SCT conditions tools
Header containing the InDetHierarchy enum, to avoid pulling in a class every time it is needed and na...
Define SCT byte stream errors and utility methods.
virtual ~ISCT_ByteStreamErrorsTool()=default
virtual std::set< IdentifierHash > getErrorSet(int errorType) const =0
virtual unsigned int tempMaskedChips(const Identifier &moduleId, const EventContext &ctx) const =0
virtual unsigned int abcdErrorChips(const Identifier &moduleId, const EventContext &ctx) const =0
virtual std::set< IdentifierHash > getErrorSet(int errorType, const EventContext &ctx) const =0
DeclareInterfaceID(ISCT_ByteStreamErrorsTool, 1, 0)
Creates the InterfaceID and interfaceID() method.
virtual unsigned int tempMaskedChips(const Identifier &moduleId) const =0
Temporary status of chips for a particular module (packed as 1st 12 bits of unsigned int)
virtual unsigned int abcdErrorChips(const Identifier &moduleId) const =0
Status ABCD errors of chips for a particular module (packed as 1st 12 bits of unsigned int)
Base class for SCT conditions tools so they can be used in the summary tool.
This is a "hash" representation of an Identifier.
ErrorType
SCT byte stream error type enums used in SCT_RodDecoder, SCT_ByteStreamErrorsTool,...
IDCInDetBSErrContainer::ErrorCode makeError(ErrorType errType)
<
void addError(IDCInDetBSErrContainer::ErrorCode &errWord, ErrorType errType)