ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
SCT_ConditionsAlgorithms
src
SCT_RODVetoTestAlg.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_RODVetoTestAlg.h
"
15
16
// Athena include
17
#include "
Identifier/IdentifierHash.h
"
18
19
SCT_RODVetoTestAlg::SCT_RODVetoTestAlg
(
const
std::string& name,
20
ISvcLocator* pSvcLocator) :
21
AthReentrantAlgorithm
( name, pSvcLocator ) {
22
//nop
23
}
24
25
//Initialize
26
StatusCode
27
SCT_RODVetoTestAlg::initialize
() {
28
ATH_MSG_INFO
(
"Calling initialize"
);
29
ATH_CHECK
(
m_pRODVetoTool
.retrieve());
30
return
StatusCode::SUCCESS;
31
}
32
33
//Execute
34
StatusCode
35
SCT_RODVetoTestAlg::execute
(
const
EventContext& ctx)
const
{
36
//This method is only used to test the summary service, and only used within this package,
37
// so the INFO level messages have no impact on performance of these services when used by clients
38
ATH_MSG_INFO
(
"Calling execute"
);
39
for
(
unsigned
int
hash{0}; hash<8176; hash+=2) {
40
bool
result{
m_pRODVetoTool
->isGood(
IdentifierHash
{hash}, ctx)};
//invented, no idea what this is
41
ATH_MSG_INFO
(
"Call to module in ROD : Module (hash="
<< hash <<
") is "
<< (result?
"good"
:
"bad"
));
42
}
43
44
return
StatusCode::SUCCESS;
45
}
46
47
48
//Finalize
49
StatusCode
50
SCT_RODVetoTestAlg::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
IdentifierHash.h
SCT_RODVetoTestAlg.h
Header file for the SCT_RODVetoTestAlg 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_RODVetoTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
SCT_RODVetoTestAlg.cxx:35
SCT_RODVetoTestAlg::m_pRODVetoTool
ToolHandle< ISCT_ConditionsTool > m_pRODVetoTool
Definition
SCT_RODVetoTestAlg.h:42
SCT_RODVetoTestAlg::finalize
virtual StatusCode finalize() override
Definition
SCT_RODVetoTestAlg.cxx:50
SCT_RODVetoTestAlg::initialize
virtual StatusCode initialize() override
Definition
SCT_RODVetoTestAlg.cxx:27
SCT_RODVetoTestAlg::SCT_RODVetoTestAlg
SCT_RODVetoTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
SCT_RODVetoTestAlg.cxx:19
Generated on
for ATLAS Offline Software by
1.17.0