ATLAS Offline Software
Loading...
Searching...
No Matches
AthenaHiveEventLoopMgr Class Reference

The default ATLAS batch event loop manager. More...

#include <AthenaHiveEventLoopMgr.h>

Inheritance diagram for AthenaHiveEventLoopMgr:

Public Types

typedef IEvtSelector::Context EvtContext
typedef std::list< SmartIF< IAlgorithm > > ListAlg

Public Member Functions

StatusCode getEventRoot (IOpaqueAddress *&refpAddr)
 Create event address using event selector.
 AthenaHiveEventLoopMgr (const std::string &nam, ISvcLocator *svcLoc)
 Standard Constructor.
virtual ~AthenaHiveEventLoopMgr ()
 Standard Destructor.
virtual StatusCode initialize () override
 implementation of IAppMgrUI::initalize
virtual StatusCode finalize () override
 implementation of IAppMgrUI::finalize
virtual StatusCode nextEvent (int maxevt) override
 implementation of IAppMgrUI::nextEvent. maxevt==0 returns immediately
virtual StatusCode executeEvent (EventContext &&ctx) override
 implementation of IEventProcessor::executeEvent(void* par)
virtual StatusCode executeRun (int maxevt) override
 implementation of IEventProcessor::executeRun(int maxevt)
virtual StatusCode stopRun () override
 implementation of IEventProcessor::stopRun()
virtual StatusCode stop () override
 implementation of IService::stop
virtual StatusCode seek (int evt) override
 Seek to a given event.
virtual int curEvent () const override
 Return the current event count.
virtual int size () override
 Return the size of the collection.
virtual void handle (const Incident &inc) override
 IIncidentListenet interfaces.
virtual const std::string & name () const override
virtual void modifyEventContext (EventContext &ctx, const EventID &eID, bool consume_modifier_stream)
MsgStream & msg () const
 The standard message stream.
MsgStream & msg (const MSG::Level lvl) const
 The standard message stream.
bool msgLvl (const MSG::Level lvl) const
 Test the output level.
void setLevel (MSG::Level lvl)
 Change the current logging level.

Protected Types

typedef ServiceHandle< IIncidentSvc > IIncidentSvc_t
typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
typedef ServiceHandle< IDataManagerSvc > IDataManagerSvc_t
typedef ServiceHandle< IConversionSvc > IConversionSvc_t
typedef ServiceHandle< IEvtIdModifierSvcIEvtIdModifierSvc_t
typedef EventID::number_type number_type
typedef IAthenaEvtLoopPreSelectTool tool_type
typedef ToolHandleArray< tool_typetool_store
typedef tool_store::const_iterator tool_iterator
typedef std::vector< unsigned int > tool_stats
typedef tool_stats::const_iterator tool_stats_iterator

Protected Member Functions

void setupPreSelectTools (Gaudi::Details::PropertyBase &)
 property update handler:sets up the Pre-selection tools
virtual StatusCode writeHistograms (bool force=false)
 Dump out histograms as needed.
virtual StatusCode executeAlgorithms ()
 Run the algorithms for the current event.
StatusCode initializeAlgorithms ()
 Initialize all algorithms and output streams.
StatusCode clearWBSlot (int evtSlot)
 Clear a slot in the WB.
int declareEventRootAddress (EventContext &)
 Declare the root address of the event.
virtual EventContext createEventContext () override
 Create event context.
int drainScheduler (int &finishedEvents)
 Drain the scheduler from all actions that may be queued.
void setTimeout (Timeout &instance)
 Set timeout.
void resetTimeout (Timeout &instance)
 Reset timeout.

Protected Attributes

IIncidentSvc_t m_incidentSvc
 Reference to the incident service.
StoreGateSvc_t m_eventStore
 Reference to StoreGateSvc;.
IEvtSelector * m_evtSelector
 Reference to the Event Selector.
EvtContextm_evtContext
 Gaudi event selector Context (may be used as a cursor by the evt selector)
StringProperty m_evtsel
IDataManagerSvc_t m_histoDataMgrSvc
 Reference to the Histogram Data Service.
IConversionSvc_t m_histoPersSvc
IEvtIdModifierSvc_t m_evtIdModSvc
StringProperty m_histPersName
number_type m_currentRun
 current run number
bool m_firstRun
IntegerProperty m_failureMode
UnsignedIntegerProperty m_eventPrintoutInterval
tool_stats m_toolInvoke
 tool called counter
tool_stats m_toolReject
 tool returns StatusCode::FAILURE counter
tool_stats m_toolAccept
 tool returns StatusCode::SUCCESS counter
tool_store m_tools
 internal tool store
bool m_requireInputAttributeList {}
 require input attribute list
bool m_useSecondaryEventNumber {}
 read event number from secondary input
SmartIF< IHiveWhiteBoard > m_whiteboard
 Reference to the Whiteboard interface.
SmartIF< IAlgResourcePool > m_algResourcePool
 Reference to the Algorithm resource pool.
SmartIF< IAlgExecStateSvc > m_aess
 Reference to the Algorithm Execution State Svc.
SmartIF< IProperty > m_appMgrProperty
 Property interface of ApplicationMgr.
SmartIF< IScheduler > m_schedulerSvc
 A shortcut for the scheduler.
SmartIF< IIncidentListener > m_abortEventListener
 Instance of the incident listener waiting for AbortEvent.
std::string m_schedulerName
 Name of the scheduler to be used.
std::string m_whiteboardName
 Name of the Whiteboard to be used.
bool m_scheduledStop
 Scheduled stop of event processing.
bool m_terminateLoop { false }
unsigned int m_nev
 events processed
unsigned int m_proc
bool m_useTools
bool m_doEvtHeartbeat
EventContext m_lastEventContext

Private Member Functions

 AthenaHiveEventLoopMgr ()=delete
 AthenaHiveEventLoopMgr (const AthenaHiveEventLoopMgr &)=delete
AthenaHiveEventLoopMgroperator= (const AthenaHiveEventLoopMgr &)=delete
void initMessaging () const
 Initialize our message level and MessageSvc.

Private Attributes

unsigned int m_nevt
unsigned int m_timeStamp { 0 }
UnsignedIntegerProperty m_writeInterval
bool m_writeHists
bool m_firstEventAlone
unsigned int m_flmbi
unsigned int m_timeStampInt
ServiceHandle< Athena::IConditionsCleanerSvcm_conditionsCleaner
std::string m_nm
 Message source name.
boost::thread_specific_ptr< MsgStream > m_msg_tls
 MsgStream instance (a std::cout like with print-out levels)
std::atomic< IMessageSvc * > m_imsg { nullptr }
 MessageSvc pointer.
std::atomic< MSG::Level > m_lvl { MSG::NIL }
 Current logging level.
std::atomic_flag m_initialized ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT
 Messaging initialized (initMessaging)

Detailed Description

The default ATLAS batch event loop manager.

It loops over input events according to job configuration. Among the main user-settable properties "FailureMode" controls behaviour of event loop depending on return code of Algorithms.

  • 0: all non-SUCCESSes terminate job.
  • 1: (DEFAULT) RECOVERABLE skips to next event, FAILURE terminates job.
  • 2: RECOVERABLE and FAILURE skip to next events

Definition at line 68 of file AthenaHiveEventLoopMgr.h.

Member Typedef Documentation

◆ EvtContext

typedef IEvtSelector::Context AthenaHiveEventLoopMgr::EvtContext

Definition at line 74 of file AthenaHiveEventLoopMgr.h.

◆ IConversionSvc_t

typedef ServiceHandle<IConversionSvc> AthenaHiveEventLoopMgr::IConversionSvc_t
protected

Definition at line 96 of file AthenaHiveEventLoopMgr.h.

◆ IDataManagerSvc_t

typedef ServiceHandle<IDataManagerSvc> AthenaHiveEventLoopMgr::IDataManagerSvc_t
protected

Definition at line 92 of file AthenaHiveEventLoopMgr.h.

◆ IEvtIdModifierSvc_t

◆ IIncidentSvc_t

typedef ServiceHandle<IIncidentSvc> AthenaHiveEventLoopMgr::IIncidentSvc_t
protected

Definition at line 77 of file AthenaHiveEventLoopMgr.h.

◆ ListAlg

typedef std::list<SmartIF<IAlgorithm> > AthenaHiveEventLoopMgr::ListAlg

Definition at line 264 of file AthenaHiveEventLoopMgr.h.

◆ number_type

◆ StoreGateSvc_t

◆ tool_iterator

typedef tool_store::const_iterator AthenaHiveEventLoopMgr::tool_iterator
protected

Definition at line 121 of file AthenaHiveEventLoopMgr.h.

◆ tool_stats

typedef std::vector<unsigned int> AthenaHiveEventLoopMgr::tool_stats
protected

Definition at line 122 of file AthenaHiveEventLoopMgr.h.

◆ tool_stats_iterator

typedef tool_stats::const_iterator AthenaHiveEventLoopMgr::tool_stats_iterator
protected

Definition at line 123 of file AthenaHiveEventLoopMgr.h.

◆ tool_store

typedef ToolHandleArray< tool_type > AthenaHiveEventLoopMgr::tool_store
protected

Definition at line 120 of file AthenaHiveEventLoopMgr.h.

◆ tool_type

Constructor & Destructor Documentation

◆ AthenaHiveEventLoopMgr() [1/3]

AthenaHiveEventLoopMgr::AthenaHiveEventLoopMgr ( const std::string & nam,
ISvcLocator * svcLoc )

Standard Constructor.

Definition at line 63 of file AthenaHiveEventLoopMgr.cxx.

65 : base_class(nam, svcLoc),
66 AthMessaging (nam),
67 m_incidentSvc ( "IncidentSvc", nam ),
68 m_eventStore( "StoreGateSvc", nam ),
70 m_histoDataMgrSvc( "HistogramDataSvc", nam ),
71 m_histoPersSvc ( "HistogramPersistencySvc", nam ),
72 m_evtIdModSvc ( "", nam ),
73 m_currentRun(0), m_firstRun(true), m_tools(this), m_nevt(0), m_writeHists(false),
74 m_nev(0), m_proc(0), m_useTools(false),m_doEvtHeartbeat(false),
75 m_conditionsCleaner( "Athena::ConditionsCleanerSvc", nam )
76{
77 declareProperty("EvtSel", m_evtsel,
78 "Name of Event Selector to use. If empty string (default) "
79 "take value from ApplicationMgr");
80 declareProperty("HistogramPersistency", m_histPersName="",
81 "Histogram persistency technology to use: ROOT, HBOOK, NONE. "
82 "By default (empty string) get property value from "
83 "ApplicationMgr");
84 declareProperty("HistWriteInterval", m_writeInterval=0 ,
85 "histogram write/update interval");
86 declareProperty("FailureMode", m_failureMode=1 ,
87 "Controls behaviour of event loop depending on return code of"
88 " Algorithms. 0: all non-SUCCESSes terminate job. "
89 "1: RECOVERABLE skips to next event, FAILURE terminates job "
90 "(DEFAULT). 2: RECOVERABLE and FAILURE skip to next events");
91 declareProperty("EventPrintoutInterval", m_eventPrintoutInterval=1,
92 "Print event heartbeat printouts every m_eventPrintoutInterval events");
93 declareProperty("PreSelectTools",m_tools,"AlgTools for event pre-selection")->
94 declareUpdateHandler( &AthenaHiveEventLoopMgr::setupPreSelectTools, this ); ;
95
96 declareProperty("SchedulerSvc", m_schedulerName="ForwardSchedulerSvc",
97 "Name of the scheduler to be used");
98
99 declareProperty("WhiteboardSvc", m_whiteboardName="EventDataSvc",
100 "Name of the Whiteboard to be used");
101
102 declareProperty("EventStore", m_eventStore);
103
104 declareProperty("EvtIdModifierSvc", m_evtIdModSvc,
105 "ServiceHandle for EvtIdModifierSvc");
106
107 declareProperty("FakeLumiBlockInterval", m_flmbi = 0,
108 "Event interval at which to increment lumiBlock# when "
109 "creating events without an EventSelector. Zero means "
110 "don't increment it");
111 declareProperty("FakeTimestampInterval", m_timeStampInt = 1,
112 "timestamp interval between events when creating Events "
113 "without an EventSelector");
114 declareProperty("RequireInputAttributeList", m_requireInputAttributeList = false,
115 "Require valid input attribute list to be present");
116 declareProperty("UseSecondaryEventNumber", m_useSecondaryEventNumber = false,
117 "In case of DoubleEventSelector use event number from secondary input");
118
119 declareProperty("FirstEventAlone", m_firstEventAlone = true,
120 "process all of first event before scheduling any more");
121
122 m_scheduledStop = false;
123
124}
AthMessaging()
Default constructor:
UnsignedIntegerProperty m_eventPrintoutInterval
IEvtSelector * m_evtSelector
Reference to the Event Selector.
number_type m_currentRun
current run number
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.
unsigned int m_nev
events processed
IIncidentSvc_t m_incidentSvc
Reference to the incident service.
bool m_useSecondaryEventNumber
read event number from secondary input
bool m_requireInputAttributeList
require input attribute list
StoreGateSvc_t m_eventStore
Reference to StoreGateSvc;.
EvtContext * m_evtContext
Gaudi event selector Context (may be used as a cursor by the evt selector)
IDataManagerSvc_t m_histoDataMgrSvc
Reference to the Histogram Data Service.
bool m_scheduledStop
Scheduled stop of event processing.
ServiceHandle< Athena::IConditionsCleanerSvc > m_conditionsCleaner
tool_store m_tools
internal tool store
void setupPreSelectTools(Gaudi::Details::PropertyBase &)
property update handler:sets up the Pre-selection tools
IEvtIdModifierSvc_t m_evtIdModSvc

◆ ~AthenaHiveEventLoopMgr()

AthenaHiveEventLoopMgr::~AthenaHiveEventLoopMgr ( )
virtual

Standard Destructor.

Definition at line 129 of file AthenaHiveEventLoopMgr.cxx.

130{
131}

◆ AthenaHiveEventLoopMgr() [2/3]

AthenaHiveEventLoopMgr::AthenaHiveEventLoopMgr ( )
privatedelete

◆ AthenaHiveEventLoopMgr() [3/3]

AthenaHiveEventLoopMgr::AthenaHiveEventLoopMgr ( const AthenaHiveEventLoopMgr & )
privatedelete

Member Function Documentation

◆ clearWBSlot()

StatusCode AthenaHiveEventLoopMgr::clearWBSlot ( int evtSlot)
protected

Clear a slot in the WB.

Definition at line 1298 of file AthenaHiveEventLoopMgr.cxx.

1298 {
1299 return m_whiteboard->freeStore(evtSlot);
1300}
SmartIF< IHiveWhiteBoard > m_whiteboard
Reference to the Whiteboard interface.

◆ createEventContext()

EventContext AthenaHiveEventLoopMgr::createEventContext ( )
overrideprotectedvirtual

Create event context.

Definition at line 1161 of file AthenaHiveEventLoopMgr.cxx.

1161 {
1162
1163 EventContext ctx{ m_nevt, m_whiteboard->allocateStore( m_nevt ) };
1164
1165 StatusCode sc = m_whiteboard->selectStore( ctx.slot() );
1166 if (sc.isFailure()) {
1167 ATH_MSG_FATAL ( "Slot " << ctx.slot()
1168 << " could not be selected for the WhiteBoard" );
1169 return EventContext{}; // invalid EventContext
1170 } else {
1172 Atlas::ExtendedEventContext( m_eventStore->hiveProxyDict() ) );
1173
1174 ATH_MSG_DEBUG ( "created EventContext, num: " << ctx.evt() << " in slot: "
1175 << ctx.slot() );
1176 }
1177
1178 return ctx;
1179}
#define ATH_MSG_FATAL(x)
#define ATH_MSG_DEBUG(x)
static Double_t sc
void setExtendedEventContext(EventContext &ctx, ExtendedEventContext &&ectx)
Move an extended context into a context object.
::StatusCode StatusCode
StatusCode definition for legacy code.

◆ curEvent()

int AthenaHiveEventLoopMgr::curEvent ( ) const
overridevirtual

Return the current event count.

Definition at line 819 of file AthenaHiveEventLoopMgr.cxx.

820{
821 return m_nevt;
822}

◆ declareEventRootAddress()

int AthenaHiveEventLoopMgr::declareEventRootAddress ( EventContext & ctx)
protected

Declare the root address of the event.

FIXME ???

Definition at line 946 of file AthenaHiveEventLoopMgr.cxx.

946 {
947
948 // return codes:
949 // -1 : error
950 // 0 : no more events in selection
951 // 1 : ok
952
953 StatusCode sc(StatusCode::SUCCESS);
954
955 //-----------------------------------------------------------------------
956 // we need an EventInfo Object to fire the incidents.
957 //-----------------------------------------------------------------------
958 std::unique_ptr<const EventInfo> pEvent{};
959 if ( m_evtContext ) {
960 // Deal with the case when an EventSelector is provided
961 //
962 // FIXME: flow control if no more events in selector, etc.
963 //
964
965 IOpaqueAddress* addr{};
966
967 sc = m_evtSelector->next(*m_evtContext);
968
969 if ( !sc.isSuccess() ) {
970 // This is the end of the loop. No more events in the selection
971 ATH_MSG_INFO ( "No more events in event selection " );
972 return 0;
973 }
974
975 if (m_evtSelector->createAddress(*m_evtContext, addr).isFailure()) {
976 ATH_MSG_ERROR ( "Could not create an IOpaqueAddress" );
977 return -1;
978 }
979
980
981 // Most iterators provide the IOA of an event header (EventInfo, DataHeader)
982 if (0 != addr) {
983 //create its proxy
984 sc = m_eventStore->recordAddress(addr);
985 if( !sc.isSuccess() ) {
987 ATH_MSG_WARNING ( "Error declaring Event object" );
988 return 0;
989 }
990 } if ((sc=m_eventStore->loadEventProxies()).isFailure()) {
991 ATH_MSG_ERROR ( "Error loading Event proxies" );
992 return -1;
993 }
994
995 bool consume_modifier_stream = false;
996 // First try to build a legacy EventInfo object from the TAG information
997 // Read the attribute list
998 const AthenaAttributeList* pAttrList = m_eventStore->tryConstRetrieve<AthenaAttributeList>("Input");
999 if ( pAttrList != nullptr && pAttrList->size() > 6 ) { // Try making EventID-only EventInfo object from in-file TAG
1000 try {
1001 unsigned int runNumber = (*pAttrList)["RunNumber"].data<unsigned int>();
1002 unsigned long long eventNumber = (*pAttrList)["EventNumber"].data<unsigned long long>();
1003 unsigned int eventTime = (*pAttrList)["EventTime"].data<unsigned int>();
1004 unsigned int eventTimeNS = (*pAttrList)["EventTimeNanoSec"].data<unsigned int>();
1005 unsigned int lumiBlock = (*pAttrList)["LumiBlockN"].data<unsigned int>();
1006 unsigned int bunchId = (*pAttrList)["BunchId"].data<unsigned int>();
1007
1008 ATH_MSG_DEBUG ( "use TAG with runNumber=" << runNumber );
1009 consume_modifier_stream = true;
1010 // an option to override primary eventNumber with the secondary one in case of DoubleEventSelector
1012 unsigned long long eventNumberSecondary{};
1013 if ( !(pAttrList->exists("hasSecondaryInput") && (*pAttrList)["hasSecondaryInput"].data<bool>()) ) {
1014 ATH_MSG_FATAL ( "Secondary EventNumber requested, but secondary input does not exist!" );
1015 return -1;
1016 }
1017 if ( pAttrList->exists("EventNumber_secondary") ) {
1018 eventNumberSecondary = (*pAttrList)["EventNumber_secondary"].data<unsigned long long>();
1019 }
1020 else {
1021 // try legacy EventInfo if secondary input did not have attribute list
1022 // primary input should not have this EventInfo type
1023 const EventInfo* pEventSecondary = m_eventStore->tryConstRetrieve<EventInfo>();
1024 if (pEventSecondary) {
1025 eventNumberSecondary = pEventSecondary->event_ID()->event_number();
1026 }
1027 else {
1028 ATH_MSG_FATAL ( "Secondary EventNumber requested, but it does not exist!" );
1029 return -1;
1030 }
1031 }
1032 if (eventNumberSecondary != 0) {
1033 m_doEvtHeartbeat = (m_eventPrintoutInterval.value() > 0 &&
1034 0 == (m_nev % m_eventPrintoutInterval.value()));
1035 if (m_doEvtHeartbeat) {
1036 ATH_MSG_INFO ( " ===>>> using secondary event #" << eventNumberSecondary << " instead of #" << eventNumber << " <<<===" );
1037 }
1038 eventNumber = eventNumberSecondary;
1039 }
1040 }
1041
1042 pEvent = std::make_unique<EventInfo>(
1043 std::make_unique<EventID>(runNumber, eventNumber, eventTime,
1044 eventTimeNS, lumiBlock, bunchId),
1045 nullptr);
1046 } catch (...) {
1047 }
1048 } else if (m_requireInputAttributeList) {
1049 ATH_MSG_FATAL ( "Valid input attribute list required but not present!" );
1050 return -1;
1051 }
1052 // In the case that there is no TAG information
1053 const EventInfo* pEventObserver{pEvent.get()};
1054 if (!pEventObserver) {
1055 // Secondly try to retrieve a legacy EventInfo object from the input file
1056 // Again, m_nevt is incremented after executeEvent in the Hive manager so we don't need a -1
1058 pEventObserver = m_eventStore->tryConstRetrieve<EventInfo>();
1059 if (pEventObserver) {
1060 consume_modifier_stream = false; // stream will already have been consumed during EventInfo TP conversion
1061 ATH_MSG_DEBUG ( "use EventInfo" );
1062 } else {
1063 // Finally try to retrieve an xAOD::EventInfo object from the
1064 // input file and build a legacy EventInfo object from that.
1065 const xAOD::EventInfo* pXEvent{nullptr};
1066 sc = m_eventStore->retrieve(pXEvent);
1067 if( !sc.isSuccess() ) {
1068 ATH_MSG_ERROR ( "Unable to retrieve Event root object" );
1069 return -1;
1070 }
1071 consume_modifier_stream = true;
1072 ATH_MSG_DEBUG ( "use xAOD::EventInfo with runNumber=" << pXEvent->runNumber() );
1073 // Build the old-style Event Info object for those clients that still need it
1074 pEvent = std::make_unique<EventInfo>(
1075 std::make_unique<EventID>(eventIDFromxAOD(pXEvent)),
1076 std::make_unique<EventType>(eventTypeFromxAOD(pXEvent)));
1077 pEventObserver = pEvent.get();
1078 sc = m_eventStore->record(std::move(pEvent), "");
1079 if( !sc.isSuccess() ) {
1080 ATH_MSG_ERROR ( "Error declaring event data object" );
1081 return -1;
1082 }
1083 }
1084 }
1085
1086 modifyEventContext(ctx, *(pEventObserver->event_ID()),
1087 consume_modifier_stream);
1088
1089 }
1090 else {
1091 // No EventSelector is provided, so with no iterator it's up to us
1092 // to create an EventInfo
1093 // first event # == 1
1094 unsigned int runNmb{1}, evtNmb{m_nevt + 1};
1095
1096 // increment the run/lumiBlock number if desired
1097 if (m_flmbi != 0) {
1098 runNmb = m_nevt / m_flmbi + 1;
1099 evtNmb = m_nevt % m_flmbi + 1;
1100 }
1101 auto eid = std::make_unique<EventID> (runNmb,evtNmb, m_timeStamp);
1102 // Change lumiBlock# to match runNumber
1103 eid->set_lumi_block( runNmb );
1104
1106
1107 pEvent = std::make_unique<EventInfo>(std::move(eid),
1108 std::make_unique<EventType>());
1109
1110 bool consume_modifier_stream = true;
1111 // EventInfo TP Conversion not called in this case, so we would
1112 // want to consume the next IoV from the list in the
1113 // EvtIdModifierSvc.
1114 modifyEventContext(ctx,*(pEvent->event_ID()), consume_modifier_stream);
1115
1116 ATH_MSG_DEBUG ( "selecting store: " << ctx.slot() );
1117
1118 m_whiteboard->selectStore( ctx.slot() ).ignore();
1119
1120 ATH_MSG_DEBUG ( "recording EventInfo " << *pEvent->event_ID() << " in "
1121 << m_eventStore->name() );
1122
1123 sc = m_eventStore->record(std::move(pEvent), "McEventInfo");
1124 if( !sc.isSuccess() ) {
1125 ATH_MSG_ERROR ( "Error declaring event data object" );
1126 return -1;
1127 }
1128 }
1129
1130 return 1;
1131}
#define ATH_MSG_ERROR(x)
#define ATH_MSG_INFO(x)
#define ATH_MSG_WARNING(x)
EventID eventIDFromxAOD(const xAOD::EventInfo *xaod)
Create EventID object from xAOD::EventInfo.
EventType eventTypeFromxAOD(const xAOD::EventInfo *xaod)
Create EventType object from xAOD::EventInfo.
virtual void modifyEventContext(EventContext &ctx, const EventID &eID, bool consume_modifier_stream)
EventID * event_ID()
the unique identification of the event.
uint32_t runNumber() const
The current event's run number.
thread_local event_number_t eventIndex
EventInfo_v1 EventInfo
Definition of the latest event info version.
setTeId lumiBlock

◆ drainScheduler()

int AthenaHiveEventLoopMgr::drainScheduler ( int & finishedEvents)
protected

Drain the scheduler from all actions that may be queued.

Definition at line 1184 of file AthenaHiveEventLoopMgr.cxx.

1184 {
1185
1186 StatusCode sc(StatusCode::SUCCESS);
1187
1188 // maybe we can do better
1189 std::vector<std::unique_ptr<EventContext>> finishedEvtContexts;
1190
1191 EventContext* finishedEvtContext(nullptr);
1192
1193 // Here we wait not to loose cpu resources
1194 ATH_MSG_DEBUG ( "drainScheduler: [" << finishedEvts << "] Waiting for a context" );
1195 sc = m_schedulerSvc->popFinishedEvent(finishedEvtContext);
1196
1197 // We got past it: cache the pointer
1198 if (sc.isSuccess()){
1199 ATH_MSG_DEBUG ( "drainScheduler: scheduler not empty: Context "
1200 << finishedEvtContext );
1201 finishedEvtContexts.emplace_back(finishedEvtContext);
1202 } else{
1203 // no more events left in scheduler to be drained
1204 ATH_MSG_DEBUG ( "drainScheduler: scheduler empty" );
1205 return 0;
1206 }
1207
1208 // Let's see if we can pop other event contexts
1209 while (m_schedulerSvc->tryPopFinishedEvent(finishedEvtContext).isSuccess()){
1210 finishedEvtContexts.emplace_back(finishedEvtContext);
1211 }
1212
1213 // Now we flush them
1214 bool fail(false);
1215 for (auto& thisFinishedEvtContext : finishedEvtContexts){
1216 if (!thisFinishedEvtContext) {
1217 ATH_MSG_FATAL ( "Detected nullptr ctxt while clearing WB!");
1218 fail = true;
1219 continue;
1220 }
1221
1222 if (m_aess->eventStatus(*thisFinishedEvtContext) != EventStatus::Success) {
1223 ATH_MSG_FATAL ( "Failed event detected on " << thisFinishedEvtContext
1224 << " w/ fail mode: "
1225 << m_aess->eventStatus(*thisFinishedEvtContext) );
1226 fail = true;
1227 continue;
1228 }
1229
1230 EventID::number_type n_run(0);
1231 EventID::event_number_t n_evt(0);
1232
1233 if (m_whiteboard->selectStore(thisFinishedEvtContext->slot()).isSuccess()) {
1234 n_run = thisFinishedEvtContext->eventID().run_number();
1235 n_evt = thisFinishedEvtContext->eventID().event_number();
1236 } else {
1237 ATH_MSG_ERROR ( "DrainSched: unable to select store "
1238 << thisFinishedEvtContext->slot() );
1239 fail = true;
1240 continue;
1241 }
1242
1243 // m_incidentSvc->fireIncident(Incident(name(), IncidentType::EndEvent,
1244 // *thisFinishedEvtContext ));
1245
1246 // Some code still needs global context in addition to that passed in the incident
1247 Gaudi::Hive::setCurrentContext( *thisFinishedEvtContext );
1248 m_incidentSvc->fireIncident(Incident(name(), IncidentType::EndProcessing, *thisFinishedEvtContext ));
1249
1250 ATH_MSG_DEBUG ( "Clearing slot " << thisFinishedEvtContext->slot()
1251 << " (event " << thisFinishedEvtContext->evt()
1252 << ") of the whiteboard" );
1253
1254 StatusCode sc = clearWBSlot(thisFinishedEvtContext->slot());
1255 if (!sc.isSuccess()) {
1256 ATH_MSG_ERROR ( "Whiteboard slot " << thisFinishedEvtContext->slot()
1257 << " could not be properly cleared" );
1258 fail = true;
1259 continue;
1260 }
1261
1262 finishedEvts++;
1263
1264 writeHistograms().ignore();
1265 ++m_proc;
1266
1267 if (m_doEvtHeartbeat) {
1268 if(!m_useTools)
1269 ATH_MSG_INFO ( " ===>>> done processing event #" << n_evt << ", run #" << n_run
1270 << " on slot " << thisFinishedEvtContext->slot() << ", "
1271 << m_proc << " events processed so far <<<===" );
1272 else
1273 ATH_MSG_INFO ( " ===>>> done processing event #" << n_evt << ", run #" << n_run
1274 << " on slot " << thisFinishedEvtContext->slot() << ", "
1275 << m_nev << " events read and " << m_proc
1276 << " events processed so far <<<===" );
1277 std::ofstream outfile( "eventLoopHeartBeat.txt");
1278 if ( !outfile ) {
1279 ATH_MSG_ERROR ( " unable to open: eventLoopHeartBeat.txt" );
1280 fail = true;
1281 continue;
1282 } else {
1283 outfile << " done processing event #" << n_evt << ", run #" << n_run
1284 << " " << m_nev << " events read so far <<<===" << std::endl;
1285 outfile.close();
1286 }
1287 }
1288
1289 ATH_MSG_DEBUG ( "drainScheduler thisFinishedEvtContext: " << thisFinishedEvtContext );
1290 }
1291
1292 return ( fail ? -1 : 1 );
1293
1294}
SmartIF< IAlgExecStateSvc > m_aess
Reference to the Algorithm Execution State Svc.
virtual const std::string & name() const override
StatusCode clearWBSlot(int evtSlot)
Clear a slot in the WB.
virtual StatusCode writeHistograms(bool force=false)
Dump out histograms as needed.
SmartIF< IScheduler > m_schedulerSvc
A shortcut for the scheduler.
EventIDBase::number_type number_type
Definition EventID.h:37
fail(message)

◆ executeAlgorithms()

StatusCode AthenaHiveEventLoopMgr::executeAlgorithms ( )
protectedvirtual

Run the algorithms for the current event.

Definition at line 486 of file AthenaHiveEventLoopMgr.cxx.

486 {
487
488 return StatusCode::SUCCESS;
489}

◆ executeEvent()

StatusCode AthenaHiveEventLoopMgr::executeEvent ( EventContext && ctx)
overridevirtual

implementation of IEventProcessor::executeEvent(void* par)

Fire begin-Run incident if new run:

Definition at line 495 of file AthenaHiveEventLoopMgr.cxx.

496{
497
498 // An incident may schedule a stop, in which case is better to exit before the actual execution.
499 if ( m_scheduledStop ) {
500 ATH_MSG_ALWAYS ( "A stopRun was requested by an incidentListener. "
501 << "Do not process this event." );
502 m_terminateLoop = true;
503 return (StatusCode::SUCCESS);
504 }
505
506 m_aess->reset( ctx );
507
508 // Make sure context with slot is set before calling es->next().
509 Gaudi::Hive::setCurrentContext ( ctx );
510
511 int declEvtRootSc = declareEventRootAddress( ctx );
512 if (declEvtRootSc == 0 ) { // We ran out of events!
513 m_terminateLoop = true; // we have finished!
514 return StatusCode::SUCCESS;
515 } else if ( declEvtRootSc == -1) {
516 ATH_MSG_ERROR ( "declareEventRootAddress for context " << ctx << " failed" );
517 return StatusCode::FAILURE;
518 }
519
520 EventID::event_number_t evtNumber = ctx.eventID().event_number();
521 unsigned int conditionsRun = ctx.eventID().run_number();
522 if (!m_evtIdModSvc.isSet()) {
523 const AthenaAttributeList* attr = nullptr;
524 if (m_eventStore->contains<AthenaAttributeList> ("Input") &&
525 m_eventStore->retrieve(attr, "Input").isSuccess()) {
526 if (attr->exists ("ConditionsRun")) {
527 conditionsRun = (*attr)["ConditionsRun"].data<unsigned int>();
528 }
529 }
530 }
532 Gaudi::Hive::setCurrentContext ( ctx );
533
534 // Record EventContext in current whiteboard
535 if (m_eventStore->record(std::make_unique<EventContext> (ctx),
536 "EventContext").isFailure())
537 {
538 ATH_MSG_ERROR ( "Error recording event context object" );
539 return (StatusCode::FAILURE);
540 }
541
543 if (m_firstRun || (m_currentRun != ctx.eventID().run_number()) ) {
544 // Fire EndRun incident unless this is the first run
545 if (!m_firstRun) {
546 // FIXME!!!
547 m_incidentSvc->fireIncident(Incident(name(), IncidentType::EndRun));
548 }
549 m_firstRun=false;
550 m_currentRun = ctx.eventID().run_number();
551
552 ATH_MSG_INFO ( " ===>>> start of run " << m_currentRun << " <<<===" );
553
554 // FIXME!!! Fire BeginRun "Incident"
555 m_incidentSvc->fireIncident(Incident(name(),IncidentType::BeginRun,ctx));
556
557 }
558
559 bool toolsPassed=true;
560 // CGL: FIXME
561 // bool eventFailed = false;
562
563 // Call any attached tools to reject events early
564 unsigned int toolCtr=0;
565 if(m_useTools) {
566 tool_store::iterator theTool = m_tools.begin();
567 tool_store::iterator lastTool = m_tools.end();
568 while(toolsPassed && theTool!=lastTool )
569 {
570 toolsPassed = (*theTool)->passEvent(ctx.eventID());
571 m_toolInvoke[toolCtr]++;
572 {toolsPassed ? m_toolAccept[toolCtr]++ : m_toolReject[toolCtr]++;}
573 ++toolCtr;
574 ++theTool;
575 }
576 }
577
579 0 == (m_nev % m_eventPrintoutInterval.value()));
580 if (m_doEvtHeartbeat) {
581 if(!m_useTools) {
582 ATH_MSG_INFO ( " ===>>> start processing event #" << evtNumber << ", run #" << m_currentRun
583 << " on slot " << ctx.slot() << ", " << m_proc
584 << " events processed so far <<<===" );
585 }
586 else {
587 ATH_MSG_INFO ( " ===>>> start processing event #" << evtNumber << ", run #" << m_currentRun
588 << " on slot " << ctx.slot() << ", "
589 << m_nev << " events read and " << m_proc
590 << " events processed so far <<<===" );
591 }
592 }
593
594 // Reset the timeout singleton
596 if(toolsPassed) {
597
598 CHECK( m_conditionsCleaner->event (ctx, true) );
599
600 // Remember the last event context for after event processing finishes.
601 m_lastEventContext = ctx;
602
603 // Now add event to the scheduler
604 ATH_MSG_DEBUG ( "Adding event " << ctx.evt()
605 << ", slot " << ctx.slot()
606 << " to the scheduler" );
607
608 m_incidentSvc->fireIncident(Incident(name(), IncidentType::BeginProcessing,
609 ctx));
610 StatusCode addEventStatus = m_schedulerSvc->pushNewEvent( new EventContext{ std::move(ctx) } );
611
612 // If this fails, we need to wait for something to complete
613 if (!addEventStatus.isSuccess()){
614 ATH_MSG_FATAL ( "An event processing slot should be now free in the scheduler, but it appears not to be the case." );
615 }
616
617 } // end of toolsPassed test
618
619 ++m_nev;
620
621 ++m_nevt;
622
623 // invalidate thread local context once outside of event execute loop
624 Gaudi::Hive::setCurrentContext( EventContext() );
625
626 return StatusCode::SUCCESS;
627
628}
#define ATH_MSG_ALWAYS(x)
#define CHECK(...)
Evaluate an expression and check for errors.
tool_stats m_toolAccept
tool returns StatusCode::SUCCESS counter
tool_stats m_toolInvoke
tool called counter
int declareEventRootAddress(EventContext &)
Declare the root address of the event.
tool_stats m_toolReject
tool returns StatusCode::FAILURE counter
void resetTimeout(Timeout &instance)
Reset timeout.
Definition Timeout.h:83
static Timeout & instance()
Get reference to Timeout singleton.
Definition Timeout.h:64
void setConditionsRun(EventIDBase::number_type conditionsRun)
const ExtendedEventContext & getExtendedEventContext(const EventContext &ctx)
Retrieve an extended context from a context object.

◆ executeRun()

StatusCode AthenaHiveEventLoopMgr::executeRun ( int maxevt)
overridevirtual

implementation of IEventProcessor::executeRun(int maxevt)

Definition at line 633 of file AthenaHiveEventLoopMgr.cxx.

634{
635
637 bool eventfailed = false;
638
639 // Call now the nextEvent(...)
640 sc = nextEvent(maxevt);
641 if (!sc.isSuccess())
642 eventfailed = true;
643
644 if (eventfailed)
645 return StatusCode::FAILURE;
646
647 m_incidentSvc->fireIncident(Incident(name(),"EndEvtLoop"));
648 return StatusCode::SUCCESS;
649}
virtual StatusCode nextEvent(int maxevt) override
implementation of IAppMgrUI::nextEvent. maxevt==0 returns immediately

◆ finalize()

StatusCode AthenaHiveEventLoopMgr::finalize ( )
overridevirtual

implementation of IAppMgrUI::finalize

Reimplemented in MPIHiveEventLoopMgr.

Definition at line 354 of file AthenaHiveEventLoopMgr.cxx.

355{
356
357 StatusCode sc = MinimalEventLoopMgr::finalize();
358 if (sc.isFailure())
359 {
360 ATH_MSG_ERROR ( "Error in Service base class Finalize" );
361 }
362
363 StatusCode sc2 = writeHistograms(true);
364 if (sc2.isFailure())
365 {
366 ATH_MSG_ERROR ( "Error in writing Histograms" );
367 }
368
369 // Release all interfaces (ignore StatusCodes)
370 m_histoDataMgrSvc.release().ignore();
371 m_histoPersSvc.release().ignore();
372
373 m_whiteboard = 0;
375 m_schedulerSvc = 0;
376 // m_evtDataSvc = 0;
377
378 m_incidentSvc.release().ignore();
379
380 // Release event selector context
381 if ( m_evtSelector && m_evtContext ) {
382 m_evtSelector->releaseContext(m_evtContext).ignore();
383 // m_evtSelector = releaseInterface(m_evtSelector);
384 delete m_evtContext; m_evtContext = 0;
385 }
386
387
388 if(m_useTools) {
389 tool_iterator firstTool = m_tools.begin();
390 tool_iterator lastTool = m_tools.end();
391 unsigned int toolCtr = 0;
392 ATH_MSG_INFO ( "Summary of AthenaEvtLoopPreSelectTool invocation: (invoked/success/failure)" );
393 ATH_MSG_INFO ( "-----------------------------------------------------" );
394
395 for ( ; firstTool != lastTool; ++firstTool ) {
396 ATH_MSG_INFO ( std::setw(2) << std::setiosflags(std::ios_base::right)
397 << toolCtr+1 << ".) " << std::resetiosflags(std::ios_base::right)
398 << std::setw(48) << std::setfill('.')
399 << std::setiosflags(std::ios_base::left)
400 << (*firstTool)->name() << std::resetiosflags(std::ios_base::left)
401 << std::setfill(' ')
402 << " ("
403 << std::setw(6) << std::setiosflags(std::ios_base::right)
404 << m_toolInvoke[toolCtr]
405 << "/"
406 << m_toolAccept[toolCtr]
407 << "/"
408 << m_toolReject[toolCtr]
409 << ")"
410 );
411 toolCtr++;
412 }
413 }
414 return ( sc.isFailure() || sc2.isFailure() ) ? StatusCode::FAILURE :
415 StatusCode::SUCCESS;
416
417}
tool_store::const_iterator tool_iterator
SmartIF< IAlgResourcePool > m_algResourcePool
Reference to the Algorithm resource pool.

◆ getEventRoot()

StatusCode AthenaHiveEventLoopMgr::getEventRoot ( IOpaqueAddress *& refpAddr)

Create event address using event selector.

Definition at line 924 of file AthenaHiveEventLoopMgr.cxx.

924 {
925 refpAddr = 0;
927 if ( !sc.isSuccess() ) {
928 return sc;
929 }
930 // Create root address and assign address to data service
931 sc = m_evtSelector->createAddress(*m_evtContext,refpAddr);
932 if( !sc.isSuccess() ) {
933 sc = m_evtSelector->next(*m_evtContext);
934 if ( sc.isSuccess() ) {
935 sc = m_evtSelector->createAddress(*m_evtContext,refpAddr);
936 if ( !sc.isSuccess() ) {
937 ATH_MSG_WARNING ( "Error creating IOpaqueAddress." );
938 }
939 }
940 }
941 return sc;
942}

◆ handle()

void AthenaHiveEventLoopMgr::handle ( const Incident & inc)
overridevirtual

IIncidentListenet interfaces.

Definition at line 849 of file AthenaHiveEventLoopMgr.cxx.

850{
851
852 if(inc.type() == "EndAlgorithms") {
853 // Clear the store at the end of the event.
854 // Do it here so that it executes in an algorithm context and thus
855 // multiple stores can be cleared at the same time.
856 StatusCode sc = m_whiteboard->clearStore(inc.context().slot());
857 if( !sc.isSuccess() ) {
858 ATH_MSG_WARNING ( "Clear of Event data store failed" );
859 }
860 return;
861 }
862
863 if(inc.type()!="BeforeFork")
864 return;
865
866 if(!m_evtContext || !m_firstRun) {
867 ATH_MSG_WARNING ( "Skipping BeforeFork handler. Either no event selector is provided or begin run has already passed" );
868 }
869
870 // Initialize Algorithms and Output Streams
872 if(sc.isFailure()) {
873 ATH_MSG_ERROR ( "Failed to initialize Algorithms" );
874 return;
875 }
876
877 // Construct EventInfo
878 sc = m_evtSelector->next(*m_evtContext);
879 if(!sc.isSuccess()) {
880 ATH_MSG_INFO ( "No more events in event selection " );
881 return;
882 }
883 IOpaqueAddress* addr{nullptr};
884 sc = m_evtSelector->createAddress(*m_evtContext, addr);
885 if (sc.isFailure()) {
886 ATH_MSG_ERROR ( "Could not create an IOpaqueAddress" );
887 return;
888 }
889 if (0 != addr) {
890 //create its proxy
891 sc = m_eventStore->recordAddress(addr);
892 if(!sc.isSuccess()) {
893 ATH_MSG_ERROR ( "Error declaring Event object" );
894 return;
895 }
896 }
897
898 if(m_eventStore->loadEventProxies().isFailure()) {
899 ATH_MSG_WARNING ( "Error loading Event proxies" );
900 return;
901 }
902
903 // Retrieve the legacy EventInfo object
904 const EventInfo* pEvent{nullptr};
905 sc = m_eventStore->retrieve(pEvent);
906 if(!sc.isSuccess()) {
907 ATH_MSG_ERROR ( "Unable to retrieve Event root object" );
908 return;
909 }
910
911 m_firstRun=false;
912 m_currentRun = pEvent->event_ID()->run_number();
913
914 // Clear Store
915 sc = m_eventStore->clearStore();
916 if(!sc.isSuccess()) {
917 ATH_MSG_ERROR ( "Clear of Event data store failed" );
918 }
919}
StatusCode initializeAlgorithms()
Initialize all algorithms and output streams.

◆ initialize()

StatusCode AthenaHiveEventLoopMgr::initialize ( )
overridevirtual

implementation of IAppMgrUI::initalize

Reimplemented in MPIHiveEventLoopMgr.

Definition at line 136 of file AthenaHiveEventLoopMgr.cxx.

137{
138
139 ATH_MSG_INFO ( "Initializing " << name() );
140
141
142 StatusCode sc = MinimalEventLoopMgr::initialize();
143 if ( !sc.isSuccess() )
144 {
145 ATH_MSG_ERROR ( "Failed to initialize base class MinimalEventLoopMgr" );
146 return sc;
147 }
148
149//-------------------------------------------------------------------------
150// Setup stuff for hive
151//-------------------------------------------------------------------------
152
153 m_whiteboard = serviceLocator()->service(m_whiteboardName);
154 if( !m_whiteboard.isValid() ) {
155 ATH_MSG_FATAL ( "Error retrieving " << m_whiteboardName << " interface IHiveWhiteBoard." );
156 return StatusCode::FAILURE;
157 }
158
159 m_schedulerSvc = serviceLocator()->service(m_schedulerName);
160 if ( !m_schedulerSvc.isValid()){
161 ATH_MSG_FATAL ( "Error retrieving SchedulerSvc interface ISchedulerSvc." );
162 return StatusCode::FAILURE;
163 }
164 // Setup algorithm resource pool
165 m_algResourcePool = serviceLocator()->service("AlgResourcePool");
166 if( !m_algResourcePool.isValid() ) {
167 ATH_MSG_FATAL ( "Error retrieving AlgResourcePool" );
168 return StatusCode::FAILURE;
169 }
170
171 m_aess = serviceLocator()->service("AlgExecStateSvc");
172 if( !m_aess.isValid() ) {
173 ATH_MSG_FATAL ( "Error retrieving AlgExecStateSvc" );
174 return StatusCode::FAILURE;
175 }
176
177 sc = m_eventStore.retrieve();
178 if( !sc.isSuccess() )
179 {
180 ATH_MSG_FATAL ( "Error retrieving pointer to StoreGateSvc" );
181 return sc;
182 }
183
184//--------------------------------------------------------------------------
185// Get the references to the services that are needed by the ApplicationMgr
186// itself
187//--------------------------------------------------------------------------
188 sc = m_incidentSvc.retrieve();
189 if( !sc.isSuccess() )
190 {
191 ATH_MSG_FATAL ( "Error retrieving IncidentSvc." );
192 return sc;
193 }
194
195//--------------------------------------------------------------------------
196// Access Property Manager interface:
197//--------------------------------------------------------------------------
198 SmartIF<IProperty> prpMgr(serviceLocator());
199 if ( !prpMgr.isValid() )
200 {
201 ATH_MSG_FATAL ( "IProperty interface not found in ApplicationMgr." );
202 return StatusCode::FAILURE;
203 }
204
205
206//--------------------------------------------------------------------------
207// Set up the Histogram Service
208//--------------------------------------------------------------------------
209 sc = m_histoDataMgrSvc.retrieve();
210 if( !sc.isSuccess() )
211 {
212 ATH_MSG_FATAL ( "Error retrieving HistogramDataSvc" );
213 return sc;
214 }
215
216 const std::string& histPersName(m_histPersName.value());
217 if ( histPersName.length() == 0 )
218 {
219 CHECK(setProperty(prpMgr->getProperty("HistogramPersistency")));
220 }
221
222 if ( histPersName != "NONE" ) {
223
224 m_histoPersSvc = IConversionSvc_t( "HistogramPersistencySvc",
225 this->name() );
226
227 SmartIF<IProperty> histSvc;
228 if (histPersName == "ROOT") {
229 histSvc = serviceLocator()->service("RootHistSvc");
230 } else if ( histPersName == "HBOOK" ) {
231 histSvc = serviceLocator()->service("HbookHistSvc");
232 }
233
234 if (!histSvc) {
235 ATH_MSG_ERROR ( "could not locate actual Histogram persistency service" );
236 } else {
237 const Gaudi::Details::PropertyBase &prop = histSvc->getProperty("OutputFile");
238 std::string val;
239 try {
240 const StringProperty &sprop = dynamic_cast<const StringProperty&>( prop );
241 val = sprop.value();
242 } catch (...) {
243 ATH_MSG_VERBOSE ( "could not dcast OutputFile property to a StringProperty."
244 << " Need to fix Gaudi." );
245 val = prop.toString();
246 }
247
248 if (val != "" &&
249 val != "UndefinedROOTOutputFileName" &&
250 val != "UndefinedHbookOutputFileName" ) {
251 m_writeHists = true;
252 }
253 }
254 } else {
255 ATH_MSG_DEBUG ( "Histograms saving not required." );
256 }
257
258
259//--------------------------------------------------------------------------
260// Set up the EventID modifier Service
261//--------------------------------------------------------------------------
262 if( m_evtIdModSvc.empty() ) {
263 ATH_MSG_DEBUG ( "EventID modifier Service not set. No run number, ... overrides will be applied." );
264 }
265 else if ( !m_evtIdModSvc.retrieve().isSuccess() ) {
266 ATH_MSG_INFO ( "Could not find EventID modifier Service. No run number, ... overrides will be applied." );
267 }
268
269//-------------------------------------------------------------------------
270// Setup EventSelector service
271//-------------------------------------------------------------------------
272 const std::string& selName(m_evtsel.value());
273 // the evt sel is usually specified as a property of ApplicationMgr
274 if (selName.empty())
275 sc = setProperty(prpMgr->getProperty("EvtSel"));
276 if (sc.isFailure()) ATH_MSG_WARNING ( "Unable to set EvtSel property" );
277
278 // We do not expect a Event Selector necessarily being declared
279 if( !selName.empty() && selName != "NONE") {
280 SmartIF<IEvtSelector> theEvtSel{serviceLocator()->service( selName )};
281 if( theEvtSel && ( theEvtSel != m_evtSelector ) ) {
282 // Event Selector changed (or setup for the first time)
283 m_evtSelector = theEvtSel;
284
285 // reset iterator
286 if (m_evtSelector->createContext(m_evtContext).isFailure()) {
287 ATH_MSG_FATAL ( "Can not create the event selector Context." );
288 return StatusCode::FAILURE;
289 }
290 if (msgLevel(MSG::INFO)) {
291 SmartIF<INamedInterface> named(theEvtSel);
292 if (named) {
293 ATH_MSG_INFO ( "Setup EventSelector service " << named->name( ) );
294 }
295 }
296 } else if (sc.isFailure()) {
297 ATH_MSG_FATAL ( "No valid event selector called " << selName );
298 return StatusCode::FAILURE;
299 }
300 }
301
302 // Listen to the BeforeFork and EndAlgorithms incidents
303 m_incidentSvc->addListener(this,"BeforeFork",0);
304 m_incidentSvc->addListener(this, "EndAlgorithms",0);
305
306 CHECK( m_conditionsCleaner.retrieve() );
307
308 // Print if we override the event number using the one from secondary event
310 {
311 ATH_MSG_INFO ( "Using secondary event number." );
312 }
313
314 return sc;
315}
#define ATH_MSG_VERBOSE(x)
void setProperty(columnar::PythonToolHandle &self, const std::string &key, nb::object value)
ServiceHandle< IConversionSvc > IConversionSvc_t
selName(recoSequenceName, hypoType=JetHypoAlgType.STANDARD)

◆ initializeAlgorithms()

StatusCode AthenaHiveEventLoopMgr::initializeAlgorithms ( )
protected

Initialize all algorithms and output streams.

Definition at line 478 of file AthenaHiveEventLoopMgr.cxx.

478 {
479
480 return StatusCode::SUCCESS;
481}

◆ initMessaging()

void AthMessaging::initMessaging ( ) const
privateinherited

Initialize our message level and MessageSvc.

This method should only be called once.

Definition at line 39 of file AthMessaging.cxx.

40{
42 // If user did not set an explicit level, set a default
43 if (m_lvl == MSG::NIL) {
44 m_lvl = m_imsg ?
45 static_cast<MSG::Level>( m_imsg.load()->outputLevel(m_nm) ) :
46 MSG::INFO;
47 }
48}
std::string m_nm
Message source name.
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
std::atomic< MSG::Level > m_lvl
Current logging level.
IMessageSvc * getMessageSvc(bool quiet=false)

◆ modifyEventContext()

void AthenaHiveEventLoopMgr::modifyEventContext ( EventContext & ctx,
const EventID & eID,
bool consume_modifier_stream )
virtual

Definition at line 1135 of file AthenaHiveEventLoopMgr.cxx.

1135 {
1136
1137 if(m_evtIdModSvc.isSet()) {
1138 EventID new_eID(eID);
1139 // In Hive EventLoopMgr ctx.evt() gets set to m_nevt and *then* m_nevt is
1140 // incremented later so it's zero-indexed and we don't need to subtract one
1141 m_evtIdModSvc->modify_evtid(new_eID, ctx.evt(), consume_modifier_stream);
1142 if (msgLevel(MSG::DEBUG)) {
1143 unsigned int oldrunnr=eID.run_number();
1144 unsigned int oldLB=eID.lumi_block();
1145 unsigned int oldTS=eID.time_stamp();
1146 unsigned int oldTSno=eID.time_stamp_ns_offset();
1147 ATH_MSG_DEBUG ( "modifyEventContext: use evtIdModSvc runnr=" << oldrunnr << " -> " << new_eID.run_number() );
1148 ATH_MSG_DEBUG ( "modifyEventContext: use evtIdModSvc LB=" << oldLB << " -> " << new_eID.lumi_block() );
1149 ATH_MSG_DEBUG ( "modifyEventContext: use evtIdModSvc TimeStamp=" << oldTS << " -> " << new_eID.time_stamp() );
1150 ATH_MSG_DEBUG ( "modifyEventContext: use evtIdModSvc TimeStamp ns Offset=" << oldTSno << " -> " << new_eID.time_stamp_ns_offset() );
1151 }
1152 ctx.setEventID( new_eID );
1153 Atlas::getExtendedEventContext(ctx).setConditionsRun( ctx.eventID().run_number() );
1154 return;
1155 }
1156
1157 ctx.setEventID( eID );
1158}

◆ msg() [1/2]

MsgStream & AthMessaging::msg ( ) const
inline

The standard message stream.

Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.

Definition at line 92 of file AthMessaging.h.

168{
169 MsgStream* ms = m_msg_tls.get();
170 if (!ms) {
171 if (!m_initialized.test_and_set()) initMessaging();
172 ms = new MsgStream(m_imsg,m_nm);
173 m_msg_tls.reset( ms );
174 }
175
176 ms->setLevel (m_lvl);
177 return *ms;
178}
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
void initMessaging() const
Initialize our message level and MessageSvc.

◆ msg() [2/2]

MsgStream & AthMessaging::msg ( const MSG::Level lvl) const
inline

The standard message stream.

Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.

Definition at line 99 of file AthMessaging.h.

183{ return msg() << lvl; }
MsgStream & msg() const
The standard message stream.

◆ msgLvl()

bool AthMessaging::msgLvl ( const MSG::Level lvl) const
inline

Test the output level.

Parameters
lvlThe message level to test against
Returns
boolean Indicating if messages at given level will be printed
Return values
trueMessages at level "lvl" will be printed

Definition at line 86 of file AthMessaging.h.

152{
153 // If user did not set explicit message level we have to initialize
154 // the messaging and retrieve the default via the MessageSvc.
155 if (m_lvl==MSG::NIL && !m_initialized.test_and_set()) initMessaging();
156
157 if (m_lvl <= lvl) {
158 msg() << lvl;
159 return true;
160 } else {
161 return false;
162 }
163}

◆ name()

virtual const std::string & AthenaHiveEventLoopMgr::name ( ) const
inlineoverridevirtual

Definition at line 228 of file AthenaHiveEventLoopMgr.h.

228{ return Service::name(); } //FIXME

◆ nextEvent()

StatusCode AthenaHiveEventLoopMgr::nextEvent ( int maxevt)
overridevirtual

implementation of IAppMgrUI::nextEvent. maxevt==0 returns immediately

Reimplemented in MPIHiveEventLoopMgr.

Definition at line 694 of file AthenaHiveEventLoopMgr.cxx.

695{
696 // make nextEvent(0) a dummy call
697 if (0 == maxevt) return StatusCode::SUCCESS;
698
699 // Reset the application return code.
700 Gaudi::setAppReturnCode(m_appMgrProperty, Gaudi::ReturnCode::Success, true).ignore();
701
702 int finishedEvts =0;
703 int createdEvts =0;
704 ATH_MSG_INFO ( "Starting loop on events" );
705
706 // loop over events if the maxevt (received as input) is different from -1.
707 // if evtmax is -1 it means infinite loop (till time limit that is)
708 // int nevt(0);
709 // CGL: FIXME
710 // bool noTimeLimit(false);
711 bool loop_ended=false;
712 StatusCode sc(StatusCode::SUCCESS);
713
714 bool newEvtAllowed = ! m_firstEventAlone;
715
716 // Calculate runtime
717 auto start_time = tbb::tick_count::now();
718 auto secsFromStart = [&start_time]()->double{
719 return (tbb::tick_count::now()-start_time).seconds();
720 };
721
722 while ( !loop_ended and ( (maxevt < 0) or (finishedEvts < maxevt) ) ){
723
724 ATH_MSG_DEBUG ( " -> createdEvts: " << createdEvts );
725
726 if ( ( !m_terminateLoop ) && // The events are not finished with an unlimited number of events
727 (newEvtAllowed || createdEvts == 0) && // Launch first event alone
728 ( (createdEvts < maxevt) or (maxevt<0) ) && // The events are not finished with a limited number of events
729 (m_schedulerSvc->freeSlots()>0) ){ // There are still free slots in the scheduler
730
731 ATH_MSG_DEBUG ( "createdEvts: " << createdEvts << ", freeslots: " << m_schedulerSvc->freeSlots() );
732
733 auto ctx = createEventContext();
734
735 if ( !ctx.valid() ) {
736 sc = StatusCode::FAILURE;
737 } else {
738 sc = executeEvent( std::move(ctx) );
739 }
740
741 if (sc.isFailure()) {
742 ATH_MSG_ERROR ( "Terminating event processing loop due to errors" );
743 loop_ended = true;
744 } else {
745 ++createdEvts;
746 }
747
748 } // end if condition createdEvts < maxevt
749
750 else {
751 // all the events were created but not all finished or the slots were
752 // all busy: the scheduler should finish its job
753
754 ATH_MSG_DEBUG ( "Draining the scheduler" );
755
756 // Pull out of the scheduler the finished events
757 int ir = drainScheduler(finishedEvts);
758 if (ir < 0) {
759 // some sort of error draining scheduler;
760 loop_ended = true;
761 sc = StatusCode::FAILURE;
762 } else if (ir == 0) {
763 // no more events in scheduler. we're done
764 loop_ended = true;
765 sc = StatusCode::SUCCESS;
766 } else {
767 // keep going!
768 }
769 newEvtAllowed = true;
770
771 }
772 } // end main loop on finished events
773
774 ATH_MSG_INFO ( "---> Loop Finished (seconds): " << secsFromStart() );
775
776
777 return sc;
778
779
780}
int drainScheduler(int &finishedEvents)
Drain the scheduler from all actions that may be queued.
SmartIF< IProperty > m_appMgrProperty
Property interface of ApplicationMgr.
virtual StatusCode executeEvent(EventContext &&ctx) override
implementation of IEventProcessor::executeEvent(void* par)
virtual EventContext createEventContext() override
Create event context.
int ir
counter of the current depth
Definition fastadd.cxx:49

◆ operator=()

AthenaHiveEventLoopMgr & AthenaHiveEventLoopMgr::operator= ( const AthenaHiveEventLoopMgr & )
privatedelete

◆ resetTimeout()

void Athena::TimeoutMaster::resetTimeout ( Timeout & instance)
inlineprotectedinherited

Reset timeout.

Definition at line 83 of file Timeout.h.

83{ instance.reset(); }
std::map< std::string, double > instance

◆ seek()

StatusCode AthenaHiveEventLoopMgr::seek ( int evt)
overridevirtual

Seek to a given event.

Definition at line 787 of file AthenaHiveEventLoopMgr.cxx.

788{
789 IEvtSelectorSeek* is = dynamic_cast<IEvtSelectorSeek*> (m_evtSelector);
790 if (is == 0) {
791 ATH_MSG_ERROR ( "Seek failed; unsupported by event selector" );
792 return StatusCode::FAILURE;
793 }
794 //cppcheck-suppress nullPointerRedundantCheck
795 if (!m_evtContext) {
796 if (m_evtSelector->createContext(m_evtContext).isFailure()) {
797 ATH_MSG_FATAL ( "Can not create the event selector Context." );
798 return StatusCode::FAILURE;
799 }
800 }
801 //m_evtContext cannot be null if createContext succeeded
802 //cppcheck-suppress nullPointerRedundantCheck
803 StatusCode sc = is->seek (*m_evtContext, evt);
804 if (sc.isSuccess()) {
805 m_incidentSvc->fireIncident(ContextIncident<std::tuple<int, int>>(
806 name(), "SkipEvents", std::tuple<int, int>(m_nevt, evt)));
807 m_nevt = evt;
808 }
809 else {
810 ATH_MSG_ERROR ( "Seek failed." );
811 }
812 return sc;
813}
virtual StatusCode seek(IEvtSelector::Context &c, int evtnum) const =0
Seek to a given event number.

◆ setLevel()

void AthMessaging::setLevel ( MSG::Level lvl)
inherited

Change the current logging level.

Use this rather than msg().setLevel() for proper operation with MT.

Definition at line 28 of file AthMessaging.cxx.

29{
30 m_lvl = lvl;
31}

◆ setTimeout()

void Athena::TimeoutMaster::setTimeout ( Timeout & instance)
inlineprotectedinherited

Set timeout.

Definition at line 80 of file Timeout.h.

80{ instance.set(); }

◆ setupPreSelectTools()

void AthenaHiveEventLoopMgr::setupPreSelectTools ( Gaudi::Details::PropertyBase & )
protected

property update handler:sets up the Pre-selection tools

Definition at line 321 of file AthenaHiveEventLoopMgr.cxx.

321 {
322
323 m_toolInvoke.clear();
324 m_toolReject.clear();
325 m_toolAccept.clear();
326
327 m_tools.retrieve().ignore();
328 if(m_tools.size() > 0) {
329 m_useTools=true;
330 m_toolInvoke.resize(m_tools.size());
331 m_toolReject.resize(m_tools.size());
332 m_toolAccept.resize(m_tools.size());
333
334 tool_iterator firstTool = m_tools.begin();
335 tool_iterator lastTool = m_tools.end();
336 unsigned int toolCtr = 0;
337 for ( ; firstTool != lastTool; ++firstTool )
338 {
339 // reset statistics
340 m_toolInvoke[toolCtr] = 0;
341 m_toolReject[toolCtr] = 0;
342 m_toolAccept[toolCtr] = 0;
343 toolCtr++;
344 }
345 }
346
347 return;
348
349}

◆ size()

int AthenaHiveEventLoopMgr::size ( )
overridevirtual

Return the size of the collection.

Definition at line 827 of file AthenaHiveEventLoopMgr.cxx.

828{
829 IEvtSelectorSeek* cs = dynamic_cast<IEvtSelectorSeek*> (m_evtSelector);
830 if (cs == 0) {
831 ATH_MSG_ERROR ( "Collection size unsupported by event selector" );
832 return -1;
833 }
834 //cppcheck-suppress nullPointerRedundantCheck
835 if (!m_evtContext) {
836 if (m_evtSelector->createContext(m_evtContext).isFailure()) {
837 ATH_MSG_FATAL ( "Can not create the event selector Context." );
838 return -1;
839 }
840 }
841 //m_evtContext cannot be null if createContext succeeded
842 //cppcheck-suppress nullPointerRedundantCheck
843 return cs->size (*m_evtContext);
844}
virtual int size(IEvtSelector::Context &c) const =0
Return the size of the collection, or -1 if we can't get the size.

◆ stop()

StatusCode AthenaHiveEventLoopMgr::stop ( )
overridevirtual

implementation of IService::stop

Definition at line 668 of file AthenaHiveEventLoopMgr.cxx.

669{
670 // To enable conditions access during stop we set an invalid EventContext
671 // (no event/slot number) but with valid EventID (and extended EventContext).
672 m_lastEventContext.setValid(false);
673 Gaudi::Hive::setCurrentContext( m_lastEventContext );
674
675 StatusCode sc = MinimalEventLoopMgr::stop();
676
677 // If we exit the event loop early due to an error, some event stores
678 // may not have been cleared. This can lead to segfaults later,
679 // as DetectorStore will usually get finalized before HiveSvcMgr.
680 // So make sure that all stores have been cleared at this point.
681 size_t nslot = m_whiteboard->getNumberOfStores();
682 for (size_t islot = 0; islot < nslot; islot++) {
683 sc &= clearWBSlot (islot);
684 }
685
686 Gaudi::Hive::setCurrentContext( EventContext() );
687 return sc;
688}

◆ stopRun()

StatusCode AthenaHiveEventLoopMgr::stopRun ( )
overridevirtual

implementation of IEventProcessor::stopRun()

Definition at line 653 of file AthenaHiveEventLoopMgr.cxx.

653 {
654 // Set the application return code
655 SmartIF<IProperty> appmgr(serviceLocator());
656 if(Gaudi::setAppReturnCode(appmgr, Gaudi::ReturnCode::ScheduledStop, true).isFailure()) {
657 ATH_MSG_ERROR ( "Could not set return code of the application ("
658 << Gaudi::ReturnCode::ScheduledStop << ")" );
659 }
660 m_scheduledStop = true;
661 return StatusCode::SUCCESS;
662}

◆ writeHistograms()

StatusCode AthenaHiveEventLoopMgr::writeHistograms ( bool force = false)
protectedvirtual

Dump out histograms as needed.

Definition at line 422 of file AthenaHiveEventLoopMgr.cxx.

422 {
423
424 StatusCode sc (StatusCode::SUCCESS);
425
426 if ( 0 != m_histoPersSvc && m_writeHists ) {
427 std::vector<DataObject*> objects;
428 sc = m_histoDataMgrSvc->traverseTree( [&objects]( IRegistry* reg, int ) {
429 DataObject* obj = reg->object();
430 if ( !obj || obj->clID() == CLID_StatisticsFile ) return false;
431 objects.push_back( obj );
432 return true;
433 } );
434
435 if ( !sc.isSuccess() ) {
436 ATH_MSG_ERROR ( "Error while traversing Histogram data store" );
437 return sc;
438 }
439
440 if ( objects.size() > 0) {
441 int writeInterval(m_writeInterval.value());
442
443 if ( m_nevt == 1 || force ||
444 (writeInterval != 0 && m_nevt%writeInterval == 0) ) {
445
446 // skip /stat entry!
447 sc = std::accumulate( begin( objects ), end( objects ), sc, [&]( StatusCode isc, auto& i ) {
448 IOpaqueAddress* pAddr = nullptr;
449 StatusCode iret = m_histoPersSvc->createRep( i, pAddr );
450 if ( iret.isFailure() ) return iret;
451 i->registry()->setAddress( pAddr );
452 return isc;
453 } );
454 sc = std::accumulate( begin( objects ), end( objects ), sc, [&]( StatusCode isc, auto& i ) {
455 IRegistry* reg = i->registry();
456 StatusCode iret = m_histoPersSvc->fillRepRefs( reg->address(), i );
457 return iret.isFailure() ? iret : isc;
458 } );
459 if ( ! sc.isSuccess() ) {
460 ATH_MSG_ERROR ( "Error while saving Histograms." );
461 }
462 }
463
464 if (force || (writeInterval != 0 && m_nevt%writeInterval == 0) ) {
465 ATH_MSG_DEBUG ( "committing Histograms" );
466 m_histoPersSvc->conversionSvc()->commitOutput("",true).ignore();
467 }
468 }
469
470 }
471
472 return sc;
473}

Member Data Documentation

◆ ATLAS_THREAD_SAFE

std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT
mutableprivateinherited

Messaging initialized (initMessaging)

Definition at line 141 of file AthMessaging.h.

◆ m_abortEventListener

SmartIF< IIncidentListener > AthenaHiveEventLoopMgr::m_abortEventListener
protected

Instance of the incident listener waiting for AbortEvent.

Definition at line 176 of file AthenaHiveEventLoopMgr.h.

◆ m_aess

SmartIF<IAlgExecStateSvc> AthenaHiveEventLoopMgr::m_aess
protected

Reference to the Algorithm Execution State Svc.

Definition at line 160 of file AthenaHiveEventLoopMgr.h.

◆ m_algResourcePool

SmartIF<IAlgResourcePool> AthenaHiveEventLoopMgr::m_algResourcePool
protected

Reference to the Algorithm resource pool.

Definition at line 157 of file AthenaHiveEventLoopMgr.h.

◆ m_appMgrProperty

SmartIF<IProperty> AthenaHiveEventLoopMgr::m_appMgrProperty
protected

Property interface of ApplicationMgr.

Definition at line 163 of file AthenaHiveEventLoopMgr.h.

◆ m_conditionsCleaner

ServiceHandle<Athena::IConditionsCleanerSvc> AthenaHiveEventLoopMgr::m_conditionsCleaner
private

Definition at line 270 of file AthenaHiveEventLoopMgr.h.

◆ m_currentRun

number_type AthenaHiveEventLoopMgr::m_currentRun
protected

current run number

Definition at line 109 of file AthenaHiveEventLoopMgr.h.

◆ m_doEvtHeartbeat

bool AthenaHiveEventLoopMgr::m_doEvtHeartbeat
protected

Definition at line 251 of file AthenaHiveEventLoopMgr.h.

◆ m_eventPrintoutInterval

UnsignedIntegerProperty AthenaHiveEventLoopMgr::m_eventPrintoutInterval
protected

Definition at line 116 of file AthenaHiveEventLoopMgr.h.

◆ m_eventStore

StoreGateSvc_t AthenaHiveEventLoopMgr::m_eventStore
protected

Reference to StoreGateSvc;.

Property

Definition at line 83 of file AthenaHiveEventLoopMgr.h.

◆ m_evtContext

EvtContext* AthenaHiveEventLoopMgr::m_evtContext
protected

Gaudi event selector Context (may be used as a cursor by the evt selector)

Definition at line 88 of file AthenaHiveEventLoopMgr.h.

◆ m_evtIdModSvc

IEvtIdModifierSvc_t AthenaHiveEventLoopMgr::m_evtIdModSvc
protected

Definition at line 102 of file AthenaHiveEventLoopMgr.h.

◆ m_evtsel

StringProperty AthenaHiveEventLoopMgr::m_evtsel
protected

Definition at line 90 of file AthenaHiveEventLoopMgr.h.

◆ m_evtSelector

IEvtSelector* AthenaHiveEventLoopMgr::m_evtSelector
protected

Reference to the Event Selector.

Definition at line 86 of file AthenaHiveEventLoopMgr.h.

◆ m_failureMode

IntegerProperty AthenaHiveEventLoopMgr::m_failureMode
protected

Definition at line 113 of file AthenaHiveEventLoopMgr.h.

◆ m_firstEventAlone

bool AthenaHiveEventLoopMgr::m_firstEventAlone
private

Definition at line 258 of file AthenaHiveEventLoopMgr.h.

◆ m_firstRun

bool AthenaHiveEventLoopMgr::m_firstRun
protected

Definition at line 110 of file AthenaHiveEventLoopMgr.h.

◆ m_flmbi

unsigned int AthenaHiveEventLoopMgr::m_flmbi
private

Definition at line 260 of file AthenaHiveEventLoopMgr.h.

◆ m_histoDataMgrSvc

IDataManagerSvc_t AthenaHiveEventLoopMgr::m_histoDataMgrSvc
protected

Reference to the Histogram Data Service.

Definition at line 94 of file AthenaHiveEventLoopMgr.h.

◆ m_histoPersSvc

IConversionSvc_t AthenaHiveEventLoopMgr::m_histoPersSvc
protected

Definition at line 98 of file AthenaHiveEventLoopMgr.h.

◆ m_histPersName

StringProperty AthenaHiveEventLoopMgr::m_histPersName
protected

Definition at line 105 of file AthenaHiveEventLoopMgr.h.

◆ m_imsg

std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr }
mutableprivateinherited

MessageSvc pointer.

Definition at line 135 of file AthMessaging.h.

135{ nullptr };

◆ m_incidentSvc

IIncidentSvc_t AthenaHiveEventLoopMgr::m_incidentSvc
protected

Reference to the incident service.

Definition at line 79 of file AthenaHiveEventLoopMgr.h.

◆ m_lastEventContext

EventContext AthenaHiveEventLoopMgr::m_lastEventContext
protected

Definition at line 255 of file AthenaHiveEventLoopMgr.h.

◆ m_lvl

std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL }
mutableprivateinherited

Current logging level.

Definition at line 138 of file AthMessaging.h.

138{ MSG::NIL };

◆ m_msg_tls

boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls
mutableprivateinherited

MsgStream instance (a std::cout like with print-out levels)

Definition at line 132 of file AthMessaging.h.

◆ m_nev

unsigned int AthenaHiveEventLoopMgr::m_nev
protected

events processed

Definition at line 248 of file AthenaHiveEventLoopMgr.h.

◆ m_nevt

unsigned int AthenaHiveEventLoopMgr::m_nevt
private

Definition at line 237 of file AthenaHiveEventLoopMgr.h.

◆ m_nm

std::string AthMessaging::m_nm
privateinherited

Message source name.

Definition at line 129 of file AthMessaging.h.

◆ m_proc

unsigned int AthenaHiveEventLoopMgr::m_proc
protected

Definition at line 249 of file AthenaHiveEventLoopMgr.h.

◆ m_requireInputAttributeList

bool AthenaHiveEventLoopMgr::m_requireInputAttributeList {}
protected

require input attribute list

Definition at line 134 of file AthenaHiveEventLoopMgr.h.

134{};

◆ m_scheduledStop

bool AthenaHiveEventLoopMgr::m_scheduledStop
protected

Scheduled stop of event processing.

Definition at line 182 of file AthenaHiveEventLoopMgr.h.

◆ m_schedulerName

std::string AthenaHiveEventLoopMgr::m_schedulerName
protected

Name of the scheduler to be used.

Definition at line 178 of file AthenaHiveEventLoopMgr.h.

◆ m_schedulerSvc

SmartIF<IScheduler> AthenaHiveEventLoopMgr::m_schedulerSvc
protected

A shortcut for the scheduler.

Definition at line 166 of file AthenaHiveEventLoopMgr.h.

◆ m_terminateLoop

bool AthenaHiveEventLoopMgr::m_terminateLoop { false }
protected

Definition at line 246 of file AthenaHiveEventLoopMgr.h.

246{ false };

◆ m_timeStamp

unsigned int AthenaHiveEventLoopMgr::m_timeStamp { 0 }
private

Definition at line 238 of file AthenaHiveEventLoopMgr.h.

238{ 0 };

◆ m_timeStampInt

unsigned int AthenaHiveEventLoopMgr::m_timeStampInt
private

Definition at line 260 of file AthenaHiveEventLoopMgr.h.

◆ m_toolAccept

tool_stats AthenaHiveEventLoopMgr::m_toolAccept
protected

tool returns StatusCode::SUCCESS counter

Definition at line 127 of file AthenaHiveEventLoopMgr.h.

◆ m_toolInvoke

tool_stats AthenaHiveEventLoopMgr::m_toolInvoke
protected

tool called counter

Definition at line 125 of file AthenaHiveEventLoopMgr.h.

◆ m_toolReject

tool_stats AthenaHiveEventLoopMgr::m_toolReject
protected

tool returns StatusCode::FAILURE counter

Definition at line 126 of file AthenaHiveEventLoopMgr.h.

◆ m_tools

tool_store AthenaHiveEventLoopMgr::m_tools
protected

internal tool store

Definition at line 128 of file AthenaHiveEventLoopMgr.h.

◆ m_useSecondaryEventNumber

bool AthenaHiveEventLoopMgr::m_useSecondaryEventNumber {}
protected

read event number from secondary input

Definition at line 137 of file AthenaHiveEventLoopMgr.h.

137{};

◆ m_useTools

bool AthenaHiveEventLoopMgr::m_useTools
protected

Definition at line 250 of file AthenaHiveEventLoopMgr.h.

◆ m_whiteboard

SmartIF<IHiveWhiteBoard> AthenaHiveEventLoopMgr::m_whiteboard
protected

Reference to the Whiteboard interface.

Definition at line 154 of file AthenaHiveEventLoopMgr.h.

◆ m_whiteboardName

std::string AthenaHiveEventLoopMgr::m_whiteboardName
protected

Name of the Whiteboard to be used.

Definition at line 180 of file AthenaHiveEventLoopMgr.h.

◆ m_writeHists

bool AthenaHiveEventLoopMgr::m_writeHists
private

Definition at line 241 of file AthenaHiveEventLoopMgr.h.

◆ m_writeInterval

UnsignedIntegerProperty AthenaHiveEventLoopMgr::m_writeInterval
private

Definition at line 240 of file AthenaHiveEventLoopMgr.h.


The documentation for this class was generated from the following files: