1 #ifndef GAUDIKERNEL_AUDITOR_H 2 #define GAUDIKERNEL_AUDITOR_H 38 using Factory = Gaudi::PluginService::Factory<IAuditor*( const std::string&, ISvcLocator* )>;
60 void before( StandardEventType,
const std::string& )
override;
63 void before( CustomEventTypeRef,
const std::string& )
override;
96 bool isEnabled()
const override;
109 auto ptr = serviceLocator()->service<T>(
name, createIf );
119 template <
class T = IService>
122 return serviceLocator()->service<T>(
name, createIf );
140 bool m_isInitialized =
false;
141 bool m_isFinalized =
false;
144 #endif // GAUDIKERNEL_AUDITOR_H constexpr static const auto FAILURE
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...
Implementation of property with value of concrete type.
std::string m_name
Auditor's name for identification.
SmartIF< ISvcLocator > m_pSvcLocator
Pointer to service locator service.
Gaudi::PluginService::Factory< IAuditor *(const std::string &, ISvcLocator *)> Factory
General service interface definition.
This class is used for returning status codes from appropriate routines.
PropertyHolder & operator=(const PropertyHolder &)=delete
The IMessage is the interface implemented by the message service.
constexpr static const auto SUCCESS
Base class from which all concrete algorithm classes should be derived.
IInterface compliant class extending IInterface with the name() method.
Helper class to implement the IProperty interface.
SmartIF< T > service(const std::string &name, bool createIf=false) const
Base class from which all concrete auditor classes should be derived.