ATLAS Offline Software
Loading...
Searching...
No Matches
AthExUnittestTool.cxx
Go to the documentation of this file.
1
2//
3// Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
4//
5
7
9 const std::string& name,
10 const IInterface* parent ) :
11 AthAlgTool( type, name, parent ),
12 m_nProperty( 0 ),
14 //example property declarations with default values
15 declareProperty( "Property", m_nProperty = 3.0,
16 "Please describe the property here" );
17 declareProperty( "ENumProperty", m_enumProperty = Val1,
18 "Please define enums inside your classes, not just in namespaces" );
19}
20
22 ATH_MSG_INFO( "Initializing " << name() << "..." );
23 ATH_MSG_INFO( "Property = " << m_nProperty );
24 ATH_MSG_INFO( "ENumProperty = " << m_enumProperty );
25
26 //Make use of the property values to configure the tool
27 //Tools should be designed so that no method other than setProperty is called before initialize
28 return StatusCode::SUCCESS;
29}
30
34
#define ATH_MSG_INFO(x)
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
virtual StatusCode initialize() override
unsigned int m_enumProperty
AthExUnittestTool(const std::string &type, const std::string &name, const IInterface *parent)
virtual double useTheProperty() override