ATLAS Offline Software
Loading...
Searching...
No Matches
Control
AthenaExamples
AthAsgExUnittest
Root
AthAsgExUnittestTool.h
Go to the documentation of this file.
1
// -*- mode: c++ -*-
2
//
3
// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
4
//
5
#ifndef ATHASGEXUNITTEST_ATHEXUNITTESTTOOL_H
6
#define ATHASGEXUNITTEST_ATHEXUNITTESTTOOL_H 1
7
8
#include "
AsgTools/AsgTool.h
"
9
#include "
AthAsgExUnittest/IAthAsgExUnittestTool.h
"
10
11
class
AthAsgExUnittestTool
:
public
asg::AsgTool
,
public
virtual
IAthAsgExUnittestTool
{
12
public
:
13
14
ASG_TOOL_CLASS
(
AthAsgExUnittestTool
,
IAthAsgExUnittestTool
)
15
// Add another constructor for non-athena use cases
16
AthAsgExUnittestTool
(
const
std::string& name );
17
18
// Initialize is required by AsgTool base class
19
virtual
StatusCode
initialize
()
override
;
20
21
// This tools method
22
virtual
double
useTheProperty
()
override
;
23
24
private
:
25
Gaudi::Property<double>
m_nProperty
{
this
,
"Property"
, 3.0,
"A double property"
};
26
Gaudi::Property<unsigned int>
m_enumProperty
{
this
,
"ENumProperty"
,
Val1
,
"A enum property"
};
27
28
};
29
30
#endif
//> !ATHASGEXUNITTEST_ATHEXUNITTESTTOOL_H
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
AsgTool.h
IAthAsgExUnittestTool.h
AthAsgExUnittestTool::useTheProperty
virtual double useTheProperty() override
Definition
AthAsgExUnittestTool.cxx:22
AthAsgExUnittestTool::AthAsgExUnittestTool
AthAsgExUnittestTool(const std::string &name)
Definition
AthAsgExUnittestTool.cxx:9
AthAsgExUnittestTool::m_enumProperty
Gaudi::Property< unsigned int > m_enumProperty
Definition
AthAsgExUnittestTool.h:26
AthAsgExUnittestTool::m_nProperty
Gaudi::Property< double > m_nProperty
Definition
AthAsgExUnittestTool.h:25
AthAsgExUnittestTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition
AthAsgExUnittestTool.cxx:12
IAthAsgExUnittestTool
Definition
IAthAsgExUnittestTool.h:12
IAthAsgExUnittestTool::Val1
@ Val1
Definition
IAthAsgExUnittestTool.h:19
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
Generated on
for ATLAS Offline Software by
1.14.0