ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
SCT_ConditionsAlgorithms
src
SCT_ConditionsSummaryTestAlg.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_ConditionsSummaryTestAlg.h
"
15
16
//Athena includes
17
#include "Identifier/Identifier.h"
18
#include "
InDetConditionsSummaryService/InDetHierarchy.h
"
19
20
//Gaudi includes
21
22
SCT_ConditionsSummaryTestAlg::SCT_ConditionsSummaryTestAlg
(
const
std::string& name,
23
ISvcLocator* pSvcLocator) :
24
AthReentrantAlgorithm
(name, pSvcLocator) {
25
//nop
26
}
27
28
//Initialize
29
StatusCode
30
SCT_ConditionsSummaryTestAlg::initialize
() {
31
ATH_MSG_INFO
(
"Calling initialize"
);
32
ATH_CHECK
(
m_pSummaryTool
.retrieve());
33
return
StatusCode::SUCCESS;
34
}
35
36
//Execute
37
StatusCode
38
SCT_ConditionsSummaryTestAlg::execute
(
const
EventContext& ctx)
const
{
39
//This method is only used to test the summary service, and only used within this package,
40
// so the INFO level messages have no impact on performance of these services when used by clients
41
ATH_MSG_INFO
(
"Calling execute"
);
42
ATH_MSG_INFO
(
"Dummy call to module id 0: module is "
);
43
bool
result{
m_pSummaryTool
->isGood(
Identifier
(0),
InDetConditions::DEFAULT
, ctx)};
44
ATH_MSG_INFO
((result ?
"good"
:
"bad"
));
45
ATH_MSG_INFO
(
"Dummy call to module id 1: module is "
);
46
result=
m_pSummaryTool
->isGood(
Identifier
(1),
InDetConditions::DEFAULT
, ctx);
47
ATH_MSG_INFO
((result ?
"good"
:
"bad"
));
60
result=
m_pSummaryTool
->isGood(
Identifier
(216808130),
InDetConditions::SCT_STRIP
, ctx);
61
ATH_MSG_INFO
(
"Strip 216808130 "
<< (result ?
"good"
:
"bad"
));
62
result=
m_pSummaryTool
->isGood(
Identifier
(216808743),
InDetConditions::SCT_STRIP
, ctx);
63
ATH_MSG_INFO
(
"Strip 216808743 "
<< (result ?
"good"
:
"bad"
));
64
return
StatusCode::SUCCESS;
65
}
66
67
68
//Finalize
69
StatusCode
70
SCT_ConditionsSummaryTestAlg::finalize
() {
71
ATH_MSG_INFO
(
"Calling finalize"
);
72
return
StatusCode::SUCCESS;
73
}
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:45
InDetHierarchy.h
Header containing the InDetHierarchy enum, to avoid pulling in a class every time it is needed and na...
SCT_ConditionsSummaryTestAlg.h
Header file for the SCT_ConditionsSummaryTestAlg class in package SCT_ConditionsAlgorithms.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
SCT_ConditionsSummaryTestAlg::SCT_ConditionsSummaryTestAlg
SCT_ConditionsSummaryTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
SCT_ConditionsSummaryTestAlg.cxx:22
SCT_ConditionsSummaryTestAlg::m_pSummaryTool
ToolHandle< IInDetConditionsTool > m_pSummaryTool
Definition
SCT_ConditionsSummaryTestAlg.h:43
SCT_ConditionsSummaryTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
SCT_ConditionsSummaryTestAlg.cxx:38
SCT_ConditionsSummaryTestAlg::finalize
virtual StatusCode finalize() override
Definition
SCT_ConditionsSummaryTestAlg.cxx:70
SCT_ConditionsSummaryTestAlg::initialize
virtual StatusCode initialize() override
Definition
SCT_ConditionsSummaryTestAlg.cxx:30
Identifier
Definition
IdentifierFieldParser.cxx:14
InDetConditions::SCT_STRIP
@ SCT_STRIP
Definition
InDetHierarchy.h:14
InDetConditions::DEFAULT
@ DEFAULT
Definition
InDetHierarchy.h:14
Generated on
for ATLAS Offline Software by
1.17.0