ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
SCT_ConditionsAlgorithms
src
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
14
#include "
SCT_SiliconConditionsTestAlg.h
"
15
16
//Athena includes
17
#include "Identifier/Identifier.h"
18
#include "
Identifier/IdentifierHash.h
"
19
20
SCT_SiliconConditionsTestAlg::SCT_SiliconConditionsTestAlg
(
const
std::string& name, ISvcLocator* pSvcLocator) :
21
AthReentrantAlgorithm
(name, pSvcLocator)
22
{
23
//nop
24
}
25
26
//Initialize
27
StatusCode
SCT_SiliconConditionsTestAlg::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
46
StatusCode
47
SCT_SiliconConditionsTestAlg::finalize
() {
48
ATH_MSG_INFO
(
"Calling finalize"
);
49
return
StatusCode::SUCCESS;
50
}
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition
AthMsgStreamMacros.h:31
IdentifierHash.h
SCT_SiliconConditionsTestAlg.h
Header file for the SCT_SiliconConditionsTestAlg class in package SCT_ConditionsAlgorithms.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
SCT_SiliconConditionsTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
SCT_SiliconConditionsTestAlg.cxx:34
SCT_SiliconConditionsTestAlg::SCT_SiliconConditionsTestAlg
SCT_SiliconConditionsTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
SCT_SiliconConditionsTestAlg.cxx:20
SCT_SiliconConditionsTestAlg::initialize
virtual StatusCode initialize() override
Definition
SCT_SiliconConditionsTestAlg.cxx:27
SCT_SiliconConditionsTestAlg::finalize
virtual StatusCode finalize() override
Definition
SCT_SiliconConditionsTestAlg.cxx:47
SCT_SiliconConditionsTestAlg::m_siliconTool
ToolHandle< ISiliconConditionsTool > m_siliconTool
Definition
SCT_SiliconConditionsTestAlg.h:39
Generated on
for ATLAS Offline Software by
1.17.0