ATLAS Offline Software
InnerDetector
InDetConditions
SCT_ConditionsAlgorithms
src
SCT_SensorsTestAlg.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
14
#include "
SCT_SensorsTestAlg.h
"
15
16
//Gaudi includes
17
#include "GaudiKernel/StatusCode.h"
18
19
// Include STL stuff
20
#include <vector>
21
22
SCT_SensorsTestAlg::SCT_SensorsTestAlg
(
const
std::string&
name
,
23
ISvcLocator* pSvcLocator) :
24
AthReentrantAlgorithm
(
name
, pSvcLocator) {
25
//nop
26
}
27
28
//Initialize
29
StatusCode
SCT_SensorsTestAlg::initialize
() {
30
ATH_MSG_INFO
(
"Calling initialize"
);
31
ATH_CHECK
(
m_SensorsTool
.retrieve());
32
return
StatusCode::SUCCESS;
33
}
34
35
//Execute
36
StatusCode
SCT_SensorsTestAlg::execute
(
const
EventContext& ctx)
const
{
37
//This method is only used to test the summary service, and only used within this package,
38
// so the INFO level messages have no impact on performance of these services when used by clients
39
ATH_MSG_INFO
(
"Calling execute"
);
40
std::vector<std::string>
values
;
41
m_SensorsTool
->getSensorsData(
values
, ctx);
42
for
(
const
std::string&
value
:
values
) {
43
ATH_MSG_INFO
(
"------------"
<<
value
<<
"------------"
);
44
}
45
m_SensorsTool
->printManufacturers(ctx);
46
return
StatusCode::SUCCESS;
47
}
48
49
//Finalize
50
StatusCode
SCT_SensorsTestAlg::finalize
() {
51
ATH_MSG_INFO
(
"Calling finalize"
);
52
return
StatusCode::SUCCESS;
53
}
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition:
AthMsgStreamMacros.h:31
SCT_SensorsTestAlg.h
athena.value
value
Definition:
athena.py:124
python.Bindings.values
values
Definition:
Control/AthenaPython/python/Bindings.py:805
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition:
AthReentrantAlgorithm.h:83
SCT_SensorsTestAlg::m_SensorsTool
ToolHandle< ISCT_SensorsTool > m_SensorsTool
Definition:
SCT_SensorsTestAlg.h:42
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_CHECK
#define ATH_CHECK
Definition:
AthCheckMacros.h:40
SCT_SensorsTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Gaudi executer.
Definition:
SCT_SensorsTestAlg.cxx:36
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
SCT_SensorsTestAlg::finalize
virtual StatusCode finalize() override
Gaudi finaliser.
Definition:
SCT_SensorsTestAlg.cxx:50
SCT_SensorsTestAlg::SCT_SensorsTestAlg
SCT_SensorsTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
SCT_SensorsTestAlg.cxx:22
SCT_SensorsTestAlg::initialize
virtual StatusCode initialize() override
Gaudi initialiser.
Definition:
SCT_SensorsTestAlg.cxx:29
Generated on Thu Nov 7 2024 21:25:36 for ATLAS Offline Software by
1.8.18