The Gaudi Framework  v33r1 (b1225454)
EventLoopMgr.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef GAUDISVC_EVENTLOOPMGR_H
12 #define GAUDISVC_EVENTLOOPMGR_H 1
13 
20 #include <memory>
21 
45 public:
46 protected:
47  // Properties
48 
49  Gaudi::Property<std::string> m_histPersName{this, "HistogramPersistency", {}, "name of the Hist Pers type"};
50  Gaudi::Property<std::string> m_evtsel{this, "EvtSel", {}, "event selector"};
51  Gaudi::Property<bool> m_warnings{this, "Warnings", true, "set to false to suppress warning messages"};
52 
69  bool m_endEventFired = true;
70 
71 public:
72  // inherit contructor from base class
74 
76  ~EventLoopMgr() override;
79 
81  StatusCode initialize() override;
83  StatusCode reinitialize() override;
85  StatusCode stop() override;
87  StatusCode finalize() override;
89  StatusCode nextEvent( int maxevt ) override;
92 };
93 #endif // GAUDISVC_EVENTLOOPMGR_H
StatusCode finalize() override
implementation of IService::finalize
Implementation of property with value of concrete type.
Definition: Property.h:370
SmartIF< IConversionSvc > m_histoPersSvc
Reference to the Histogram Persistency Service.
Definition: EventLoopMgr.h:64
Gaudi::Property< bool > m_warnings
Definition: EventLoopMgr.h:51
StatusCode executeEvent(EventContext &&ctx) override
implementation of IEventProcessor::executeEvent(EventContext&&)
StatusCode reinitialize() override
implementation of IService::reinitialize
This class represents an entry point to all the event specific data.
Definition: EventContext.h:34
Class definition of EventLoopMgr.
Definition: EventLoopMgr.h:44
Gaudi::Property< std::string > m_histPersName
Definition: EventLoopMgr.h:49
StatusCode nextEvent(int maxevt) override
implementation of IEventProcessor::nextEvent
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:61
StatusCode getEventRoot(IOpaqueAddress *&refpAddr)
Create event address using event selector.
SmartIF< IDataManagerSvc > m_evtDataMgrSvc
Reference to the Event Data Service's IDataManagerSvc interface.
Definition: EventLoopMgr.h:54
StatusCode initialize() override
implementation of IService::initialize
SmartIF< IProperty > m_appMgrProperty
Property interface of ApplicationMgr.
Definition: EventLoopMgr.h:66
IEvtSelector::Context * m_evtContext
Event Iterator.
Definition: EventLoopMgr.h:60
SmartIF< IEvtSelector > m_evtSelector
Reference to the Event Selector.
Definition: EventLoopMgr.h:58
StatusCode stop() override
implementation of IService::stop
Gaudi::Property< std::string > m_evtsel
Definition: EventLoopMgr.h:50
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:69
SmartIF< IDataProviderSvc > m_evtDataSvc
Reference to the Event Data Service's IDataProviderSvc interface.
Definition: EventLoopMgr.h:56
This is the default processing manager of the application manager.
~EventLoopMgr() override
Standard Destructor.
Opaque address interface definition.
int maxevt
Definition: Bootstrap.cpp:270
MinimalEventLoopMgr(const std::string &nam, ISvcLocator *svcLoc)
Standard Constructor.
SmartIF< IDataManagerSvc > m_histoDataMgrSvc
Reference to the Histogram Data Service.
Definition: EventLoopMgr.h:62