The Gaudi Framework  master (594c33fa)
AlgExecStateSvc Class Reference

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

#include </builds/gaudi/Gaudi/GaudiCoreSvc/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...
 
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 >
Gaudi::Details::PropertyBasedeclareProperty (const std::string &name, ToolHandle< T > &hndl, const std::string &doc="none")
 
template<class T >
StatusCode declareTool (ToolHandle< T > &handle, bool createIf=true)
 
template<class T >
StatusCode declareTool (ToolHandle< T > &handle, std::string toolTypeAndName, bool createIf=true)
 Declare used tool. More...
 
template<class T >
Gaudi::Details::PropertyBasedeclareProperty (const std::string &name, ToolHandleArray< T > &hndlArr, const std::string &doc="none")
 
template<class T >
void addToolsArray (ToolHandleArray< T > &hndlArr)
 
const std::vector< IAlgTool * > & tools () const
 
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 std::string &name, const Gaudi::Details::PropertyBase &p) override
 set the property from another property with a different name More...
 
StatusCode setProperty (const std::string &s) override
 set the property from the formatted string More...
 
StatusCode setProperty (const Gaudi::Details::PropertyBase &p)
 Set the property from a property. More...
 
virtual StatusCode setProperty (const std::string &name, const Gaudi::Details::PropertyBase &p)=0
 Set the property from a property with a different name. More...
 
virtual StatusCode setProperty (const std::string &s)=0
 Set the property by string. More...
 
StatusCode setProperty (const std::string &name, const char *v)
 Special case for string literals. More...
 
StatusCode setProperty (const std::string &name, const std::string &v)
 Special case for std::string. More...
 
StatusCode setProperty (const std::string &name, const TYPE &value)
 set the property form the value More...
 
StatusCode setPropertyRepr (const std::string &n, const std::string &r) override
 set the property from name and value string representation More...
 
StatusCode getProperty (Gaudi::Details::PropertyBase *p) const override
 get the property More...
 
const Gaudi::Details::PropertyBasegetProperty (std::string_view name) const override
 get the property by name More...
 
StatusCode getProperty (std::string_view 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 (std::string_view name) const override
 Return true if we have a property with the given name. More...
 
Gaudi::Details::PropertyBaseproperty (std::string_view name) const
 \fixme property and bindPropertiesTo should be protected More...
 
void bindPropertiesTo (Gaudi::Interfaces::IOptionsSvc &optsSvc)
 
 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...
 

Private Member Functions

void init ()
 
void checkInit () const
 

Private Attributes

std::vector< AlgStateMap_tm_algStates
 
std::vector< std::vector< AlgStateMap_t > > m_algSubSlotStates
 
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
std::vector< IAlgTool * > & tools ()
 
 ~Service () override
 Standard Destructor
More...
 
int outputLevel () const
 get the Service's output level More...
 
- 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" }
 flag indicating whether ToolHandle tools have been added to m_tools More...
 
Gaudi::Property< bool > m_auditInit { this, "AuditServices", false, "[[deprecated]] 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()" }
 
Gaudi::Property< bool > m_autoRetrieveTools
 
Gaudi::Property< bool > m_checkToolDeps
 
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]

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 }

◆ addAlg() [2/3]

virtual void IAlgExecStateSvc::addAlg

◆ addAlg() [3/3]

void IAlgExecStateSvc::addAlg
inline

Definition at line 100 of file IAlgExecStateSvc.h.

100 { addAlg( iAlg->nameKey() ); }

◆ algErrorCount()

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

Definition at line 222 of file AlgExecStateSvc.cpp.

222  {
223  auto itr = m_errorCount.find( iAlg->nameKey() );
224  if ( itr == m_errorCount.end() ) {
225  error() << "Unable to find Algorithm \"" << iAlg->name() << "\" in map"
226  << " of ErrorCounts" << endmsg;
227  return 0;
228  }
229 
230  return itr->second;
231 }

◆ algExecState() [1/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 ( itr == algState.end() ) {
110  throw GaudiException{ "cannot find Alg " + algName.str() + " in AlgStateMap", name(), StatusCode::FAILURE };
111  }
112 
113  // Assuming the alg is known, look for its state in the sub-slot
114  if ( ctx.usesSubSlot() ) {
115  auto& subSlots = m_algSubSlotStates[ctx.slot()];
116  auto& thisSubSlot = subSlots[ctx.subSlot()];
117  auto subitr = thisSubSlot.find( algName );
118  if ( subitr == thisSubSlot.end() ) {
119  throw GaudiException{ "cannot find Alg " + algName.str() + " in AlgStateMap", name(), StatusCode::FAILURE };
120  } else {
121  return subitr->second;
122  }
123  }
124 
125  return itr->second;
126 }

◆ algExecState() [2/5]

virtual const AlgExecState& IAlgExecStateSvc::algExecState

◆ algExecState() [3/5]

const AlgExecState& IAlgExecStateSvc::algExecState
inline

Definition at line 89 of file IAlgExecStateSvc.h.

89  {
90  return algExecState( iAlg->nameKey(), ctx );
91  }

◆ algExecState() [4/5]

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

Definition at line 130 of file AlgExecStateSvc.cpp.

130  {
132 
133  auto& algState = m_algStates.at( ctx.slot() );
134  auto itr = algState.find( iAlg->nameKey() );
135  if ( itr == algState.end() ) {
136  throw GaudiException{ std::string{ "cannot find Alg " } + iAlg->name() + " in AlgStateMap", name(),
138  }
139 
140  // Sub-slots are dynamic
141  // Assuming the alg is known, look for a subslot
142  // Return the existing state, or create a new one
143  if ( ctx.usesSubSlot() ) {
144 
145  // Use mutex since dynamic
146  std::scoped_lock lock( m_mut );
147 
148  // Check that there is any sub-slot information for this slot
149  if ( ctx.slot() >= m_algSubSlotStates.size() ) m_algSubSlotStates.resize( ctx.slot() + 1 );
150 
151  // Check that there is information for this sub-slot
152  auto& subSlots = m_algSubSlotStates[ctx.slot()];
153  if ( ctx.subSlot() >= subSlots.size() ) subSlots.resize( ctx.subSlot() + 1 );
154 
155  // Find (or create) the state of the algorithm in this sub-slot
156  auto& thisSubSlot = subSlots[ctx.subSlot()];
157  auto subitr = thisSubSlot.find( iAlg->name() );
158  if ( subitr == thisSubSlot.end() ) {
159  thisSubSlot[iAlg->name()] = AlgExecState();
160  return thisSubSlot[iAlg->name()];
161  } else {
162  return subitr->second;
163  }
164  }
165 
166  return itr->second;
167 }

◆ algExecState() [5/5]

virtual AlgExecState& IAlgExecStateSvc::algExecState

◆ algExecStates()

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

Definition at line 171 of file AlgExecStateSvc.cpp.

171  {
172  checkInit();
173  return m_algStates.at( ctx.slot() );
174 }

◆ 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 }

◆ 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 }

◆ eventStatus()

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

Definition at line 178 of file AlgExecStateSvc.cpp.

178  {
179  checkInit();
180  return m_eventStatus.at( ctx.slot() );
181 }

◆ incrementErrorCount()

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

Definition at line 247 of file AlgExecStateSvc.cpp.

247  {
248  auto itr = m_errorCount.find( iAlg->nameKey() );
249  if ( itr == m_errorCount.end() ) {
250  error() << "Unable to find Algorithm \"" << iAlg->name() << "\" in map"
251  << " of ErrorCounts" << endmsg;
252  return 0;
253  }
254  return ++( itr->second );
255 }

◆ 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 }

◆ reset()

void AlgExecStateSvc::reset ( const EventContext ctx)
override

Definition at line 204 of file AlgExecStateSvc.cpp.

204  {
205  if ( msgLevel( MSG::VERBOSE ) ) verbose() << "reset(" << ctx.slot() << ")" << endmsg;
206 
208  for ( auto& e : m_algStates.at( ctx.slot() ) ) e.second.reset();
209 
210  // Also clear sub slots
211  if ( ctx.slot() < m_algSubSlotStates.size() ) {
212  for ( auto& subSlot : m_algSubSlotStates[ctx.slot()] ) {
213  for ( auto& e : subSlot ) e.second.reset();
214  }
215  }
216 
218 }

◆ resetErrorCount()

void AlgExecStateSvc::resetErrorCount ( const IAlgorithm iAlg)
override

Definition at line 235 of file AlgExecStateSvc.cpp.

235  {
236  auto itr = m_errorCount.find( iAlg->nameKey() );
237  if ( itr != m_errorCount.end() ) {
238  itr->second = 0;
239  } else {
240  error() << "Unable to find Algorithm \"" << iAlg->name() << "\" in map"
241  << " of ErrorCounts" << endmsg;
242  }
243 }

◆ setEventStatus()

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

Definition at line 185 of file AlgExecStateSvc.cpp.

185  {
187  m_eventStatus.at( ctx.slot() ) = sc;
188 }

◆ updateEventStatus()

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

Definition at line 192 of file AlgExecStateSvc.cpp.

192  {
194  auto& status = m_eventStatus.at( ctx.slot() );
195  if ( status == EventStatus::Success ) {
196  if ( fail ) status = EventStatus::AlgFail;
197  } else if ( status == EventStatus::Invalid ) {
198  status = ( fail ? EventStatus::AlgFail : EventStatus::Success );
199  }
200 }

Member Data Documentation

◆ m_algStates

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

Definition at line 56 of file AlgExecStateSvc.h.

◆ m_algSubSlotStates

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

Definition at line 57 of file AlgExecStateSvc.h.

◆ m_errorCount

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

Definition at line 62 of file AlgExecStateSvc.h.

◆ m_eventStatus

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

Definition at line 59 of file AlgExecStateSvc.h.

◆ m_initFlag

std::once_flag AlgExecStateSvc::m_initFlag
private

Definition at line 66 of file AlgExecStateSvc.h.

◆ m_isInit

bool AlgExecStateSvc::m_isInit { false }
private

Definition at line 67 of file AlgExecStateSvc.h.

◆ m_mut

std::mutex AlgExecStateSvc::m_mut
private

Definition at line 69 of file AlgExecStateSvc.h.

◆ m_preInitAlgs

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

Definition at line 60 of file AlgExecStateSvc.h.


The documentation for this class was generated from the following files:
MSG::DEBUG
@ DEBUG
Definition: IMessageSvc.h:25
std::call_once
T call_once(T... args)
std::vector::resize
T resize(T... args)
std::lock
T lock(T... args)
AlgExecStateSvc::init
void init()
Definition: AlgExecStateSvc.cpp:22
std::string
STL class.
Gaudi::Hive::currentContext
GAUDI_API const EventContext & currentContext()
Definition: ThreadLocalContext.cpp:30
AlgExecStateSvc::algExecState
const AlgExecState & algExecState(const Gaudi::StringKey &algName, const EventContext &ctx) const override
Definition: AlgExecStateSvc.cpp:104
gaudirun.s
string s
Definition: gaudirun.py:346
AlgExecStateSvc::m_eventStatus
std::vector< EventStatus::Status > m_eventStatus
Definition: AlgExecStateSvc.h:59
std::unordered_map::find
T find(T... args)
GaudiException
Definition: GaudiException.h:31
EventStatus::Success
@ Success
Definition: IAlgExecStateSvc.h:73
AlgExecStateSvc::checkInit
void checkInit() const
Definition: AlgExecStateSvc.cpp:53
AlgExecStateSvc::m_preInitAlgs
std::vector< Gaudi::StringKey > m_preInitAlgs
Definition: AlgExecStateSvc.h:60
EventStatus::Invalid
@ Invalid
Definition: IAlgExecStateSvc.h:73
AlgExecStateSvc::addAlg
void addAlg(const Gaudi::StringKey &algName) override
Definition: AlgExecStateSvc.cpp:76
CommonMessaging< implements< IService, IProperty, IStateful > >::msgLevel
MSG::Level msgLevel() const
get the cached level (originally extracted from the embedded MsgStream)
Definition: CommonMessaging.h:148
AlgExecStateSvc::m_mut
std::mutex m_mut
Definition: AlgExecStateSvc.h:69
std::vector::push_back
T push_back(T... args)
ManySmallAlgs.alg
alg
Definition: ManySmallAlgs.py:81
AlgExecStateSvc::dump
void dump(std::ostringstream &ost, const EventContext &ctx) const override
Definition: AlgExecStateSvc.cpp:62
Gaudi::Concurrency::ConcurrencyFlags::numConcurrentEvents
static GAUDI_API std::size_t numConcurrentEvents()
number of Concurrent Events (for MT)
Definition: ConcurrencyFlags.h:57
Gaudi::Concurrency::ConcurrencyFlags::concurrent
static GAUDI_API bool concurrent()
serial operation, or some form of concurrency
Definition: ConcurrencyFlags.h:65
GaudiPython.Pythonizations.ctx
ctx
Definition: Pythonizations.py:578
Service::name
const std::string & name() const override
Retrieve name of the service
Definition: Service.cpp:332
std::vector::at
T at(T... args)
Gaudi::Units::m
constexpr double m
Definition: SystemOfUnits.h:108
CLHEP::begin
double * begin(CLHEP::HepVector &v)
Definition: TupleAlg.cpp:45
AlgExecStateSvc::m_algSubSlotStates
std::vector< std::vector< AlgStateMap_t > > m_algSubSlotStates
Definition: AlgExecStateSvc.h:57
AlgExecStateSvc::m_isInit
bool m_isInit
Definition: AlgExecStateSvc.h:67
IAlgorithm::nameKey
virtual const Gaudi::StringKey & nameKey() const =0
StringKey rep of name.
std::accumulate
T accumulate(T... args)
SmartIF< IAlgManager >
genconfuser.verbose
verbose
Definition: genconfuser.py:28
AlgExecStateSvc::m_algStates
std::vector< AlgStateMap_t > m_algStates
Definition: AlgExecStateSvc.h:56
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:203
AlgExecStateSvc::m_errorCount
std::unordered_map< Gaudi::StringKey, std::atomic< unsigned int > > m_errorCount
Definition: AlgExecStateSvc.h:62
EventStatus::AlgFail
@ AlgFail
Definition: IAlgExecStateSvc.h:73
AlgExecStateSvc::m_initFlag
std::once_flag m_initFlag
Definition: AlgExecStateSvc.h:66
std::ostringstream
STL class.
MSG::VERBOSE
@ VERBOSE
Definition: IMessageSvc.h:25
Gaudi::StringKey::str
const std::string & str() const
the actual string
Definition: StringKey.h:56
std::ostringstream::str
T str(T... args)
std::size_t
std::unordered_map::end
T end(T... args)
IOTest.end
end
Definition: IOTest.py:125
AlgExecState
Definition: IAlgExecStateSvc.h:37
std::setw
T setw(T... args)
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition: StatusCode.h:101
std::max
T max(T... args)
Service::serviceLocator
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator
Definition: Service.cpp:335