4#include "Gaudi/Property.h"
14 ISvcLocator* pSvcLocator )
30 if ( !
sc.isSuccess() ) {
36 for (
unsigned int itool=0; itool<ntool; ++itool ) {
44 return StatusCode::FAILURE;
46 const std::string*
msg = tool->getProperty< std::string >(
"Message" );
54 tool->getProperty< std::string >(
"UnknownProperty" );
55 tool->getProperty<
int >(
"Message" );
57 return StatusCode::SUCCESS;
64 return StatusCode::SUCCESS;
73 string line =
"---------------------------------------------------";
75 for ( ToolHandleArray<IAsgHelloTool>::const_iterator itoo=
m_asgtools.begin();
77 ToolHandle<IAsgHelloTool> htool = *itoo;
78 int jstat = htool->talk();
79 if ( jstat != 0 )
ATH_MSG_INFO(
"Tool returned error " << jstat);
82 return StatusCode::SUCCESS;
#define ATH_MSG_WARNING(x)
StatusCode initialize()
Athena algorithm's Hooks.
~AsgExampleAlgorithm()
Destructor:
AsgExampleAlgorithm()
Default constructor:
ToolHandleArray< IAsgHelloTool > m_asgtools
Athena configured tools.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)