3 #include "GaudiKernel/IAlgContextSvc.h"
4 #include "GaudiKernel/IAlgorithm.h"
5 #include "GaudiKernel/SmartIF.h"
6 #include "GaudiKernel/MsgStream.h"
29 if ( 0 == ni ) {
return 0 ; }
75 if (alg)
m_svc -> setCurrentAlg ( alg ).ignore() ;
82 if (alg)
m_svc -> unSetCurrentAlg ( alg ).ignore() ;
89 if (alg)
m_svc -> setCurrentAlg ( alg ).ignore() ;
96 if (alg)
m_svc -> unSetCurrentAlg ( alg ).ignore() ;
103 if (alg)
m_svc -> setCurrentAlg ( alg ).ignore() ;
111 if (alg)
m_svc -> unSetCurrentAlg ( alg ).ignore() ;
StatusCode initialize() override
standard initialization,
Definition of the MsgStream class used to transmit messages.
virtual StatusCode finalize()
StatusCode service(const std::string &name, T *&svc, bool createIf=false) const
Access a service by name, creating it if it doesn't already exist.
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Description: Register/Unregister the AlgContext of each algorithm before entering the algorithm and a...
SmartIF< IMessageSvc > & msgSvc() const
The standard message service.
void afterFinalize(INamedInterface *a) override
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
SmartIF< IAlgContextSvc > m_svc
the pointer to Algorithm Context Service
void beforeInitialize(INamedInterface *a) override
void afterInitialize(INamedInterface *a) override
bool isFailure() const
Test for a status code of FAILURE.
#define DECLARE_COMPONENT(type)
This class is used for returning status codes from appropriate routines.
Definition of the basic interface.
The IAlgorithm is the interface implemented by the Algorithm base class.
StatusCode finalize() override
standard finalization,
IInterface compliant class extending IInterface with the name() method.
void beforeFinalize(INamedInterface *a) override
void afterExecute(INamedInterface *a, const StatusCode &s) override
const std::string & name() const override
void reset(TYPE *ptr=nullptr)
Set the internal pointer to the passed one disposing of the old one.
virtual StatusCode initialize()
void beforeExecute(INamedInterface *a) override
Base class from which all concrete auditor classes should be derived.