| The Gaudi Framework v28r2-patches (bc4ad17a)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

EventLoopMgr.h
Go to the documentation of this file.
1 #ifndef GAUDISVC_EVENTLOOPMGR_H
2 #define GAUDISVC_EVENTLOOPMGR_H 1
3
4 // Framework include files
5 #include "GaudiKernel/IEvtSelector.h"
6 #include "GaudiKernel/MinimalEventLoopMgr.h"
7
8 // std includes
9 #include <memory>
10
11 // Forward declarations
12 class IIncidentSvc;
13 class IDataManagerSvc;
14 class IDataProviderSvc;
15
38 class EventLoopMgr : public MinimalEventLoopMgr
39 {
40 public:
41 protected:
42 // Properties
43
44 Gaudi::Property<std::string> m_histPersName{this, "HistogramPersistency", {}, "name of the Hist Pers type"};
45 Gaudi::Property<std::string> m_evtsel{this, "EvtSel", {}, "event selector"};
46 Gaudi::Property<bool> m_warnings{this, "Warnings", true, "set to false to suppress warning messages"};
47
49 SmartIF<IDataManagerSvc> m_evtDataMgrSvc = nullptr;
51 SmartIF<IDataProviderSvc> m_evtDataSvc = nullptr;
53 SmartIF<IEvtSelector> m_evtSelector = nullptr;
55 IEvtSelector::Context* m_evtContext = nullptr;
57 SmartIF<IDataManagerSvc> m_histoDataMgrSvc = nullptr;
59 SmartIF<IConversionSvc> m_histoPersSvc = nullptr;
61 SmartIF<IProperty> m_appMgrProperty = nullptr;
64 bool m_endEventFired = true;
65
66 public:
67 // inherit contructor from base class
68 using MinimalEventLoopMgr::MinimalEventLoopMgr;
69
71 ~EventLoopMgr() override;
73 StatusCode getEventRoot( IOpaqueAddress*& refpAddr );
74
76 StatusCode initialize() override;
78 StatusCode reinitialize() override;
80 StatusCode stop() override;
82 StatusCode finalize() override;
84 StatusCode nextEvent( int maxevt ) override;
86 StatusCode executeEvent( void* par ) override;
87 };
88 #endif // GAUDISVC_EVENTLOOPMGR_H
SmartIF< IDataManagerSvc >
EventLoopMgr::finalize
StatusCode finalize() override
implementation of IService::finalize
Definition: EventLoopMgr.cpp:191
Gaudi::Property
Implementation of property with value of concrete type.
Definition: Property.h:314
EventLoopMgr::m_histoPersSvc
SmartIF< IConversionSvc > m_histoPersSvc
Reference to the Histogram Persistency Service.
Definition: EventLoopMgr.h:59
EventLoopMgr::m_warnings
Gaudi::Property< bool > m_warnings
Definition: EventLoopMgr.h:46
EventLoopMgr::reinitialize
StatusCode reinitialize() override
implementation of IService::reinitialize
Definition: EventLoopMgr.cpp:110
IEvtSelector::Context
Definition: IEvtSelector.h:23
IDataProviderSvc
Data provider interface definition.
Definition: IDataProviderSvc.h:45
EventLoopMgr
Class definition of EventLoopMgr.
Definition: EventLoopMgr.h:38
compareOutputFiles.par
string par
Definition: compareOutputFiles.py:386
EventLoopMgr::executeEvent
StatusCode executeEvent(void *par) override
implementation of IEventProcessor::executeEvent(void* par)
Definition: EventLoopMgr.cpp:257
EventLoopMgr::m_histPersName
Gaudi::Property< std::string > m_histPersName
Definition: EventLoopMgr.h:44
EventLoopMgr::nextEvent
StatusCode nextEvent(int maxevt) override
implementation of IService::nextEvent
Definition: EventLoopMgr.cpp:288
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
EventLoopMgr::getEventRoot
StatusCode getEventRoot(IOpaqueAddress *&refpAddr)
Create event address using event selector.
Definition: EventLoopMgr.cpp:383
EventLoopMgr::m_evtDataMgrSvc
SmartIF< IDataManagerSvc > m_evtDataMgrSvc
Reference to the Event Data Service&#39;s IDataManagerSvc interface.
Definition: EventLoopMgr.h:49
EventLoopMgr::initialize
StatusCode initialize() override
implementation of IService::initialize
Definition: EventLoopMgr.cpp:39
MinimalEventLoopMgr.h
EventLoopMgr::m_appMgrProperty
SmartIF< IProperty > m_appMgrProperty
Property interface of ApplicationMgr.
Definition: EventLoopMgr.h:61
EventLoopMgr::m_evtContext
IEvtSelector::Context * m_evtContext
Event Iterator.
Definition: EventLoopMgr.h:55
EventLoopMgr::m_evtSelector
SmartIF< IEvtSelector > m_evtSelector
Reference to the Event Selector.
Definition: EventLoopMgr.h:53
IDataManagerSvc
Definition: IDataManagerSvc.h:45
EventLoopMgr::stop
StatusCode stop() override
implementation of IService::stop
Definition: EventLoopMgr.cpp:179
EventLoopMgr::m_evtsel
Gaudi::Property< std::string > m_evtsel
Definition: EventLoopMgr.h:45
EventLoopMgr::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: EventLoopMgr.h:64
EventLoopMgr::m_evtDataSvc
SmartIF< IDataProviderSvc > m_evtDataSvc
Reference to the Event Data Service&#39;s IDataProviderSvc interface.
Definition: EventLoopMgr.h:51
IEvtSelector.h
MinimalEventLoopMgr
This is the default processing manager of the application manager.
Definition: MinimalEventLoopMgr.h:28
EventLoopMgr::~EventLoopMgr
~EventLoopMgr() override
Standard Destructor.
Definition: EventLoopMgr.cpp:32
IOpaqueAddress
Opaque address interface definition.
Definition: IOpaqueAddress.h:23
maxevt
int maxevt
Definition: Bootstrap.cpp:279
MinimalEventLoopMgr::MinimalEventLoopMgr
MinimalEventLoopMgr(const std::string &nam, ISvcLocator *svcLoc)
Standard Constructor.
Definition: MinimalEventLoopMgr.cpp:56
IIncidentSvc
The interface implemented by the IncidentSvc service.
Definition: IIncidentSvc.h:23
EventLoopMgr::m_histoDataMgrSvc
SmartIF< IDataManagerSvc > m_histoDataMgrSvc
Reference to the Histogram Data Service.
Definition: EventLoopMgr.h:57