ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDTools
EventLoopTest
Root
UnitTestTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
8
9
//
10
// includes
11
//
12
13
#include <
EventLoopTest/UnitTestTool.h
>
14
15
#include <gtest/gtest.h>
16
#include <map>
17
18
//
19
// method implementations
20
//
21
22
namespace
EL
23
{
24
UnitTestTool ::
25
UnitTestTool (
const
std::string& val_name)
26
:
AsgTool
(val_name)
27
{
28
declareProperty
(
"propertyInt"
,
m_propertyInt
,
"the integer property"
);
29
declareProperty
(
"subtool"
,
m_subtool
,
"our subtool"
);
30
}
31
32
33
34
UnitTestTool ::
35
~UnitTestTool ()
36
{
37
}
38
39
40
41
StatusCode
UnitTestTool ::
42
initialize ()
43
{
44
return
StatusCode::SUCCESS;
45
}
46
47
48
49
int
UnitTestTool ::
50
getPropertyInt ()
const
51
{
52
return
m_propertyInt
;
53
}
54
55
56
57
const
IUnitTestTool
*UnitTestTool ::
58
getSubtool ()
const
59
{
60
if
(!
m_subtool
.empty())
61
return
&*
m_subtool
;
62
else
63
return
nullptr
;
64
}
65
}
UnitTestTool.h
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition
AthCommonDataStore.h:145
EL::IUnitTestTool
the interface for UnitTestTool
Definition
IUnitTestTool.h:20
asg::AsgTool::AsgTool
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition
AsgTool.cxx:58
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition
AsgComponentFactories.h:16
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
EL::UnitTestTool::m_propertyInt
int m_propertyInt
the integer property
Definition
UnitTestTool.h:51
EL::UnitTestTool::m_subtool
ToolHandle< IUnitTestTool > m_subtool
the toolhandle for subtools
Definition
UnitTestTool.h:47
Generated on
for ATLAS Offline Software by
1.17.0