ATLAS Offline Software
Loading...
Searching...
No Matches
Control
AthenaExamples
AthAsgExUnittest
Root
AthAsgExUnittestTool.cxx
Go to the documentation of this file.
1
2
//
3
// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
4
//
5
6
// AthAsgExUnittest includes
7
#include "
AthAsgExUnittestTool.h
"
8
9
AthAsgExUnittestTool::AthAsgExUnittestTool
(
const
std::string& name ) :
asg
::
AsgTool
( name ) {
10
}
11
12
StatusCode
AthAsgExUnittestTool::initialize
() {
13
ATH_MSG_INFO
(
"Initializing "
<< name() <<
"..."
);
14
ATH_MSG_INFO
(
"Property = "
<<
m_nProperty
);
15
//
16
//Make use of the property values to configure the tool
17
//Tools should be designed so that no method other than setProperty is called before initialize
18
//
19
return
StatusCode::SUCCESS;
20
}
21
22
double
AthAsgExUnittestTool::useTheProperty
() {
23
return
m_nProperty
;
24
}
AthAsgExUnittestTool.h
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition
AthMsgStreamMacros.h:31
AthAsgExUnittestTool::useTheProperty
virtual double useTheProperty() override
Definition
AthAsgExUnittestTool.cxx:22
AthAsgExUnittestTool::AthAsgExUnittestTool
AthAsgExUnittestTool(const std::string &name)
Definition
AthAsgExUnittestTool.cxx:9
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
asg::AsgTool::AsgTool
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition
AsgTool.cxx:58
asg
Definition
DataHandleTestTool.h:28
Generated on
for ATLAS Offline Software by
1.14.0