ATLAS Offline Software
Loading...
Searching...
No Matches
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
14
15SCT_ByteStreamErrorsTestAlg::SCT_ByteStreamErrorsTestAlg(const std::string& name, ISvcLocator* pSvcLocator) :
16 AthReentrantAlgorithm(name, pSvcLocator) {
17}
18
19//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
30StatusCode 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
48 ATH_MSG_INFO("Calling finalize");
49 return StatusCode::SUCCESS;
50}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_INFO(x)
#define ATH_MSG_ALWAYS(x)
Class to test SCT_ByteStreamErrorsTool (header)
An algorithm that can be simultaneously executed in multiple threads.
This is a "hash" representation of an Identifier.
virtual StatusCode finalize() override
virtual StatusCode initialize() override
SCT_ByteStreamErrorsTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode execute(const EventContext &ctx) const override
ToolHandle< ISCT_ByteStreamErrorsTool > m_bsErrTool
static const std::vector< std::string > ErrorTypeDescription
SCT byte stream error type strings used in SCTErrMonAlg.