ATLAS Offline Software
Loading...
Searching...
No Matches
AthAsgExUnittestTool.cxx
Go to the documentation of this file.
1
2//
3// Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
4//
5
6// AthAsgExUnittest includes
8
9AthAsgExUnittestTool::AthAsgExUnittestTool( const std::string& name ) : asg::AsgTool( name ) {
10 //example property declarations with default values
11 declareProperty( "Property", m_nProperty = 3.0,
12 "Please describe the property here" );
13 declareProperty( "ENumProperty", m_enumProperty = Val1,
14 "Please define enums inside your classes, not just in namespaces" );
15}
16
18 ATH_MSG_INFO( "Initializing " << name() << "..." );
19 ATH_MSG_INFO( "Property = " << m_nProperty );
20 //
21 //Make use of the property values to configure the tool
22 //Tools should be designed so that no method other than setProperty is called before initialize
23 //
24 return StatusCode::SUCCESS;
25}
26
#define ATH_MSG_INFO(x)
virtual double useTheProperty() override
AthAsgExUnittestTool(const std::string &name)
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition AsgTool.cxx:58