ATLAS Offline Software
Loading...
Searching...
No Matches
SCT_ConditionsSummaryTestAlg.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
15
16//Athena includes
17#include "Identifier/Identifier.h"
19
20//Gaudi includes
21
23 ISvcLocator* pSvcLocator) :
24 AthReentrantAlgorithm(name, pSvcLocator) {
25 //nop
26}
27
28//Initialize
29StatusCode
31 ATH_MSG_INFO("Calling initialize");
32 ATH_CHECK(m_pSummaryTool.retrieve());
33 return StatusCode::SUCCESS;
34}
35
36//Execute
37StatusCode
38SCT_ConditionsSummaryTestAlg::execute(const EventContext& ctx) const {
39 //This method is only used to test the summary service, and only used within this package,
40 // so the INFO level messages have no impact on performance of these services when used by clients
41 ATH_MSG_INFO("Calling execute");
42 ATH_MSG_INFO("Dummy call to module id 0: module is ");
44 ATH_MSG_INFO((result ? "good" : "bad"));
45 ATH_MSG_INFO("Dummy call to module id 1: module is ");
47 ATH_MSG_INFO((result ? "good" : "bad"));
61 ATH_MSG_INFO("Strip 216808130 " << (result ? "good" : "bad"));
63 ATH_MSG_INFO("Strip 216808743 " << (result ? "good" : "bad"));
64 return StatusCode::SUCCESS;
65}
66
67
68//Finalize
69StatusCode
71 ATH_MSG_INFO("Calling finalize");
72 return StatusCode::SUCCESS;
73}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_INFO(x)
Header containing the InDetHierarchy enum, to avoid pulling in a class every time it is needed and na...
Header file for the SCT_ConditionsSummaryTestAlg class in package SCT_ConditionsAlgorithms.
An algorithm that can be simultaneously executed in multiple threads.
SCT_ConditionsSummaryTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
ToolHandle< IInDetConditionsTool > m_pSummaryTool
virtual StatusCode execute(const EventContext &ctx) const override
virtual StatusCode finalize() override
virtual StatusCode initialize() override