33 using Auditor::Auditor;
54 return Auditor::initialize().andThen( [&] {
57 error() <<
"Invalid pointer to IAlgContextSvc" <<
endmsg;
62 error() <<
"Invalid pointer to IAlgManager" <<
endmsg;
72 return Auditor::finalize();
79 if ( alg )
m_svc->setCurrentAlg( alg, context ).ignore();
88 if ( alg )
m_svc->unSetCurrentAlg( alg, context ).ignore();
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
#define DECLARE_COMPONENT(type)
Description: Register/Unregister the AlgContext of each algorithm before entering the algorithm and a...
SmartIF< IAlgManager > m_algMgr
the pointer to Algorithm Manager
StatusCode initialize() override
AlgContextAuditor & operator=(const AlgContextAuditor &)=delete
void after(std::string const &, std::string const &, EventContext const &, StatusCode const &) override
AlgContextAuditor(const AlgContextAuditor &)=delete
AlgContextAuditor()=delete
delete the default/copy constructor and assignment
StatusCode finalize() override
SmartIF< IAlgContextSvc > m_svc
the pointer to Algorithm Context Service
void before(std::string const &, std::string const &, EventContext const &) override
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
This class represents an entry point to all the event specific data.
Base class from which all concrete auditor classes should be derived.
SmartIF< T > service(std::string_view name, bool createIf=false) const
Access a service by name, creating it if it doesn't already exist.
SmartIF< ISvcLocator > & serviceLocator() const override
The standard service locator.
static const std::string Initialize
static const std::string Finalize
static const std::string Execute
An abstract interface for Algorithm Context Service.
Small smart pointer class with automatic reference counting for IInterface.
This class is used for returning status codes from appropriate routines.
constexpr static const auto SUCCESS
constexpr static const auto FAILURE