ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
DataModelTest
DataModelTestDataCommon
src
xAODTestAlg.cxx
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration.
3
*/
4
5
// $Id$
12
13
14
#include "
xAODTestAlg.h
"
15
16
17
namespace
DMTest
{
18
19
25
xAODTestAlg::xAODTestAlg
(
const
std::string &name, ISvcLocator *pSvcLocator)
26
:
AthReentrantAlgorithm
(name, pSvcLocator),
27
m_tools
(this)
28
{
29
declareProperty
(
"Tools"
,
m_tools
);
30
}
31
32
36
StatusCode
xAODTestAlg::initialize
()
37
{
38
ATH_CHECK
(
m_tools
.retrieve() );
39
return
StatusCode::SUCCESS;
40
}
41
42
43
47
StatusCode
xAODTestAlg::execute
(
const
EventContext& ctx)
const
48
{
49
for
(
const
auto
& t :
m_tools
)
50
ATH_CHECK
( t->doit (ctx) );
51
return
StatusCode::SUCCESS;
52
}
53
54
55
}
// namespace DMTest
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
AthCommonAlgorithm< Gaudi::Algorithm >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition
AthCommonDataStore.h:145
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
DMTest::xAODTestAlg::initialize
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
Definition
xAODTestAlg.cxx:36
DMTest::xAODTestAlg::xAODTestAlg
xAODTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
xAODTestAlg.cxx:25
DMTest::xAODTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
Definition
xAODTestAlg.cxx:47
DMTest::xAODTestAlg::m_tools
ToolHandleArray< ITestTool > m_tools
Definition
xAODTestAlg.h:52
DMTest
Definition
B.h:23
xAODTestAlg.h
Algorithm used to test SG access from tools.
Generated on
for ATLAS Offline Software by
1.17.0