ATLAS Offline Software
Loading...
Searching...
No Matches
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
13
15
16//Athena includes
17#include "Identifier/Identifier.h"
19
20SCT_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
34StatusCode 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
46StatusCode
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)
Header file for the SCT_SiliconConditionsTestAlg 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
SCT_SiliconConditionsTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
virtual StatusCode finalize() override
ToolHandle< ISiliconConditionsTool > m_siliconTool