ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
13
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_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
SCT_SensorsTestAlg.h
Header file for SCT_SensorsTestAlg class.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
SCT_SensorsTestAlg::SCT_SensorsTestAlg
SCT_SensorsTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
SCT_SensorsTestAlg.cxx:22
SCT_SensorsTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Gaudi executer.
Definition
SCT_SensorsTestAlg.cxx:36
SCT_SensorsTestAlg::initialize
virtual StatusCode initialize() override
Gaudi initialiser.
Definition
SCT_SensorsTestAlg.cxx:29
SCT_SensorsTestAlg::m_SensorsTool
ToolHandle< ISCT_SensorsTool > m_SensorsTool
Definition
SCT_SensorsTestAlg.h:42
SCT_SensorsTestAlg::finalize
virtual StatusCode finalize() override
Gaudi finaliser.
Definition
SCT_SensorsTestAlg.cxx:50
Generated on
for ATLAS Offline Software by
1.17.0