The Gaudi Framework  v32r2 (46d42edc)
HiveSlimEventLoopMgr.h
Go to the documentation of this file.
1 #ifndef GAUDIHIVE_HIVESLIMEVENTLOOPMGR_H
2 #define GAUDIHIVE_HIVESLIMEVENTLOOPMGR_H 1
3 
4 // Framework include files
12 #include "GaudiKernel/IScheduler.h"
14 #include "GaudiKernel/SmartIF.h"
15 
16 // External Libraries
17 #include <boost/dynamic_bitset.hpp>
18 
19 // STL
20 #include <memory>
21 
22 class HiveSlimEventLoopMgr : public extends<Service, IEventProcessor> {
23 
24 protected:
25  Gaudi::Property<std::string> m_histPersName{this, "HistogramPersistency", "", ""};
26  Gaudi::Property<std::string> m_evtsel{this, "EvtSel", "", ""};
27  Gaudi::Property<bool> m_warnings{this, "Warnings", true, "Set this property to false to suppress warning messages"};
28  Gaudi::Property<std::string> m_schedulerName{this, "SchedulerName", "AvalancheSchedulerSvc",
29  "Name of the scheduler to be used"};
30  Gaudi::Property<std::vector<unsigned int>> m_eventNumberBlacklist{this, "EventNumberBlackList", {}, ""};
31  Gaudi::Property<bool> m_abortOnFailure{this, "AbortOnFailure", true, "Abort job on event failure"};
32 
53  bool m_endEventFired = false;
57  StatusCode clearWBSlot( int evtSlot );
61  StatusCode drainScheduler( int& finishedEvents );
65  bool m_scheduledStop = false;
68 
69  // if finite number of evts is processed use bitset
71 
73 
74 public:
75  // inherit base class constructor
76  using extends::extends;
77 
78  ~HiveSlimEventLoopMgr() override;
79 
83  StatusCode initialize() override;
85  StatusCode reinitialize() override;
87  StatusCode stop() override;
89  StatusCode finalize() override;
91  StatusCode nextEvent( int maxevt ) override;
97  StatusCode executeRun( int maxevt ) override;
99  StatusCode stopRun() override;
100 };
101 #endif // GAUDIHIVE_HIVESLIMEVENTLOOPMGR_H
StatusCode clearWBSlot(int evtSlot)
Clear a slot in the WB.
Gaudi::Property< std::string > m_evtsel
SmartIF< IIncidentSvc > m_incidentSvc
Reference to the incident service.
std::unique_ptr< boost::dynamic_bitset<> > m_blackListBS
SmartIF< IDataManagerSvc > m_evtDataMgrSvc
Reference to the Event Data Service's IDataManagerSvc interface.
StatusCode declareEventRootAddress()
Declare the root address of the event.
Gaudi::Property< bool > m_abortOnFailure
EventContext createEventContext() override
implementation of IEventProcessor::createEventContext()
Implementation of property with value of concrete type.
Definition: Property.h:352
StatusCode drainScheduler(int &finishedEvents)
Drain the scheduler from all actions that may be queued.
SmartIF< IHiveWhiteBoard > m_whiteboard
Reference to the Whiteboard.
SmartIF< IScheduler > m_schedulerSvc
A shortcut for the scheduler.
bool m_scheduledStop
Scheduled stop of event processing.
Gaudi::Property< std::vector< unsigned int > > m_eventNumberBlacklist
This class represents an entry point to all the event specific data.
Definition: EventContext.h:24
SmartIF< IProperty > m_appMgrProperty
Property interface of ApplicationMgr.
Gaudi::Property< bool > m_warnings
StatusCode finalize() override
implementation of IService::finalize
StatusCode stopRun() override
implementation of IEventProcessor::stopRun()
size_t ContextEvt_t
Definition: EventContext.h:27
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
StatusCode executeRun(int maxevt) override
implementation of IEventProcessor::executeRun()
StatusCode getEventRoot(IOpaqueAddress *&refpAddr)
Create event address using event selector.
StatusCode initialize() override
implementation of IService::initialize
SmartIF< IAlgExecStateSvc > m_algExecStateSvc
Reference to the AlgExecStateSvc.
STL class.
SmartIF< IConversionSvc > m_histoPersSvc
Reference to the Histogram Persistency Service.
Gaudi::Property< std::string > m_schedulerName
Base class used to extend a class implementing other interfaces.
Definition: extends.h:10
SmartIF< IDataManagerSvc > m_histoDataMgrSvc
Reference to the Histogram Data Service.
SmartIF< IEvtSelector > m_evtSelector
Reference to the Event Selector.
StatusCode executeEvent(EventContext &&ctx) override
implementation of IEventProcessor::executeEvent(EventContext&&)
StatusCode reinitialize() override
implementation of IService::reinitialize
Opaque address interface definition.
int maxevt
Definition: Bootstrap.cpp:260
Gaudi::Property< std::string > m_histPersName
SmartIF< IAlgResourcePool > m_algResourcePool
Reference to the Algorithm resource pool.
StatusCode nextEvent(int maxevt) override
implementation of IService::nextEvent
bool m_endEventFired
Flag to avoid to fire the EnvEvent incident twice in a row (and also not before the first event)
SmartIF< IIncidentListener > m_abortEventListener
Instance of the incident listener waiting for AbortEvent.
StatusCode stop() override
implementation of IService::stop
EventContext::ContextEvt_t m_nevt
IEvtSelector::Context * m_evtContext
Event Iterator.