ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
SCT_ConditionsAlgorithms
src
SCT_ByteStreamErrorsTestAlg.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
12
13
#include "
SCT_ByteStreamErrorsTestAlg.h
"
14
15
SCT_ByteStreamErrorsTestAlg::SCT_ByteStreamErrorsTestAlg
(
const
std::string& name, ISvcLocator* pSvcLocator) :
16
AthReentrantAlgorithm
(name, pSvcLocator) {
17
}
18
19
//Initialize
20
StatusCode
SCT_ByteStreamErrorsTestAlg::initialize
() {
21
ATH_MSG_INFO
(
"Calling initialize"
);
22
23
// Retrieve bytestream error tool
24
ATH_CHECK
(
m_bsErrTool
.retrieve());
25
26
return
StatusCode::SUCCESS;
27
}
28
29
//Execute
30
StatusCode
SCT_ByteStreamErrorsTestAlg::execute
(
const
EventContext& ctx)
const
{
31
ATH_MSG_INFO
(
"Calling execute"
);
32
33
ATH_MSG_ALWAYS
(
"------------------------------------------------------------"
);
34
for
(
unsigned
int
iErr{0}; iErr<SCT_ByteStreamErrors::NUM_ERROR_TYPES; iErr++) {
35
ATH_MSG_ALWAYS
(
"BS Error index: "
<< iErr <<
" type "
<<
SCT_ByteStreamErrors::ErrorTypeDescription
[iErr].c_str());
36
const
std::set<IdentifierHash> errorSet =
m_bsErrTool
->getErrorSet(iErr, ctx);
37
for
(
const
IdentifierHash
& hash: errorSet) {
38
ATH_MSG_ALWAYS
(
" Wafer hash : "
<< hash);
39
}
40
ATH_MSG_ALWAYS
(
"------------------------------------------------------------"
);
41
}
42
43
return
StatusCode::SUCCESS;
44
}
45
46
//Finalize
47
StatusCode
SCT_ByteStreamErrorsTestAlg::finalize
() {
48
ATH_MSG_INFO
(
"Calling finalize"
);
49
return
StatusCode::SUCCESS;
50
}
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition
AthMsgStreamMacros.h:31
ATH_MSG_ALWAYS
#define ATH_MSG_ALWAYS(x)
Definition
AthMsgStreamMacros.h:35
SCT_ByteStreamErrorsTestAlg.h
Class to test SCT_ByteStreamErrorsTool (header).
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
SCT_ByteStreamErrorsTestAlg::finalize
virtual StatusCode finalize() override
Definition
SCT_ByteStreamErrorsTestAlg.cxx:47
SCT_ByteStreamErrorsTestAlg::initialize
virtual StatusCode initialize() override
Definition
SCT_ByteStreamErrorsTestAlg.cxx:20
SCT_ByteStreamErrorsTestAlg::SCT_ByteStreamErrorsTestAlg
SCT_ByteStreamErrorsTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
SCT_ByteStreamErrorsTestAlg.cxx:15
SCT_ByteStreamErrorsTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
SCT_ByteStreamErrorsTestAlg.cxx:30
SCT_ByteStreamErrorsTestAlg::m_bsErrTool
ToolHandle< ISCT_ByteStreamErrorsTool > m_bsErrTool
Definition
SCT_ByteStreamErrorsTestAlg.h:38
SCT_ByteStreamErrors::ErrorTypeDescription
static const std::vector< std::string > ErrorTypeDescription
SCT byte stream error type strings used in SCTErrMonAlg.
Definition
SCT_ByteStreamErrors.h:185
Generated on
for ATLAS Offline Software by
1.17.0