Loading [MathJax]/extensions/tex2jax.js
Go to the documentation of this file.
28 std::unique_ptr<Gaudi::IAuditor> aud{
29 Gaudi::Auditor::Factory::create( item.
type(), item.
name(), serviceLocator().
get() ) };
48 auto it = std::find_if(
62 error() <<
"Error constructing Auditor " <<
name <<
endmsg;
70 auto it = std::find_if(
74 auto sc = ( *it )->sysFinalize();
75 if ( sc.isFailure() ) { error() <<
"Finalization of auditor " <<
name <<
" failed : " << sc <<
endmsg; }
88 if ( entry->isEnabled() ) {
89 auto sc = entry->sysFinalize();
90 if ( sc.isFailure() ) { error() <<
"Finalization of auditor " << entry->name() <<
" failed : " << sc << endmsg; }
93 m_pAudList.erase( pastEnd, m_pAudList.end() );
96 for (
auto& it : m_audNameList ) {
104 if ( it->isEnabled() ) it->sysFinalize().
ignore();
113 if ( it->isEnabled() ) it->before(
evt,
name, context );
121 if ( it->isEnabled() ) it->after(
evt,
name, context, sc );
const std::string & name() const
The IAuditor is the interface implemented by the Auditor base class.
get
decorate the vector of properties
std::optional< StatusCode > removesAuditor(std::string const &name) override
removes an Auditor. Returns whether the Auditor was present (and thus removed)
bool hasAuditor(std::string const &name) const override
management functionality: check if an Auditor exists
StatusCode finalize() override
StatusCode addAuditor(std::string const &name) override
adds a new Auditor
AttribStringParser::Iterator begin(const AttribStringParser &parser)
Helper class to parse a string of format "type/name".
const std::string & name() const override
Retrieve name of the service
Gaudi::IAuditor * getAuditor(std::string const &name) const override
management functionality: retrieve an Auditor
void for_each(ContainerOfSynced &c, Fun &&f)
This service manages Auditors.
bool isEnabled() const override
StatusCode finalize() override
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
const std::string & type() const
std::unique_ptr< Gaudi::IAuditor > newAuditor(MsgStream &, std::string_view)
const StatusCode & ignore() const
Allow discarding a StatusCode without warning.
constexpr static const auto SUCCESS
#define DECLARE_COMPONENT(type)
void after(std::string const &, std::string const &, EventContext const &, StatusCode const &) override
std::vector< std::unique_ptr< Gaudi::IAuditor > > m_pAudList
Gaudi::Property< std::vector< std::string > > m_audNameList
void before(std::string const &, std::string const &, EventContext const &) override
constexpr static const auto FAILURE
StatusCode syncAuditors()
internal mathod to update auditors when m_audNameList is changed