7#ifndef ATHENASERVICES_ATHENAHIVEEVENTLOOPMGR_H
8#define ATHENASERVICES_ATHENAHIVEEVENTLOOPMGR_H
17#include "GaudiKernel/IIncidentListener.h"
19#include "GaudiKernel/MinimalEventLoopMgr.h"
25#ifndef EVENTINFO_EVENTID_H
31#include "Gaudi/Property.h"
32#include "GaudiKernel/ServiceHandle.h"
33#include "GaudiKernel/ToolHandle.h"
34#include "GaudiKernel/IAlgResourcePool.h"
35#include "GaudiKernel/IEvtSelector.h"
36#include "GaudiKernel/IHiveWhiteBoard.h"
37#include "GaudiKernel/IScheduler.h"
38#include "GaudiKernel/IAlgExecStateSvc.h"
46#include "tbb/concurrent_queue.h"
51struct IDataManagerSvc;
52class IDataProviderSvc;
69 IEventSeek, ICollectionSize, IIncidentListener>,
202 virtual StatusCode
finalize()
override;
204 virtual StatusCode
nextEvent(
int maxevt)
override;
206 virtual StatusCode
executeEvent( EventContext&& ctx )
override;
208 virtual StatusCode
executeRun(
int maxevt)
override;
210 virtual StatusCode
stopRun()
override;
212 virtual StatusCode
stop()
override;
216 virtual StatusCode
seek(
int evt)
override;
218 virtual int curEvent()
const override;
220 virtual int size()
override;
222 virtual void handle(
const Incident& inc)
override;
228 virtual const std::string&
name()
const override {
return Service::name(); }
264 typedef std::list<SmartIF<IAlgorithm> >
ListAlg;
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
Abstract interface for finding the size of an event collection.
Interface for doing garbage collection of conditions objects.
Abstract interface for seeking within an event stream.
MsgStream & msg() const
The standard message stream.
bool msgLvl(const MSG::Level lvl) const
Test the output level.
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
UnsignedIntegerProperty m_eventPrintoutInterval
IEvtSelector * m_evtSelector
Reference to the Event Selector.
virtual StatusCode stopRun() override
implementation of IEventProcessor::stopRun()
virtual void handle(const Incident &inc) override
IIncidentListenet interfaces.
ServiceHandle< IIncidentSvc > IIncidentSvc_t
ServiceHandle< IConversionSvc > IConversionSvc_t
virtual StatusCode initialize() override
implementation of IAppMgrUI::initalize
IntegerProperty m_failureMode
SmartIF< IHiveWhiteBoard > m_whiteboard
Reference to the Whiteboard interface.
StatusCode getEventRoot(IOpaqueAddress *&refpAddr)
Create event address using event selector.
IConversionSvc_t m_histoPersSvc
int drainScheduler(int &finishedEvents)
Drain the scheduler from all actions that may be queued.
number_type m_currentRun
current run number
IAthenaEvtLoopPreSelectTool tool_type
virtual int size() override
Return the size of the collection.
SmartIF< IAlgExecStateSvc > m_aess
Reference to the Algorithm Execution State Svc.
virtual const std::string & name() const override
std::string m_schedulerName
Name of the scheduler to be used.
UnsignedIntegerProperty m_writeInterval
std::string m_whiteboardName
Name of the Whiteboard to be used.
StoreGateSvc * eventStore() const
tool_stats m_toolAccept
tool returns StatusCode::SUCCESS counter
std::vector< unsigned int > tool_stats
virtual StatusCode executeRun(int maxevt) override
implementation of IEventProcessor::executeRun(int maxevt)
tool_store::const_iterator tool_iterator
unsigned int m_nev
events processed
tool_stats m_toolInvoke
tool called counter
AthenaHiveEventLoopMgr(const AthenaHiveEventLoopMgr &)=delete
IIncidentSvc_t m_incidentSvc
Reference to the incident service.
virtual StatusCode stop() override
implementation of IService::stop
ServiceHandle< IEvtIdModifierSvc > IEvtIdModifierSvc_t
bool m_useSecondaryEventNumber
read event number from secondary input
bool m_requireInputAttributeList
require input attribute list
AthenaHiveEventLoopMgr & operator=(const AthenaHiveEventLoopMgr &)=delete
IEvtSelector::Context EvtContext
SmartIF< IProperty > m_appMgrProperty
Property interface of ApplicationMgr.
StoreGateSvc_t m_eventStore
Reference to StoreGateSvc;.
SmartIF< IIncidentListener > m_abortEventListener
Instance of the incident listener waiting for AbortEvent.
StringProperty m_histPersName
ServiceHandle< StoreGateSvc > StoreGateSvc_t
EvtContext * m_evtContext
Gaudi event selector Context (may be used as a cursor by the evt selector)
virtual StatusCode seek(int evt) override
Seek to a given event.
AthenaHiveEventLoopMgr(const std::string &nam, ISvcLocator *svcLoc)
Standard Constructor.
int declareEventRootAddress(EventContext &)
Declare the root address of the event.
AthenaHiveEventLoopMgr()=delete
virtual StatusCode finalize() override
implementation of IAppMgrUI::finalize
EventID::number_type number_type
virtual StatusCode executeEvent(EventContext &&ctx) override
implementation of IEventProcessor::executeEvent(void* par)
IDataManagerSvc_t m_histoDataMgrSvc
Reference to the Histogram Data Service.
EventContext m_lastEventContext
bool m_scheduledStop
Scheduled stop of event processing.
virtual EventContext createEventContext() override
Create event context.
ServiceHandle< IDataManagerSvc > IDataManagerSvc_t
StatusCode initializeAlgorithms()
Initialize all algorithms and output streams.
virtual ~AthenaHiveEventLoopMgr()
Standard Destructor.
tool_stats::const_iterator tool_stats_iterator
StatusCode clearWBSlot(int evtSlot)
Clear a slot in the WB.
ServiceHandle< Athena::IConditionsCleanerSvc > m_conditionsCleaner
tool_store m_tools
internal tool store
virtual void modifyEventContext(EventContext &ctx, const EventID &eID, bool consume_modifier_stream)
std::list< SmartIF< IAlgorithm > > ListAlg
virtual StatusCode writeHistograms(bool force=false)
Dump out histograms as needed.
void setupPreSelectTools(Gaudi::Details::PropertyBase &)
property update handler:sets up the Pre-selection tools
SmartIF< IScheduler > m_schedulerSvc
A shortcut for the scheduler.
virtual int curEvent() const override
Return the current event count.
tool_stats m_toolReject
tool returns StatusCode::FAILURE counter
IEvtIdModifierSvc_t m_evtIdModSvc
SmartIF< IAlgResourcePool > m_algResourcePool
Reference to the Algorithm resource pool.
ToolHandleArray< tool_type > tool_store
virtual StatusCode nextEvent(int maxevt) override
implementation of IAppMgrUI::nextEvent. maxevt==0 returns immediately
virtual StatusCode executeAlgorithms()
Run the algorithms for the current event.
unsigned int m_timeStampInt
Class to modify timeout flag.
This class provides a unique identification for each event, in terms of run/event number and/or a tim...
EventIDBase::number_type number_type
The Athena Transient Store API.