The Gaudi Framework  v33r1 (b1225454)
AlgExecStateSvc Class Reference

A service that keeps track of the execution state of Algorithm. More...

#include <src/AlgExecStateSvc/AlgExecStateSvc.h>

Inheritance diagram for AlgExecStateSvc:
Collaboration diagram for AlgExecStateSvc:

Public Types

typedef IAlgExecStateSvc::AlgStateMap_t AlgStateMap_t
 
- Public Types inherited from extends< Service, IAlgExecStateSvc >
using base_class = extends
 Typedef to this class. More...
 
using extend_interfaces_base = extend_interfaces< Interfaces... >
 Typedef to the base of this class. More...
 
- Public Types inherited from Service
using Factory = Gaudi::PluginService::Factory< IService *(const std::string &, ISvcLocator *)>
 
- Public Types inherited from PropertyHolder< CommonMessaging< implements< IService, IProperty, IStateful > > >
using PropertyHolderImpl = PropertyHolder< CommonMessaging< implements< IService, IProperty, IStateful > > >
 Typedef used to refer to this class from derived classes, as in. More...
 
- Public Types inherited from CommonMessaging< implements< IService, IProperty, IStateful > >
using base_class = CommonMessaging
 
- Public Types inherited from extend_interfaces< Interfaces... >
using ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids... >::type
 take union of the ext_iids of all Interfaces... More...
 

Public Member Functions

const AlgExecStatealgExecState (const Gaudi::StringKey &algName, const EventContext &ctx) const override
 
AlgExecStatealgExecState (IAlgorithm *iAlg, const EventContext &ctx) override
 
const AlgStateMap_talgExecStates (const EventContext &ctx) const override
 
void reset (const EventContext &ctx) override
 
void addAlg (const Gaudi::StringKey &algName) override
 
const EventStatus::StatuseventStatus (const EventContext &ctx) const override
 
void setEventStatus (const EventStatus::Status &sc, const EventContext &ctx) override
 
void updateEventStatus (const bool &b, const EventContext &ctx) override
 
unsigned int algErrorCount (const IAlgorithm *iAlg) const override
 
void resetErrorCount (const IAlgorithm *iAlg) override
 
unsigned int incrementErrorCount (const IAlgorithm *iAlg) override
 
void dump (std::ostringstream &ost, const EventContext &ctx) const override
 
virtual const AlgExecStatealgExecState (const Gaudi::StringKey &algName, const EventContext &ctx) const=0
 
const AlgExecStatealgExecState (IAlgorithm *iAlg, const EventContext &ctx) const
 
virtual AlgExecStatealgExecState (IAlgorithm *iAlg, const EventContext &ctx)=0
 
virtual void addAlg (const Gaudi::StringKey &algName)=0
 
void addAlg (IAlgorithm *iAlg)
 
- Public Member Functions inherited from extends< Service, IAlgExecStateSvc >
void * i_cast (const InterfaceID &tid) const override
 Implementation of IInterface::i_cast. More...
 
StatusCode queryInterface (const InterfaceID &ti, void **pp) override
 Implementation of IInterface::queryInterface. More...
 
std::vector< std::stringgetInterfaceNames () const override
 Implementation of IInterface::getInterfaceNames. More...
 
- Public Member Functions inherited from Service
const std::stringname () const override
 Retrieve name of the service. More...
 
StatusCode configure () override
 
StatusCode initialize () override
 
StatusCode start () override
 
StatusCode stop () override
 
StatusCode finalize () override
 
StatusCode terminate () override
 
Gaudi::StateMachine::State FSMState () const override
 
Gaudi::StateMachine::State targetFSMState () const override
 
StatusCode reinitialize () override
 
StatusCode restart () override
 
StatusCode sysInitialize () override
 Initialize Service. More...
 
StatusCode sysStart () override
 Initialize Service. More...
 
StatusCode sysStop () override
 Initialize Service. More...
 
StatusCode sysFinalize () override
 Finalize Service. More...
 
StatusCode sysReinitialize () override
 Re-initialize the Service. More...
 
StatusCode sysRestart () override
 Re-initialize the Service. More...
 
 Service (std::string name, ISvcLocator *svcloc)
 Standard Constructor. More...
 
SmartIF< ISvcLocator > & serviceLocator () const override
 Retrieve pointer to service locator. More...
 
StatusCode setProperties ()
 Method for setting declared properties to the values specified for the job. More...
 
template<class T >
StatusCode service (const std::string &name, const T *&psvc, bool createIf=true) const
 Access a service by name, creating it if it doesn't already exist. More...
 
template<class T >
StatusCode service (const std::string &name, T *&psvc, bool createIf=true) const
 
template<typename IFace = IService>
SmartIF< IFace > service (const std::string &name, bool createIf=true) const
 
template<class T >
StatusCode service (const std::string &svcType, const std::string &svcName, T *&psvc) const
 Access a service by name and type, creating it if it doesn't already exist. More...
 
template<class T >
StatusCode declareTool (ToolHandle< T > &handle, std::string toolTypeAndName, bool createIf=true)
 Declare used tool. More...
 
SmartIF< IAuditorSvc > & auditorSvc () const
 The standard auditor service.May not be invoked before sysInitialize() has been invoked. More...
 
- Public Member Functions inherited from PropertyHolder< CommonMessaging< implements< IService, IProperty, IStateful > > >
 PropertyHolder ()=default
 
Gaudi::Details::PropertyBasedeclareProperty (Gaudi::Details::PropertyBase &prop)
 Declare a property. More...
 
Gaudi::Details::PropertyBasedeclareProperty (const std::string &name, TYPE &value, const std::string &doc="none")
 Helper to wrap a regular data member and use it as a regular property. More...
 
Gaudi::Details::PropertyBasedeclareProperty (const std::string &name, Gaudi::Property< TYPE, VERIFIER, HANDLERS > &prop, const std::string &doc="none")
 Declare a PropertyBase instance setting name and documentation. More...
 
Gaudi::Details::PropertyBasedeclareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="")
 Declare a remote property. More...
 
StatusCode setProperty (const Gaudi::Details::PropertyBase &p) override
 set the property form another property More...
 
StatusCode setProperty (const std::string &s) override
 set the property from the formatted string More...
 
StatusCode setProperty (const std::string &n, const std::string &v) override
 set the property from name and the value More...
 
StatusCode setProperty (const std::string &name, const TYPE &value)
 set the property form the value More...
 
StatusCode getProperty (Gaudi::Details::PropertyBase *p) const override
 get the property More...
 
const Gaudi::Details::PropertyBasegetProperty (const std::string &name) const override
 get the property by name More...
 
StatusCode getProperty (const std::string &n, std::string &v) const override
 convert the property to the string More...
 
const std::vector< Gaudi::Details::PropertyBase * > & getProperties () const override
 get all properties More...
 
bool hasProperty (const std::string &name) const override
 Return true if we have a property with the given name. More...
 
 PropertyHolder (const PropertyHolder &)=delete
 
PropertyHolderoperator= (const PropertyHolder &)=delete
 
- Public Member Functions inherited from CommonMessaging< implements< IService, IProperty, IStateful > >
MSG::Level msgLevel () const
 get the cached level (originally extracted from the embedded MsgStream) More...
 
bool msgLevel (MSG::Level lvl) const
 get the output level from the embedded MsgStream More...
 
- Public Member Functions inherited from CommonMessagingBase
virtual ~CommonMessagingBase ()=default
 Virtual destructor. More...
 
const SmartIF< IMessageSvc > & msgSvc () const
 The standard message service. More...
 
MsgStreammsgStream () const
 Return an uninitialized MsgStream. More...
 
MsgStreammsgStream (const MSG::Level level) const
 Predefined configurable message stream for the efficient printouts. More...
 
MsgStreamalways () const
 shortcut for the method msgStream(MSG::ALWAYS) More...
 
MsgStreamfatal () const
 shortcut for the method msgStream(MSG::FATAL) More...
 
MsgStreamerr () const
 shortcut for the method msgStream(MSG::ERROR) More...
 
MsgStreamerror () const
 shortcut for the method msgStream(MSG::ERROR) More...
 
MsgStreamwarning () const
 shortcut for the method msgStream(MSG::WARNING) More...
 
MsgStreaminfo () const
 shortcut for the method msgStream(MSG::INFO) More...
 
MsgStreamdebug () const
 shortcut for the method msgStream(MSG::DEBUG) More...
 
MsgStreamverbose () const
 shortcut for the method msgStream(MSG::VERBOSE) More...
 
MsgStreammsg () const
 shortcut for the method msgStream(MSG::INFO) More...
 

Private Member Functions

void init ()
 
void checkInit () const
 

Private Attributes

std::vector< AlgStateMap_tm_algStates
 
std::vector< EventStatus::Statusm_eventStatus
 
std::vector< Gaudi::StringKeym_preInitAlgs
 
std::unordered_map< Gaudi::StringKey, std::atomic< unsigned int > > m_errorCount
 
std::once_flag m_initFlag
 
bool m_isInit {false}
 
std::mutex m_mut
 

Additional Inherited Members

- Protected Member Functions inherited from Service
 ~Service () override
 Standard Destructor. More...
 
int outputLevel () const
 get the Service's output level More...
 
- Protected Member Functions inherited from PropertyHolder< CommonMessaging< implements< IService, IProperty, IStateful > > >
Gaudi::Details::PropertyBaseproperty (const std::string &name) const
 
- Protected Member Functions inherited from CommonMessaging< implements< IService, IProperty, IStateful > >
MSG::Level setUpMessaging () const
 Set up local caches. More...
 
MSG::Level resetMessaging ()
 Reinitialize internal states. More...
 
void updateMsgStreamOutputLevel (int level)
 Update the output level of the cached MsgStream. More...
 
- Protected Attributes inherited from Service
Gaudi::StateMachine::State m_state = Gaudi::StateMachine::OFFLINE
 Service state. More...
 
Gaudi::StateMachine::State m_targetState = Gaudi::StateMachine::OFFLINE
 Service state. More...
 
Gaudi::Property< int > m_outputLevel {this, "OutputLevel", MSG::NIL, "output level"}
 
Gaudi::Property< bool > m_auditInit {this, "AuditServices", false, " unused"}
 
Gaudi::Property< bool > m_auditorInitialize {this, "AuditInitialize", false, "trigger auditor on initialize()"}
 
Gaudi::Property< bool > m_auditorStart {this, "AuditStart", false, "trigger auditor on start()"}
 
Gaudi::Property< bool > m_auditorStop {this, "AuditStop", false, "trigger auditor on stop()"}
 
Gaudi::Property< bool > m_auditorFinalize {this, "AuditFinalize", false, "trigger auditor on finalize()"}
 
Gaudi::Property< bool > m_auditorReinitialize {this, "AuditReinitialize", false, "trigger auditor on reinitialize()"}
 
Gaudi::Property< bool > m_auditorRestart {this, "AuditRestart", false, "trigger auditor on restart()"}
 
SmartIF< IAuditorSvcm_pAuditorSvc
 Auditor Service. More...
 

Detailed Description

A service that keeps track of the execution state of Algorithm.

Definition at line 26 of file AlgExecStateSvc.h.

Member Typedef Documentation

◆ AlgStateMap_t

Member Function Documentation

◆ addAlg() [1/3]

virtual void IAlgExecStateSvc::addAlg

◆ addAlg() [2/3]

void IAlgExecStateSvc::addAlg
inline

Definition at line 100 of file IAlgExecStateSvc.h.

100 { addAlg( iAlg->nameKey() ); }
void addAlg(const Gaudi::StringKey &algName) override

◆ addAlg() [3/3]

void AlgExecStateSvc::addAlg ( const Gaudi::StringKey algName)
override

Definition at line 76 of file AlgExecStateSvc.cpp.

76  {
77  if ( !m_isInit ) {
78  if ( msgLevel( MSG::DEBUG ) ) debug() << "preInit: will add Alg " << alg.str() << " later" << endmsg;
80  return;
81  }
82 
83  if ( !m_algStates.empty() && m_algStates.front().find( alg ) != m_algStates.front().end() ) {
84  // already added
85  return;
86  }
87 
88  {
89  // in theory, this should only get called during initialization (serial)
90  // so shouldn't have to protect with a mutex...
91  std::scoped_lock lock( m_mut );
92 
94  for ( auto& a : m_algStates ) a[alg] = s;
95  m_errorCount[alg] = 0;
96  }
97 
98  if ( msgLevel( MSG::DEBUG ) )
99  debug() << "adding alg " << alg.str() << " to " << m_algStates.size() << " slots" << endmsg;
100 }
std::vector< AlgStateMap_t > m_algStates
std::unordered_map< Gaudi::StringKey, std::atomic< unsigned int > > m_errorCount
MSG::Level msgLevel() const
get the cached level (originally extracted from the embedded MsgStream)
T push_back(T... args)
T lock(T... args)
MsgStream & debug() const
shortcut for the method msgStream(MSG::DEBUG)
std::vector< Gaudi::StringKey > m_preInitAlgs
std::mutex m_mut
string s
Definition: gaudirun.py:328
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:202

◆ algErrorCount()

unsigned int AlgExecStateSvc::algErrorCount ( const IAlgorithm iAlg) const
override

Definition at line 177 of file AlgExecStateSvc.cpp.

177  {
178  auto itr = m_errorCount.find( iAlg->nameKey() );
179  if ( itr == m_errorCount.end() ) {
180  error() << "Unable to find Algorithm \"" << iAlg->name() << "\" in map"
181  << " of ErrorCounts" << endmsg;
182  return 0;
183  }
184 
185  return itr->second;
186 }
std::unordered_map< Gaudi::StringKey, std::atomic< unsigned int > > m_errorCount
T end(T... args)
virtual const Gaudi::StringKey & nameKey() const =0
StringKey rep of name.
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
T find(T... args)
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:202

◆ algExecState() [1/5]

virtual AlgExecState& IAlgExecStateSvc::algExecState

◆ algExecState() [2/5]

const AlgExecState& IAlgExecStateSvc::algExecState
inline

Definition at line 89 of file IAlgExecStateSvc.h.

89  {
90  return algExecState( iAlg->nameKey(), ctx );
91  }
const AlgExecState & algExecState(const Gaudi::StringKey &algName, const EventContext &ctx) const override

◆ algExecState() [3/5]

virtual const AlgExecState& IAlgExecStateSvc::algExecState

◆ algExecState() [4/5]

const AlgExecState & AlgExecStateSvc::algExecState ( const Gaudi::StringKey algName,
const EventContext ctx 
) const
override

Definition at line 104 of file AlgExecStateSvc.cpp.

104  {
105  checkInit();
106 
107  auto& algState = m_algStates.at( ctx.slot() );
108  auto itr = algState.find( algName );
109  if ( UNLIKELY( itr == algState.end() ) ) {
110  throw GaudiException{"cannot find Alg " + algName.str() + " in AlgStateMap", name(), StatusCode::FAILURE};
111  }
112  return itr->second;
113 }
#define UNLIKELY(x)
Definition: Kernel.h:106
Define general base for Gaudi exception.
std::vector< AlgStateMap_t > m_algStates
const std::string & str() const
the actual string
Definition: StringKey.h:56
void checkInit() const
const std::string & name() const override
Retrieve name of the service.
Definition: Service.cpp:284
constexpr static const auto FAILURE
Definition: StatusCode.h:101

◆ algExecState() [5/5]

AlgExecState & AlgExecStateSvc::algExecState ( IAlgorithm iAlg,
const EventContext ctx 
)
override

Definition at line 117 of file AlgExecStateSvc.cpp.

117  {
119 
120  auto& algState = m_algStates.at( ctx.slot() );
121  auto itr = algState.find( iAlg->nameKey() );
122 
123  if ( UNLIKELY( itr == algState.end() ) ) {
124  throw GaudiException{std::string{"cannot find Alg "} + iAlg->name() + " in AlgStateMap", name(),
126  }
127 
128  return itr->second;
129 }
#define UNLIKELY(x)
Definition: Kernel.h:106
Define general base for Gaudi exception.
std::vector< AlgStateMap_t > m_algStates
std::once_flag m_initFlag
T call_once(T... args)
STL class.
const std::string & name() const override
Retrieve name of the service.
Definition: Service.cpp:284
virtual const Gaudi::StringKey & nameKey() const =0
StringKey rep of name.
constexpr static const auto FAILURE
Definition: StatusCode.h:101

◆ algExecStates()

const IAlgExecStateSvc::AlgStateMap_t & AlgExecStateSvc::algExecStates ( const EventContext ctx) const
override

Definition at line 133 of file AlgExecStateSvc.cpp.

133  {
134  checkInit();
135  return m_algStates.at( ctx.slot() );
136 }
std::vector< AlgStateMap_t > m_algStates
void checkInit() const

◆ checkInit()

void AlgExecStateSvc::checkInit ( ) const
private

Definition at line 53 of file AlgExecStateSvc.cpp.

53  {
54 
55  if ( !m_isInit ) {
56  throw GaudiException( "AlgExecStateSvc not initialized before first use!", "AlgExecStateSvc", StatusCode::FAILURE );
57  }
58 }
Define general base for Gaudi exception.
constexpr static const auto FAILURE
Definition: StatusCode.h:101

◆ dump()

void AlgExecStateSvc::dump ( std::ostringstream ost,
const EventContext ctx 
) const
override

Definition at line 62 of file AlgExecStateSvc.cpp.

62  {
63  const size_t slotID = ctx.valid() ? ctx.slot() : 0;
64 
65  ost << " [slot: " << slotID << ", incident: " << m_eventStatus.at( slotID ) << "]:\n\n";
66 
67  auto& algState = m_algStates.at( slotID );
68  auto ml = std::accumulate( begin( algState ), end( algState ), size_t{0},
69  []( size_t m, const auto& as ) { return std::max( m, as.first.str().length() ); } );
70 
71  for ( const auto& e : algState ) ost << " + " << std::setw( ml ) << e.first.str() << " " << e.second << '\n';
72 }
std::vector< AlgStateMap_t > m_algStates
T setw(T... args)
T at(T... args)
constexpr double m
def end
Definition: IOTest.py:123
T max(T... args)
std::vector< EventStatus::Status > m_eventStatus
AttribStringParser::Iterator begin(const AttribStringParser &parser)
T accumulate(T... args)

◆ eventStatus()

const EventStatus::Status & AlgExecStateSvc::eventStatus ( const EventContext ctx) const
override

Definition at line 140 of file AlgExecStateSvc.cpp.

140  {
141  checkInit();
142  return m_eventStatus.at( ctx.slot() );
143 }
void checkInit() const
T at(T... args)
std::vector< EventStatus::Status > m_eventStatus

◆ incrementErrorCount()

unsigned int AlgExecStateSvc::incrementErrorCount ( const IAlgorithm iAlg)
override

Definition at line 202 of file AlgExecStateSvc.cpp.

202  {
203  auto itr = m_errorCount.find( iAlg->nameKey() );
204  if ( itr == m_errorCount.end() ) {
205  error() << "Unable to find Algorithm \"" << iAlg->name() << "\" in map"
206  << " of ErrorCounts" << endmsg;
207  return 0;
208  }
209  return ++( itr->second );
210 }
std::unordered_map< Gaudi::StringKey, std::atomic< unsigned int > > m_errorCount
T end(T... args)
virtual const Gaudi::StringKey & nameKey() const =0
StringKey rep of name.
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
T find(T... args)
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:202

◆ init()

void AlgExecStateSvc::init ( )
private

Definition at line 22 of file AlgExecStateSvc.cpp.

22  {
23 
26  : 1;
27 
28  m_algStates.resize( slots );
29  m_eventStatus.resize( slots );
30 
31  if ( msgLevel( MSG::DEBUG ) ) debug() << "resizing state containers to : " << slots << endmsg;
32 
34  if ( !algMan.isValid() ) {
35  fatal() << "could not get the AlgManager" << endmsg;
36  throw GaudiException( "In AlgExecStateSvc, unable to get the AlgManager!", "AlgExecStateSvc", StatusCode::FAILURE );
37  }
38 
39  m_isInit = true;
40 
41  for ( const auto& alg : algMan->getAlgorithms() ) addAlg( alg );
42  for ( const auto& alg : m_preInitAlgs ) addAlg( alg );
43 
44  if ( msgLevel( MSG::VERBOSE ) ) {
47  verbose() << "dumping state:\n" << ost.str() << endmsg;
48  }
49 }
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator.
Definition: Service.cpp:287
Define general base for Gaudi exception.
std::vector< AlgStateMap_t > m_algStates
void addAlg(const Gaudi::StringKey &algName) override
void dump(std::ostringstream &ost, const EventContext &ctx) const override
MSG::Level msgLevel() const
get the cached level (originally extracted from the embedded MsgStream)
T resize(T... args)
static GAUDI_API bool concurrent()
serial operation, or some form of concurrency
MsgStream & verbose() const
shortcut for the method msgStream(MSG::VERBOSE)
GAUDI_API const EventContext & currentContext()
T str(T... args)
MsgStream & debug() const
shortcut for the method msgStream(MSG::DEBUG)
std::vector< Gaudi::StringKey > m_preInitAlgs
constexpr static const auto FAILURE
Definition: StatusCode.h:101
std::vector< EventStatus::Status > m_eventStatus
MsgStream & fatal() const
shortcut for the method msgStream(MSG::FATAL)
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:202
static GAUDI_API std::size_t numConcurrentEvents()
number of Concurrent Events (for MT)

◆ reset()

void AlgExecStateSvc::reset ( const EventContext ctx)
override

Definition at line 166 of file AlgExecStateSvc.cpp.

166  {
167  if ( msgLevel( MSG::VERBOSE ) ) verbose() << "reset(" << ctx.slot() << ")" << endmsg;
168 
170  for ( auto& e : m_algStates.at( ctx.slot() ) ) e.second.reset();
171 
173 }
std::vector< AlgStateMap_t > m_algStates
std::once_flag m_initFlag
T call_once(T... args)
MSG::Level msgLevel() const
get the cached level (originally extracted from the embedded MsgStream)
T at(T... args)
MsgStream & verbose() const
shortcut for the method msgStream(MSG::VERBOSE)
std::vector< EventStatus::Status > m_eventStatus
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:202

◆ resetErrorCount()

void AlgExecStateSvc::resetErrorCount ( const IAlgorithm iAlg)
override

Definition at line 190 of file AlgExecStateSvc.cpp.

190  {
191  auto itr = m_errorCount.find( iAlg->nameKey() );
192  if ( itr != m_errorCount.end() ) {
193  itr->second = 0;
194  } else {
195  error() << "Unable to find Algorithm \"" << iAlg->name() << "\" in map"
196  << " of ErrorCounts" << endmsg;
197  }
198 }
std::unordered_map< Gaudi::StringKey, std::atomic< unsigned int > > m_errorCount
T end(T... args)
virtual const Gaudi::StringKey & nameKey() const =0
StringKey rep of name.
MsgStream & error() const
shortcut for the method msgStream(MSG::ERROR)
T find(T... args)
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:202

◆ setEventStatus()

void AlgExecStateSvc::setEventStatus ( const EventStatus::Status sc,
const EventContext ctx 
)
override

Definition at line 147 of file AlgExecStateSvc.cpp.

147  {
149  m_eventStatus.at( ctx.slot() ) = sc;
150 }
std::once_flag m_initFlag
T call_once(T... args)
T at(T... args)
std::vector< EventStatus::Status > m_eventStatus

◆ updateEventStatus()

void AlgExecStateSvc::updateEventStatus ( const bool &  b,
const EventContext ctx 
)
override

Definition at line 154 of file AlgExecStateSvc.cpp.

154  {
156  auto& status = m_eventStatus.at( ctx.slot() );
157  if ( status == EventStatus::Success ) {
158  if ( fail ) status = EventStatus::AlgFail;
159  } else if ( status == EventStatus::Invalid ) {
160  status = ( fail ? EventStatus::AlgFail : EventStatus::Success );
161  }
162 }
std::once_flag m_initFlag
T call_once(T... args)
T at(T... args)
std::vector< EventStatus::Status > m_eventStatus

Member Data Documentation

◆ m_algStates

std::vector<AlgStateMap_t> AlgExecStateSvc::m_algStates
private

Definition at line 56 of file AlgExecStateSvc.h.

◆ m_errorCount

std::unordered_map<Gaudi::StringKey, std::atomic<unsigned int> > AlgExecStateSvc::m_errorCount
private

Definition at line 61 of file AlgExecStateSvc.h.

◆ m_eventStatus

std::vector<EventStatus::Status> AlgExecStateSvc::m_eventStatus
private

Definition at line 58 of file AlgExecStateSvc.h.

◆ m_initFlag

std::once_flag AlgExecStateSvc::m_initFlag
private

Definition at line 65 of file AlgExecStateSvc.h.

◆ m_isInit

bool AlgExecStateSvc::m_isInit {false}
private

Definition at line 66 of file AlgExecStateSvc.h.

◆ m_mut

std::mutex AlgExecStateSvc::m_mut
private

Definition at line 68 of file AlgExecStateSvc.h.

◆ m_preInitAlgs

std::vector<Gaudi::StringKey> AlgExecStateSvc::m_preInitAlgs
private

Definition at line 59 of file AlgExecStateSvc.h.


The documentation for this class was generated from the following files: