ATLAS Offline Software
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 
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
31  ATH_MSG_INFO("Calling initialize");
32  ATH_CHECK(m_pSummaryTool.retrieve());
33  return StatusCode::SUCCESS;
34 }
35 
36 //Execute
38 SCT_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
71  ATH_MSG_INFO("Calling finalize");
72  return StatusCode::SUCCESS;
73 }
get_generator_info.result
result
Definition: get_generator_info.py:21
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
SCT_ConditionsSummaryTestAlg::m_pSummaryTool
ToolHandle< IInDetConditionsTool > m_pSummaryTool
Definition: SCT_ConditionsSummaryTestAlg.h:43
SCT_ConditionsSummaryTestAlg.h
Header file for the SCT_ConditionsSummaryTestAlg class in package SCT_ConditionsAlgorithms.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SCT_ConditionsSummaryTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: SCT_ConditionsSummaryTestAlg.cxx:38
InDetHierarchy.h
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
SCT_ConditionsSummaryTestAlg::finalize
virtual StatusCode finalize() override
Definition: SCT_ConditionsSummaryTestAlg.cxx:70
InDetConditions::SCT_STRIP
@ SCT_STRIP
Definition: InDetHierarchy.h:14
InDetConditions::DEFAULT
@ DEFAULT
Definition: InDetHierarchy.h:14
SCT_ConditionsSummaryTestAlg::SCT_ConditionsSummaryTestAlg
SCT_ConditionsSummaryTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SCT_ConditionsSummaryTestAlg.cxx:22
SCT_ConditionsSummaryTestAlg::initialize
virtual StatusCode initialize() override
Definition: SCT_ConditionsSummaryTestAlg.cxx:30