39 error() <<
"Error retrieving the public tool" <<
endmsg;
46 error() <<
"Error retrieving the private tool" <<
endmsg;
52 error() <<
"Error retrieving the private tool with name" <<
endmsg;
58 error() <<
"Error retrieving the private tool with second interface" <<
endmsg;
102 info() <<
"tools created via ToolHandle<T>...." <<
endmsg;
111 info() <<
"tools copied assigned via ToolHandle<T>...." <<
endmsg;
118 info() <<
"tools copied constructed via ToolHandle<T>...." <<
endmsg;
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
#define DECLARE_COMPONENT(type)
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
Gaudi::Details::PropertyBase * declareProperty(const std::string &name, ToolHandle< T > &hndl, const std::string &doc="none")
StatusCode finalize() override
the default (empty) implementation of IStateful::finalize() method
const std::string & name() const override
The identifying name of the algorithm object.
SmartIF< IToolSvc > & toolSvc() const
The standard ToolSvc service, Return a pointer to the service if present.
Define general base for Gaudi exception.
const char * what() const override
method from std::exception
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Trivial Algorithm for tutorial purposes.
PublicToolHandle< IMyTool > m_myCopiedToolHandle
PublicToolHandle< const IMyTool > m_myCopiedConstToolHandle2
StatusCode finalize() override
StatusCode initialize() override
Three mandatory member functions of any algorithm.
IMyTool * m_privateToolWithName
Gaudi::Property< std::string > m_privateToolType
PublicToolHandle< const IMyTool > m_myConstToolHandle
PublicToolHandle< const IMyTool > m_myCopiedConstToolHandle
ToolHandle< IMyTool > m_myPrivToolHandle
StatusCode execute() override
MyAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor of this form must be provided or inherited from the base class.
IMyOtherTool * m_privateOtherInterface
ToolHandle< IMyTool > m_legacyToolHandle
Gaudi::Property< bool > m_privateToolsOnly
ToolHandle< IAlgTool > m_myUnusedToolHandle
ToolHandle< IMyTool > m_undefinedToolHandle
ToolHandle< IWrongTool > m_wrongIfaceTool
PublicToolHandle< IMyTool > m_myPubToolHandle
This class is used for returning status codes from appropriate routines.
const StatusCode & ignore() const
Allow discarding a StatusCode without warning.
constexpr static const auto SUCCESS
Simple algorithm useful as base class for tests.
StatusCode initialize() override