ATLAS Offline Software
SCT_SiliconConditionsTestAlg.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
15 
16 //Athena includes
17 #include "Identifier/Identifier.h"
19 
20 SCT_SiliconConditionsTestAlg::SCT_SiliconConditionsTestAlg(const std::string& name, ISvcLocator* pSvcLocator) :
21  AthReentrantAlgorithm(name, pSvcLocator)
22 {
23  //nop
24 }
25 
26 //Initialize
28  ATH_MSG_INFO("Calling initialize");
29  ATH_CHECK(m_siliconTool.retrieve());
30  return StatusCode::SUCCESS;
31 }
32 
33 //Execute
34 StatusCode SCT_SiliconConditionsTestAlg::execute(const EventContext& ctx) const {
35  //This method is only used to test the summary service, and only used within this package,
36  // so the INFO level messages have no impact on performance of these services when used by clients
37 
38  ATH_MSG_INFO("Calling execute");
39  ATH_MSG_INFO("Temperature = " << m_siliconTool->temperature(IdentifierHash{804}, ctx));
40  ATH_MSG_INFO("Depletion V = " << m_siliconTool->depletionVoltage(IdentifierHash{804}, ctx));
41  ATH_MSG_INFO("Bias Voltage = " << m_siliconTool->biasVoltage(IdentifierHash{804}, ctx)); // was 216808130
42  return StatusCode::SUCCESS;
43 }
44 
45 //Finalize
48  ATH_MSG_INFO("Calling finalize");
49  return StatusCode::SUCCESS;
50 }
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SCT_SiliconConditionsTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: SCT_SiliconConditionsTestAlg.cxx:34
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
SCT_SiliconConditionsTestAlg::initialize
virtual StatusCode initialize() override
Definition: SCT_SiliconConditionsTestAlg.cxx:27
SCT_SiliconConditionsTestAlg.h
Header file for the SCT_SiliconConditionsTestAlg class in package SCT_ConditionsAlgorithms.
SCT_SiliconConditionsTestAlg::finalize
virtual StatusCode finalize() override
Definition: SCT_SiliconConditionsTestAlg.cxx:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
IdentifierHash.h
SCT_SiliconConditionsTestAlg::SCT_SiliconConditionsTestAlg
SCT_SiliconConditionsTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: SCT_SiliconConditionsTestAlg.cxx:20
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
SCT_SiliconConditionsTestAlg::m_siliconTool
ToolHandle< ISiliconConditionsTool > m_siliconTool
Definition: SCT_SiliconConditionsTestAlg.h:39