ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_RODVetoTestAlg.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
13
14#include "SCT_RODVetoTestAlg.h"
15
16// Athena include
18
20 ISvcLocator* pSvcLocator) :
21 AthReentrantAlgorithm( name, pSvcLocator ) {
22 //nop
23}
24
25//Initialize
26StatusCode
28 ATH_MSG_INFO("Calling initialize");
29 ATH_CHECK(m_pRODVetoTool.retrieve());
30 return StatusCode::SUCCESS;
31}
32
33//Execute
34StatusCode
35SCT_RODVetoTestAlg::execute(const EventContext& ctx) const {
36 //This method is only used to test the summary service, and only used within this package,
37 // so the INFO level messages have no impact on performance of these services when used by clients
38 ATH_MSG_INFO("Calling execute");
39 for (unsigned int hash{0}; hash<8176; hash+=2) {
40 bool result{m_pRODVetoTool->isGood(IdentifierHash{hash}, ctx)};//invented, no idea what this is
41 ATH_MSG_INFO("Call to module in ROD : Module (hash=" << hash << ") is " << (result?"good":"bad"));
42 }
43
44 return StatusCode::SUCCESS;
45}
46
47
48//Finalize
49StatusCode
51 ATH_MSG_INFO("Calling finalize");
52 return StatusCode::SUCCESS;
53}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_INFO(x)
Header file for the SCT_RODVetoTestAlg class in package SCT_ConditionsAlgorithms.
An algorithm that can be simultaneously executed in multiple threads.
This is a "hash" representation of an Identifier.
virtual StatusCode execute(const EventContext &ctx) const override
ToolHandle< ISCT_ConditionsTool > m_pRODVetoTool
virtual StatusCode finalize() override
virtual StatusCode initialize() override
SCT_RODVetoTestAlg(const std::string &name, ISvcLocator *pSvcLocator)