The Gaudi Framework  master (37c0b60a)
HiveSlimEventLoopMgr Class Reference

#include </builds/gaudi/Gaudi/GaudiHive/src/HiveSlimEventLoopMgr.h>

Inheritance diagram for HiveSlimEventLoopMgr:
Collaboration diagram for HiveSlimEventLoopMgr:

Public Member Functions

 ~HiveSlimEventLoopMgr () override
 
StatusCode getEventRoot (IOpaqueAddress *&refpAddr)
 Create event address using event selector. More...
 
StatusCode initialize () override
 implementation of IService::initialize More...
 
StatusCode reinitialize () override
 implementation of IService::reinitialize More...
 
StatusCode stop () override
 implementation of IService::stop More...
 
StatusCode finalize () override
 implementation of IService::finalize More...
 
StatusCode nextEvent (int maxevt) override
 implementation of IService::nextEvent More...
 
EventContext createEventContext () override
 implementation of IEventProcessor::createEventContext() More...
 
StatusCode executeEvent (EventContext &&ctx) override
 implementation of IEventProcessor::executeEvent(EventContext&&) More...
 
StatusCode executeRun (int maxevt) override
 implementation of IEventProcessor::executeRun() More...
 
StatusCode stopRun () override
 implementation of IEventProcessor::stopRun() More...
 
- Public Member Functions inherited from extends< Service, IEventProcessor >
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, const 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...
 

Protected Member Functions

StatusCode clearWBSlot (int evtSlot)
 Clear a slot in the WB. More...
 
StatusCode declareEventRootAddress ()
 Declare the root address of the event. More...
 
StatusCode drainScheduler (int &finishedEvents)
 Drain the scheduler from all actions that may be queued. More...
 
- 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

Gaudi::Property< std::stringm_histPersName { this, "HistogramPersistency", "", "" }
 
Gaudi::Property< std::stringm_evtsel { this, "EvtSel", "", "" }
 
Gaudi::Property< bool > m_warnings { this, "Warnings", true, "Set this property to false to suppress warning messages" }
 
Gaudi::Property< std::stringm_schedulerName
 
Gaudi::Property< std::vector< unsigned int > > m_eventNumberBlacklist { this, "EventNumberBlackList", {}, "" }
 
Gaudi::Property< bool > m_abortOnFailure { this, "AbortOnFailure", true, "Abort job on event failure" }
 
SmartIF< IDataManagerSvcm_evtDataMgrSvc
 Reference to the Event Data Service's IDataManagerSvc interface. More...
 
SmartIF< IEvtSelectorm_evtSelector
 Reference to the Event Selector. More...
 
IEvtSelector::Contextm_evtContext = nullptr
 Event Iterator. More...
 
SmartIF< IDataManagerSvcm_histoDataMgrSvc
 Reference to the Histogram Data Service. More...
 
SmartIF< IConversionSvcm_histoPersSvc
 Reference to the Histogram Persistency Service. More...
 
SmartIF< IHiveWhiteBoardm_whiteboard
 Reference to the Whiteboard. More...
 
SmartIF< IAlgResourcePoolm_algResourcePool
 Reference to the Algorithm resource pool. More...
 
SmartIF< IAlgExecStateSvcm_algExecStateSvc
 Reference to the AlgExecStateSvc. More...
 
SmartIF< IPropertym_appMgrProperty
 Property interface of ApplicationMgr. More...
 
bool m_endEventFired = false
 Flag to avoid to fire the EnvEvent incident twice in a row (and also not before the first event) More...
 
SmartIF< ISchedulerm_schedulerSvc
 A shortcut for the scheduler. More...
 
SmartIF< IIncidentListenerm_abortEventListener
 Instance of the incident listener waiting for AbortEvent. More...
 
bool m_scheduledStop = false
 Scheduled stop of event processing. More...
 
SmartIF< IIncidentSvcm_incidentSvc
 Reference to the incident service. More...
 
std::unique_ptr< boost::dynamic_bitset<> > m_blackListBS
 
EventContext::ContextEvt_t m_nevt { 0 }
 
- 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...
 

Additional Inherited Members

- Public Types inherited from extends< Service, IEventProcessor >
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...
 

Detailed Description

Definition at line 32 of file HiveSlimEventLoopMgr.h.

Constructor & Destructor Documentation

◆ ~HiveSlimEventLoopMgr()

HiveSlimEventLoopMgr::~HiveSlimEventLoopMgr ( )
override

Definition at line 38 of file HiveSlimEventLoopMgr.cpp.

38 { delete m_evtContext; }

Member Function Documentation

◆ clearWBSlot()

StatusCode HiveSlimEventLoopMgr::clearWBSlot ( int  evtSlot)
protected

Clear a slot in the WB.

Definition at line 566 of file HiveSlimEventLoopMgr.cpp.

566  {
567  StatusCode sc = m_whiteboard->clearStore( evtSlot );
568  if ( !sc.isSuccess() ) warning() << "Clear of Event data store failed" << endmsg;
569  return m_whiteboard->freeStore( evtSlot );
570 }

◆ createEventContext()

EventContext HiveSlimEventLoopMgr::createEventContext ( )
override

implementation of IEventProcessor::createEventContext()

Definition at line 491 of file HiveSlimEventLoopMgr.cpp.

491  {
492  EventContext ctx{ m_nevt, m_whiteboard->allocateStore( m_nevt ) };
493  ++m_nevt;
494 
495  StatusCode sc = m_whiteboard->selectStore( ctx.slot() );
496  if ( sc.isFailure() ) {
497  throw GaudiException( "Slot " + std::to_string( ctx.slot() ) + " could not be selected for the WhiteBoard", name(),
498  sc );
499  }
500  if ( declareEventRootAddress().isFailure() ) { // We ran out of events!
501  // invalid context terminates the loop
502  return EventContext{};
503  }
504  return ctx;
505 }

◆ declareEventRootAddress()

StatusCode HiveSlimEventLoopMgr::declareEventRootAddress ( )
protected

Declare the root address of the event.

Definition at line 469 of file HiveSlimEventLoopMgr.cpp.

469  {
470  StatusCode sc;
471  if ( m_evtContext ) {
472  //---This is the "event iterator" context from EventSelector
473  IOpaqueAddress* pAddr = nullptr;
474  sc = getEventRoot( pAddr );
475  if ( !sc.isSuccess() ) {
476  info() << "No more events in event selection " << endmsg;
477  return StatusCode::FAILURE;
478  }
479  sc = m_evtDataMgrSvc->setRoot( "/Event", pAddr );
480  if ( !sc.isSuccess() ) { warning() << "Error declaring event root address." << endmsg; }
481  } else {
482  //---In case of no event selector----------------
483  sc = m_evtDataMgrSvc->setRoot( "/Event", new DataObject() );
484  if ( !sc.isSuccess() ) { warning() << "Error declaring event root DataObject" << endmsg; }
485  }
486  return StatusCode::SUCCESS;
487 }

◆ drainScheduler()

StatusCode HiveSlimEventLoopMgr::drainScheduler ( int &  finishedEvents)
protected

Drain the scheduler from all actions that may be queued.

Definition at line 509 of file HiveSlimEventLoopMgr.cpp.

509  {
510 
512 
513  // maybe we can do better
514  std::vector<EventContext*> finishedEvtContexts;
515 
516  EventContext* finishedEvtContext( nullptr );
517 
518  // Here we wait not to loose cpu resources
519  DEBUG_MSG << "Waiting for a context" << endmsg;
520  sc = m_schedulerSvc->popFinishedEvent( finishedEvtContext );
521 
522  // We got past it: cache the pointer
523  DEBUG_MSG << "Context " << ( sc.isSuccess() ? "obtained" : "not obtained: a problem in the scheduling?" ) << endmsg;
524  finishedEvtContexts.push_back( finishedEvtContext );
525 
526  // Let's see if we can pop other event contexts
527  while ( m_schedulerSvc->tryPopFinishedEvent( finishedEvtContext ).isSuccess() ) {
528  finishedEvtContexts.push_back( finishedEvtContext );
529  }
530 
531  // Now we flush them
532  StatusCode finalSC;
533  for ( auto& thisFinishedEvtContext : finishedEvtContexts ) {
534  if ( !thisFinishedEvtContext ) {
535  error() << "Detected nullptr ctxt before clearing WB!" << endmsg;
536  finalSC = StatusCode::FAILURE;
537  continue;
538  }
539  if ( m_algExecStateSvc->eventStatus( *thisFinishedEvtContext ) != EventStatus::Success ) {
540  ( m_abortOnFailure ? fatal() : error() ) << "Failed event detected on " << thisFinishedEvtContext << endmsg;
541  if ( m_abortOnFailure ) finalSC = StatusCode::FAILURE;
542  }
543  // shouldn't these incidents move to the forward scheduler?
544  // If we want to consume incidents with an algorithm at the end of the graph
545  // we need to add this to forward scheduler lambda action,
546  // otherwise we have to do this serially on this thread!
547  m_incidentSvc->fireIncident( Incident( name(), IncidentType::EndProcessing, *thisFinishedEvtContext ) );
548  m_incidentSvc->fireIncident( Incident( name(), IncidentType::EndEvent, *thisFinishedEvtContext ) );
549 
550  DEBUG_MSG << "Clearing slot " << thisFinishedEvtContext->slot() << " (event " << thisFinishedEvtContext->evt()
551  << ") of the whiteboard" << endmsg;
552 
553  StatusCode sc = clearWBSlot( thisFinishedEvtContext->slot() );
554  if ( !sc.isSuccess() )
555  error() << "Whiteboard slot " << thisFinishedEvtContext->slot() << " could not be properly cleared";
556 
557  delete thisFinishedEvtContext;
558 
559  ++finishedEvts;
560  }
561  return finalSC;
562 }

◆ executeEvent()

StatusCode HiveSlimEventLoopMgr::executeEvent ( EventContext &&  ctx)
override

implementation of IEventProcessor::executeEvent(EventContext&&)

Definition at line 272 of file HiveSlimEventLoopMgr.cpp.

272  {
273 
275 
276  // Check if event number is in blacklist
277  if ( m_blackListBS != nullptr ) { // we are processing a finite number of events, use bitset blacklist
278  if ( m_blackListBS->test( ctx.evt() ) ) {
279  VERBOSE_MSG << "Event " << ctx.evt() << " on black list" << endmsg;
280  m_whiteboard->freeStore( ctx.slot() ).ignore( /* AUTOMATICALLY ADDED FOR gaudi/Gaudi!763 */ );
282  }
283  } else if ( std::binary_search( m_eventNumberBlacklist.begin(), m_eventNumberBlacklist.end(), ctx.evt() ) ) {
284  VERBOSE_MSG << "Event " << ctx.evt() << " on black list" << endmsg;
285  m_whiteboard->freeStore( ctx.slot() ).ignore( /* AUTOMATICALLY ADDED FOR gaudi/Gaudi!763 */ );
287  }
288 
289  VERBOSE_MSG << "Beginning to process event " << ctx.evt() << endmsg;
290 
291  // An incident may schedule a stop, in which case is better to exit before the actual execution.
292  if ( m_scheduledStop ) {
293  always() << "Terminating event processing loop due to a stop scheduled by an incident listener" << endmsg;
294  return StatusCode::SUCCESS;
295  }
296 
297  // Fire BeginEvent "Incident"
298  m_incidentSvc->fireIncident( std::make_unique<Incident>( name(), IncidentType::BeginEvent, ctx ) );
299 
300  // Now add event to the scheduler
301  VERBOSE_MSG << "Adding event " << ctx.evt() << ", slot " << ctx.slot() << " to the scheduler" << endmsg;
302 
303  m_incidentSvc->fireIncident( std::make_unique<Incident>( name(), IncidentType::BeginProcessing, ctx ) );
304 
305  StatusCode addEventStatus = m_schedulerSvc->pushNewEvent( new EventContext{ std::move( ctx ) } );
306 
307  // If this fails, we need to wait for something to complete
308  if ( !addEventStatus.isSuccess() ) {
309  fatal() << "An event processing slot should be now free in the scheduler, but it appears not to be the case."
310  << endmsg;
311  }
312 
313  return StatusCode::SUCCESS;
314 }

◆ executeRun()

StatusCode HiveSlimEventLoopMgr::executeRun ( int  maxevt)
override

implementation of IEventProcessor::executeRun()

Definition at line 319 of file HiveSlimEventLoopMgr.cpp.

319  {
320  StatusCode sc;
321  bool eventfailed = false;
322 
323  if ( maxevt > 0 ) { // finite number of events to process
324  const unsigned int umaxevt = static_cast<unsigned int>( maxevt );
325  m_blackListBS = std::make_unique<boost::dynamic_bitset<>>( maxevt ); // all initialized to zero
326  for ( unsigned int i = 0; i < m_eventNumberBlacklist.size() && m_eventNumberBlacklist[i] <= umaxevt;
327  ++i ) { // black list is sorted in init
328  m_blackListBS->set( m_eventNumberBlacklist[i], true );
329  }
330  }
331 
332  // Call now the nextEvent(...)
333  sc = nextEvent( maxevt );
334  if ( sc.isFailure() ) eventfailed = true;
335 
336  m_blackListBS.reset( nullptr );
337 
338  return eventfailed ? StatusCode::FAILURE : StatusCode::SUCCESS;
339 }

◆ finalize()

StatusCode HiveSlimEventLoopMgr::finalize ( )
override

implementation of IService::finalize

Definition at line 210 of file HiveSlimEventLoopMgr.cpp.

210  {
211 
212  StatusCode scRet;
214 
215  if ( sc.isFailure() ) {
216  scRet = StatusCode::FAILURE;
217  error() << "Problems finalizing Service base class" << endmsg;
218  }
219 
220  // Save Histograms Now
221  if ( m_histoPersSvc ) {
222  HistogramAgent agent;
223  sc = m_histoDataMgrSvc->traverseTree( &agent );
224  if ( sc.isSuccess() ) {
225  const IDataSelector& objects = agent.selectedObjects();
226  // skip /stat entry!
227  sc = std::accumulate( begin( objects ), end( objects ), sc, [&]( StatusCode s, const auto& i ) {
228  IOpaqueAddress* pAddr = nullptr;
229  StatusCode iret = m_histoPersSvc->createRep( i, pAddr );
230  if ( iret.isSuccess() ) i->registry()->setAddress( pAddr );
231  return s.isFailure() ? s : iret;
232  } );
233  sc = std::accumulate( begin( objects ), end( objects ), sc, [&]( StatusCode s, const auto& i ) {
234  IRegistry* reg = i->registry();
235  StatusCode iret = m_histoPersSvc->fillRepRefs( reg->address(), i );
236  return s.isFailure() ? s : iret;
237  } );
238  if ( sc.isSuccess() ) {
239  info() << "Histograms converted successfully according to request." << endmsg;
240  } else {
241  error() << "Error while saving Histograms." << endmsg;
242  }
243  } else {
244  error() << "Error while traversing Histogram data store" << endmsg;
245  }
246  }
247 
248  scRet = sc;
249 
250  // Release event selector context
251  if ( m_evtSelector && m_evtContext ) {
252  m_evtSelector->releaseContext( m_evtContext ).ignore();
253  m_evtContext = nullptr;
254  }
255 
257 
258  // Release all interfaces...
261 
265 
266  return scRet;
267 }

◆ getEventRoot()

StatusCode HiveSlimEventLoopMgr::getEventRoot ( IOpaqueAddress *&  refpAddr)

Create event address using event selector.

Definition at line 453 of file HiveSlimEventLoopMgr.cpp.

453  {
454  refpAddr = nullptr;
455  StatusCode sc = m_evtSelector->next( *m_evtContext );
456  if ( sc.isFailure() ) return sc;
457  // Create root address and assign address to data service
458  sc = m_evtSelector->createAddress( *m_evtContext, refpAddr );
459  if ( sc.isSuccess() ) return sc;
460  sc = m_evtSelector->next( *m_evtContext );
461  if ( sc.isFailure() ) return sc;
462  sc = m_evtSelector->createAddress( *m_evtContext, refpAddr );
463  if ( !sc.isSuccess() ) warning() << "Error creating IOpaqueAddress." << endmsg;
464  return sc;
465 }

◆ initialize()

StatusCode HiveSlimEventLoopMgr::initialize ( )
override

implementation of IService::initialize

Definition at line 43 of file HiveSlimEventLoopMgr.cpp.

43  {
45  if ( !sc.isSuccess() ) {
46  error() << "Failed to initialize Service Base class." << endmsg;
47  return StatusCode::FAILURE;
48  }
49 
50  // Get the references to the services that are needed by the ApplicationMgr itself
51  m_incidentSvc = serviceLocator()->service( "IncidentSvc" );
52  if ( !m_incidentSvc ) {
53  fatal() << "Error retrieving IncidentSvc." << endmsg;
54  return StatusCode::FAILURE;
55  }
56 
57  // Setup access to event data services
58  m_evtDataMgrSvc = serviceLocator()->service( "EventDataSvc" );
59  if ( !m_evtDataMgrSvc ) {
60  fatal() << "Error retrieving EventDataSvc interface IDataManagerSvc." << endmsg;
61  return StatusCode::FAILURE;
62  }
63  m_whiteboard = serviceLocator()->service( "EventDataSvc" );
64  if ( !m_whiteboard ) {
65  fatal() << "Error retrieving EventDataSvc interface IHiveWhiteBoard." << endmsg;
66  return StatusCode::FAILURE;
67  }
69  if ( !m_schedulerSvc ) {
70  fatal() << "Error retrieving SchedulerSvc interface IScheduler." << endmsg;
71  return StatusCode::FAILURE;
72  }
73  // Obtain the IProperty of the ApplicationMgr
75  if ( !m_appMgrProperty ) {
76  fatal() << "IProperty interface not found in ApplicationMgr." << endmsg;
77  return StatusCode::FAILURE;
78  }
79 
80  // We do not expect a Event Selector necessarily being declared
81  setProperty( m_appMgrProperty->getProperty( "EvtSel" ) ).ignore();
82 
83  if ( m_evtsel != "NONE" || m_evtsel.length() == 0 ) {
84  m_evtSelector = serviceLocator()->service( "EventSelector" );
85  if ( m_evtSelector ) {
86  // Setup Event Selector
87  sc = m_evtSelector->createContext( m_evtContext );
88  if ( !sc.isSuccess() ) {
89  fatal() << "Can not create the event selector Context." << endmsg;
90  return sc;
91  }
92  } else {
93  fatal() << "EventSelector not found." << endmsg;
94  return sc;
95  }
96  } else {
97  m_evtSelector = 0;
98  m_evtContext = 0;
99  if ( m_warnings ) {
100  warning() << "Unable to locate service \"EventSelector\" " << endmsg;
101  warning() << "No events will be processed from external input." << endmsg;
102  }
103  }
104 
105  // Setup access to histogramming services
106  m_histoDataMgrSvc = serviceLocator()->service( "HistogramDataSvc" );
107  if ( !m_histoDataMgrSvc ) {
108  fatal() << "Error retrieving HistogramDataSvc." << endmsg;
109  return sc;
110  }
111  // Setup histogram persistency
112  m_histoPersSvc = serviceLocator()->service( "HistogramPersistencySvc" );
113  if ( !m_histoPersSvc ) {
114  warning() << "Histograms cannot not be saved - though required." << endmsg;
115  return sc;
116  }
117 
118  // Setup algorithm resource pool
119  m_algResourcePool = serviceLocator()->service( "AlgResourcePool" );
120  if ( !m_algResourcePool ) {
121  fatal() << "Error retrieving AlgResourcePool" << endmsg;
122  return StatusCode::FAILURE;
123  }
124 
125  m_algExecStateSvc = serviceLocator()->service( "AlgExecStateSvc" );
126  if ( !m_algExecStateSvc ) {
127  fatal() << "Error retrieving AlgExecStateSvc" << endmsg;
128  return StatusCode::FAILURE;
129  }
130 
132  info() << "Found " << m_eventNumberBlacklist.size() << " events in black list" << endmsg;
133 
134  return StatusCode::SUCCESS;
135 }

◆ nextEvent()

StatusCode HiveSlimEventLoopMgr::nextEvent ( int  maxevt)
override

implementation of IService::nextEvent

Definition at line 361 of file HiveSlimEventLoopMgr.cpp.

361  {
362 
363  // Calculate runtime
365 
366  // Reset the application return code.
368 
369  int finishedEvts = 0;
370  int createdEvts = 0;
371  int skippedEvts = 0;
372  info() << "Starting loop on events" << endmsg;
373  // Loop until the finished events did not reach the maxevt number
374  bool loop_ended = false;
375  // Run the first event before spilling more than one
376  bool newEvtAllowed = false;
377 
378  constexpr double oneOver1024 = 1. / 1024.;
379 
380  uint iteration = 0;
381  auto start_time = Clock::now();
382  StatusCode finalSC;
383  while ( !loop_ended && ( maxevt < 0 || ( finishedEvts + skippedEvts ) < maxevt ) ) {
384  DEBUG_MSG << "work loop iteration " << iteration++ << endmsg;
385  // if the created events did not reach maxevt, create an event
386  if ( ( newEvtAllowed || createdEvts == 0 ) && // Launch the first event alone
387  createdEvts >= 0 && // The events are not finished with an unlimited number of events
388  ( createdEvts < maxevt || maxevt < 0 ) && // The events are not finished with a limited number of events
389  m_schedulerSvc->freeSlots() > 0 && // There are still free slots in the scheduler
390  m_whiteboard->freeSlots() > 0 && // There are still free slots in the whiteboard
391  !m_scheduledStop // There is not a scheduled stop
392  ) {
393 
394  if ( 1 == createdEvts ) // reset counter to count from event 1
395  start_time = Clock::now();
396 
397  DEBUG_MSG << "createdEvts: " << createdEvts << ", freeslots: " << m_schedulerSvc->freeSlots() << endmsg;
398  // DP remove to remove the syscalls...
399  // if (0!=createdEvts){
400  // info() << "Event Number = " << createdEvts
401  // << " WSS (MB) = " << System::mappedMemory(System::MemoryUnit::kByte)*oneOver1024
402  // << " Time (s) = " << secsFromStart(start_time) << endmsg;
403  // }
404 
405  // TODO can we adapt the interface of executeEvent for a nicer solution?
407  while ( !sc.isSuccess() // we haven't created an event yet
408  && ( createdEvts < maxevt || maxevt < 0 ) ) { // redunant check for maxEvts, can we do better?
409  {
410  auto ctx = createEventContext();
411  if ( !ctx.valid() ) {
412  createdEvts = -1;
413  break; // invalid context means end of loop
414  }
415  sc = executeEvent( std::move( ctx ) );
416  }
417  if ( sc.isRecoverable() ) { // we skipped an event
418  ++skippedEvts;
419  } else if ( sc.isFailure() ) { // exit immediatly
420  return sc;
421  } // else we have an success --> exit loop
422  ++createdEvts;
423  }
424 
425  } // end if condition createdEvts < maxevt
426  else {
427  // all the events were created but not all finished or the slots were
428  // all busy: the scheduler should finish its job
429 
430  DEBUG_MSG << "Draining the scheduler" << endmsg;
431 
432  // Pull out of the scheduler the finished events
433  if ( drainScheduler( finishedEvts ).isFailure() ) {
434  loop_ended = true;
435  finalSC = StatusCode::FAILURE;
436  }
437  newEvtAllowed = true;
438  }
439  } // end main loop on finished events
440  auto end_time = Clock::now();
441 
442  info() << "---> Loop Finished (skipping 1st evt) - "
443  << " WSS " << System::mappedMemory( System::MemoryUnit::kByte ) * oneOver1024 << " total time "
444  << std::chrono::duration_cast<std::chrono::nanoseconds>( end_time - start_time ).count() << endmsg;
445  info() << skippedEvts << " events were SKIPed" << endmsg;
446 
447  return finalSC;
448 }

◆ reinitialize()

StatusCode HiveSlimEventLoopMgr::reinitialize ( )
override

implementation of IService::reinitialize

Definition at line 139 of file HiveSlimEventLoopMgr.cpp.

139  {
140 
141  // Check to see whether a new Event Selector has been specified
142  setProperty( m_appMgrProperty->getProperty( "EvtSel" ) ).ignore( /* AUTOMATICALLY ADDED FOR gaudi/Gaudi!763 */ );
143  if ( m_evtsel != "NONE" || m_evtsel.empty() ) {
144  auto theSvc = serviceLocator()->service( "EventSelector" );
145  auto theEvtSel = theSvc.as<IEvtSelector>();
146  StatusCode sc;
147  if ( theEvtSel && ( theEvtSel.get() != m_evtSelector.get() ) ) {
148  // Setup Event Selector
149  if ( m_evtSelector.get() && m_evtContext ) {
150  // Need to release context before switching to new event selector
151  m_evtSelector->releaseContext( m_evtContext ).ignore( /* AUTOMATICALLY ADDED FOR gaudi/Gaudi!763 */ );
152  m_evtContext = nullptr;
153  }
154  m_evtSelector = theEvtSel;
155  if ( theSvc->FSMState() == Gaudi::StateMachine::INITIALIZED ) {
156  sc = theSvc->reinitialize();
157  if ( !sc.isSuccess() ) {
158  error() << "Failure Reinitializing EventSelector " << theSvc->name() << endmsg;
159  return sc;
160  }
161  } else {
162  sc = theSvc->sysInitialize();
163  if ( !sc.isSuccess() ) {
164  error() << "Failure Initializing EventSelector " << theSvc->name() << endmsg;
165  return sc;
166  }
167  }
168  sc = m_evtSelector->createContext( m_evtContext );
169  if ( !sc.isSuccess() ) {
170  error() << "Can not create Context " << theSvc->name() << endmsg;
171  return sc;
172  }
173 
174  } else if ( m_evtSelector ) {
175  if ( m_evtContext ) {
176  m_evtSelector->releaseContext( m_evtContext ).ignore( /* AUTOMATICALLY ADDED FOR gaudi/Gaudi!763 */ );
177  m_evtContext = nullptr;
178  }
179  sc = m_evtSelector->createContext( m_evtContext );
180  if ( !sc.isSuccess() ) {
181  error() << "Can not create Context " << theSvc->name() << endmsg;
182  return sc;
183  }
184  }
185  } else if ( m_evtSelector && m_evtContext ) {
186  m_evtSelector->releaseContext( m_evtContext ).ignore( /* AUTOMATICALLY ADDED FOR gaudi/Gaudi!763 */ );
187  m_evtSelector = nullptr;
188  m_evtContext = nullptr;
189  }
190  return StatusCode::SUCCESS;
191 }

◆ stop()

StatusCode HiveSlimEventLoopMgr::stop ( )
override

implementation of IService::stop

Definition at line 197 of file HiveSlimEventLoopMgr.cpp.

197  {
198  if ( !m_endEventFired ) {
199  // Fire pending EndEvent incident
200  m_incidentSvc->fireIncident( Incident( name(), IncidentType::EndEvent ) );
201  m_endEventFired = true;
202  }
203  return StatusCode::SUCCESS;
204 }

◆ stopRun()

StatusCode HiveSlimEventLoopMgr::stopRun ( )
override

implementation of IEventProcessor::stopRun()

Definition at line 344 of file HiveSlimEventLoopMgr.cpp.

344  {
345  // Set the application return code
346  auto appmgr = serviceLocator()->as<IProperty>();
348  error() << "Could not set return code of the application (" << Gaudi::ReturnCode::ScheduledStop << ")" << endmsg;
349  }
350  m_scheduledStop = true;
351  return StatusCode::SUCCESS;
352 }

Member Data Documentation

◆ m_abortEventListener

SmartIF<IIncidentListener> HiveSlimEventLoopMgr::m_abortEventListener
protected

Instance of the incident listener waiting for AbortEvent.

Definition at line 73 of file HiveSlimEventLoopMgr.h.

◆ m_abortOnFailure

Gaudi::Property<bool> HiveSlimEventLoopMgr::m_abortOnFailure { this, "AbortOnFailure", true, "Abort job on event failure" }
protected

Definition at line 41 of file HiveSlimEventLoopMgr.h.

◆ m_algExecStateSvc

SmartIF<IAlgExecStateSvc> HiveSlimEventLoopMgr::m_algExecStateSvc
protected

Reference to the AlgExecStateSvc.

Definition at line 58 of file HiveSlimEventLoopMgr.h.

◆ m_algResourcePool

SmartIF<IAlgResourcePool> HiveSlimEventLoopMgr::m_algResourcePool
protected

Reference to the Algorithm resource pool.

Definition at line 56 of file HiveSlimEventLoopMgr.h.

◆ m_appMgrProperty

SmartIF<IProperty> HiveSlimEventLoopMgr::m_appMgrProperty
protected

Property interface of ApplicationMgr.

Definition at line 60 of file HiveSlimEventLoopMgr.h.

◆ m_blackListBS

std::unique_ptr<boost::dynamic_bitset<> > HiveSlimEventLoopMgr::m_blackListBS
protected

Definition at line 80 of file HiveSlimEventLoopMgr.h.

◆ m_endEventFired

bool HiveSlimEventLoopMgr::m_endEventFired = false
protected

Flag to avoid to fire the EnvEvent incident twice in a row (and also not before the first event)

Definition at line 63 of file HiveSlimEventLoopMgr.h.

◆ m_eventNumberBlacklist

Gaudi::Property<std::vector<unsigned int> > HiveSlimEventLoopMgr::m_eventNumberBlacklist { this, "EventNumberBlackList", {}, "" }
protected

Definition at line 40 of file HiveSlimEventLoopMgr.h.

◆ m_evtContext

IEvtSelector::Context* HiveSlimEventLoopMgr::m_evtContext = nullptr
protected

Event Iterator.

Definition at line 48 of file HiveSlimEventLoopMgr.h.

◆ m_evtDataMgrSvc

SmartIF<IDataManagerSvc> HiveSlimEventLoopMgr::m_evtDataMgrSvc
protected

Reference to the Event Data Service's IDataManagerSvc interface.

Definition at line 44 of file HiveSlimEventLoopMgr.h.

◆ m_evtsel

Gaudi::Property<std::string> HiveSlimEventLoopMgr::m_evtsel { this, "EvtSel", "", "" }
protected

Definition at line 36 of file HiveSlimEventLoopMgr.h.

◆ m_evtSelector

SmartIF<IEvtSelector> HiveSlimEventLoopMgr::m_evtSelector
protected

Reference to the Event Selector.

Definition at line 46 of file HiveSlimEventLoopMgr.h.

◆ m_histoDataMgrSvc

SmartIF<IDataManagerSvc> HiveSlimEventLoopMgr::m_histoDataMgrSvc
protected

Reference to the Histogram Data Service.

Definition at line 50 of file HiveSlimEventLoopMgr.h.

◆ m_histoPersSvc

SmartIF<IConversionSvc> HiveSlimEventLoopMgr::m_histoPersSvc
protected

Reference to the Histogram Persistency Service.

Definition at line 52 of file HiveSlimEventLoopMgr.h.

◆ m_histPersName

Gaudi::Property<std::string> HiveSlimEventLoopMgr::m_histPersName { this, "HistogramPersistency", "", "" }
protected

Definition at line 35 of file HiveSlimEventLoopMgr.h.

◆ m_incidentSvc

SmartIF<IIncidentSvc> HiveSlimEventLoopMgr::m_incidentSvc
protected

Reference to the incident service.

Definition at line 77 of file HiveSlimEventLoopMgr.h.

◆ m_nevt

EventContext::ContextEvt_t HiveSlimEventLoopMgr::m_nevt { 0 }
protected

Definition at line 82 of file HiveSlimEventLoopMgr.h.

◆ m_scheduledStop

bool HiveSlimEventLoopMgr::m_scheduledStop = false
protected

Scheduled stop of event processing.

Definition at line 75 of file HiveSlimEventLoopMgr.h.

◆ m_schedulerName

Gaudi::Property<std::string> HiveSlimEventLoopMgr::m_schedulerName
protected
Initial value:
{ this, "SchedulerName", "AvalancheSchedulerSvc",
"Name of the scheduler to be used" }

Definition at line 38 of file HiveSlimEventLoopMgr.h.

◆ m_schedulerSvc

SmartIF<IScheduler> HiveSlimEventLoopMgr::m_schedulerSvc
protected

A shortcut for the scheduler.

Definition at line 65 of file HiveSlimEventLoopMgr.h.

◆ m_warnings

Gaudi::Property<bool> HiveSlimEventLoopMgr::m_warnings { this, "Warnings", true, "Set this property to false to suppress warning messages" }
protected

Definition at line 37 of file HiveSlimEventLoopMgr.h.

◆ m_whiteboard

SmartIF<IHiveWhiteBoard> HiveSlimEventLoopMgr::m_whiteboard
protected

Reference to the Whiteboard.

Definition at line 54 of file HiveSlimEventLoopMgr.h.


The documentation for this class was generated from the following files:
Gaudi::ReturnCode::Success
constexpr int Success
Definition: AppReturnCode.h:26
HiveSlimEventLoopMgr::m_appMgrProperty
SmartIF< IProperty > m_appMgrProperty
Property interface of ApplicationMgr.
Definition: HiveSlimEventLoopMgr.h:60
HiveSlimEventLoopMgr::m_abortOnFailure
Gaudi::Property< bool > m_abortOnFailure
Definition: HiveSlimEventLoopMgr.h:41
GaudiPython.Bindings.DataObject
DataObject
Definition: Bindings.py:82
StatusCode::isRecoverable
bool isRecoverable() const
Definition: StatusCode.h:318
Service::initialize
StatusCode initialize() override
Definition: Service.cpp:118
HiveSlimEventLoopMgr::m_schedulerSvc
SmartIF< IScheduler > m_schedulerSvc
A shortcut for the scheduler.
Definition: HiveSlimEventLoopMgr.h:65
HiveSlimEventLoopMgr::m_eventNumberBlacklist
Gaudi::Property< std::vector< unsigned int > > m_eventNumberBlacklist
Definition: HiveSlimEventLoopMgr.h:40
std::move
T move(T... args)
StatusCode::isSuccess
bool isSuccess() const
Definition: StatusCode.h:314
HiveSlimEventLoopMgr::clearWBSlot
StatusCode clearWBSlot(int evtSlot)
Clear a slot in the WB.
Definition: HiveSlimEventLoopMgr.cpp:566
gaudirun.s
string s
Definition: gaudirun.py:346
IOpaqueAddress
Definition: IOpaqueAddress.h:33
std::vector
STL class.
SmartIF::reset
void reset(TYPE *ptr=nullptr)
Set the internal pointer to the passed one disposing of the old one.
Definition: SmartIF.h:96
PropertyHolder< CommonMessaging< implements< IService, IProperty, IStateful > > >::setProperty
StatusCode setProperty(const Gaudi::Details::PropertyBase &p)
Set the property from a property.
Definition: IProperty.h:39
HiveSlimEventLoopMgr::m_endEventFired
bool m_endEventFired
Flag to avoid to fire the EnvEvent incident twice in a row (and also not before the first event)
Definition: HiveSlimEventLoopMgr.h:63
GaudiException
Definition: GaudiException.h:31
IEvtSelector
Definition: IEvtSelector.h:28
HiveSlimEventLoopMgr::m_evtDataMgrSvc
SmartIF< IDataManagerSvc > m_evtDataMgrSvc
Reference to the Event Data Service's IDataManagerSvc interface.
Definition: HiveSlimEventLoopMgr.h:44
EventStatus::Success
@ Success
Definition: IAlgExecStateSvc.h:72
VERBOSE_MSG
#define VERBOSE_MSG
Definition: HiveSlimEventLoopMgr.cpp:33
HiveSlimEventLoopMgr::createEventContext
EventContext createEventContext() override
implementation of IEventProcessor::createEventContext()
Definition: HiveSlimEventLoopMgr.cpp:491
IRegistry
Definition: IRegistry.h:32
HiveSlimEventLoopMgr::m_nevt
EventContext::ContextEvt_t m_nevt
Definition: HiveSlimEventLoopMgr.h:82
HiveSlimEventLoopMgr::m_algResourcePool
SmartIF< IAlgResourcePool > m_algResourcePool
Reference to the Algorithm resource pool.
Definition: HiveSlimEventLoopMgr.h:56
std::sort
T sort(T... args)
std::unique_ptr::reset
T reset(T... args)
Service::finalize
StatusCode finalize() override
Definition: Service.cpp:222
std::chrono::high_resolution_clock
std::vector::push_back
T push_back(T... args)
HistogramAgent::selectedObjects
const IDataSelector & selectedObjects() const
Return the set of selected DataObjects.
Definition: HistogramAgent.h:33
HistogramAgent
Definition: HistogramAgent.h:28
IProperty
Definition: IProperty.h:33
Gaudi::Utils::begin
AttribStringParser::Iterator begin(const AttribStringParser &parser)
Definition: AttribStringParser.h:136
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
StatusCode
Definition: StatusCode.h:65
HiveSlimEventLoopMgr::m_histoDataMgrSvc
SmartIF< IDataManagerSvc > m_histoDataMgrSvc
Reference to the Histogram Data Service.
Definition: HiveSlimEventLoopMgr.h:50
Gaudi::setAppReturnCode
StatusCode setAppReturnCode(SmartIF< IProperty > &appmgr, int value, bool force=false)
Set the application return code.
Definition: AppReturnCode.h:59
std::to_string
T to_string(T... args)
Gaudi::ReturnCode::ScheduledStop
constexpr int ScheduledStop
Definition: AppReturnCode.h:35
HiveSlimEventLoopMgr::m_incidentSvc
SmartIF< IIncidentSvc > m_incidentSvc
Reference to the incident service.
Definition: HiveSlimEventLoopMgr.h:77
HiveSlimEventLoopMgr::m_warnings
Gaudi::Property< bool > m_warnings
Definition: HiveSlimEventLoopMgr.h:37
std::accumulate
T accumulate(T... args)
endmsg
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
Definition: MsgStream.h:202
DEBUG_MSG
#define DEBUG_MSG
Definition: HiveSlimEventLoopMgr.cpp:30
HiveSlimEventLoopMgr::m_scheduledStop
bool m_scheduledStop
Scheduled stop of event processing.
Definition: HiveSlimEventLoopMgr.h:75
StatusCode::ignore
const StatusCode & ignore() const
Allow discarding a StatusCode without warning.
Definition: StatusCode.h:139
HiveSlimEventLoopMgr::drainScheduler
StatusCode drainScheduler(int &finishedEvents)
Drain the scheduler from all actions that may be queued.
Definition: HiveSlimEventLoopMgr.cpp:509
SmartIF::as
SmartIF< IFace > as() const
return a new SmartIF instance to another interface
Definition: SmartIF.h:117
IRegistry::address
virtual IOpaqueAddress * address() const =0
Retrieve opaque storage address.
StatusCode::isFailure
bool isFailure() const
Definition: StatusCode.h:129
HiveSlimEventLoopMgr::m_whiteboard
SmartIF< IHiveWhiteBoard > m_whiteboard
Reference to the Whiteboard.
Definition: HiveSlimEventLoopMgr.h:54
HiveSlimEventLoopMgr::executeEvent
StatusCode executeEvent(EventContext &&ctx) override
implementation of IEventProcessor::executeEvent(EventContext&&)
Definition: HiveSlimEventLoopMgr.cpp:272
StatusCode::SUCCESS
constexpr static const auto SUCCESS
Definition: StatusCode.h:100
SmartIF::get
TYPE * get() const
Get interface pointer.
Definition: SmartIF.h:86
HiveSlimEventLoopMgr::m_blackListBS
std::unique_ptr< boost::dynamic_bitset<> > m_blackListBS
Definition: HiveSlimEventLoopMgr.h:80
HiveSlimEventLoopMgr::m_evtContext
IEvtSelector::Context * m_evtContext
Event Iterator.
Definition: HiveSlimEventLoopMgr.h:48
HiveSlimEventLoopMgr::nextEvent
StatusCode nextEvent(int maxevt) override
implementation of IService::nextEvent
Definition: HiveSlimEventLoopMgr.cpp:361
Gaudi::StateMachine::INITIALIZED
@ INITIALIZED
Definition: StateMachine.h:25
HiveSlimEventLoopMgr::m_algExecStateSvc
SmartIF< IAlgExecStateSvc > m_algExecStateSvc
Reference to the AlgExecStateSvc.
Definition: HiveSlimEventLoopMgr.h:58
System::kByte
@ kByte
Definition: Memory.h:65
EventContext
Definition: EventContext.h:34
HiveSlimEventLoopMgr::declareEventRootAddress
StatusCode declareEventRootAddress()
Declare the root address of the event.
Definition: HiveSlimEventLoopMgr.cpp:469
System::mappedMemory
GAUDI_API long mappedMemory(MemoryUnit unit=kByte, InfoType fetch=Memory, long pid=-1)
Basic Process Information: priority boost.
Definition: Memory.cpp:197
HiveSlimEventLoopMgr::m_schedulerName
Gaudi::Property< std::string > m_schedulerName
Definition: HiveSlimEventLoopMgr.h:38
HiveSlimEventLoopMgr::getEventRoot
StatusCode getEventRoot(IOpaqueAddress *&refpAddr)
Create event address using event selector.
Definition: HiveSlimEventLoopMgr.cpp:453
IOTest.end
end
Definition: IOTest.py:125
StatusCode::FAILURE
constexpr static const auto FAILURE
Definition: StatusCode.h:101
HiveSlimEventLoopMgr::m_histoPersSvc
SmartIF< IConversionSvc > m_histoPersSvc
Reference to the Histogram Persistency Service.
Definition: HiveSlimEventLoopMgr.h:52
std::binary_search
T binary_search(T... args)
HiveSlimEventLoopMgr::m_evtsel
Gaudi::Property< std::string > m_evtsel
Definition: HiveSlimEventLoopMgr.h:36
StatusCode::RECOVERABLE
constexpr static const auto RECOVERABLE
Definition: StatusCode.h:102
Incident
Definition: Incident.h:27
Service::serviceLocator
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator
Definition: Service.cpp:335
HiveSlimEventLoopMgr::m_evtSelector
SmartIF< IEvtSelector > m_evtSelector
Reference to the Event Selector.
Definition: HiveSlimEventLoopMgr.h:46