3 #include "GaudiKernel/IAlgContextSvc.h"
4 #include "GaudiKernel/IAlgorithm.h"
5 #include "GaudiKernel/SmartIF.h"
6 #include "GaudiKernel/MsgStream.h"
18 template <StatusCode(IAlgContextSvc::*fun)(IAlgorithm*)>
23 if (alg) (ctx->*
fun)( alg.get() ).ignore() ;
64 call<&IAlgContextSvc::setCurrentAlg>(
m_svc,a);
68 call<&IAlgContextSvc::unSetCurrentAlg>(
m_svc,a);
72 call<&IAlgContextSvc::setCurrentAlg>(
m_svc,a);
76 call<&IAlgContextSvc::unSetCurrentAlg>(
m_svc,a);
80 call<&IAlgContextSvc::setCurrentAlg>(
m_svc,a);
85 call<&IAlgContextSvc::unSetCurrentAlg>(
m_svc,a);
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...
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
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
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.
This class is used for returning status codes from appropriate routines.
#define DECLARE_COMPONENT(type)
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
double fun(const std::vector< double > &x)
const std::string & name() const override
An abstract interface for Algorithm Context Service.
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.