Skip to content
Snippets Groups Projects
Commit 91a99611 authored by scott snyder's avatar scott snyder
Browse files

AthenaServices: Use out-of-line extended context methods.

Use out-of-line methods from AthenaKernel to get/set the extended event context.
parent 352ae0ea
No related branches found
No related tags found
No related merge requests found
......@@ -1226,8 +1226,9 @@ StatusCode AthenaEventLoopMgr::installEventContext (EventContext& ctx,
ctx.setEventID(pEvent);
ctx.set(m_nev,0);
ctx.setExtension( Atlas::ExtendedEventContext( eventStore()->hiveProxyDict(),
conditionsRun) );
Atlas::setExtendedEventContext(ctx,
Atlas::ExtendedEventContext( eventStore()->hiveProxyDict(),
conditionsRun) );
Gaudi::Hive::setCurrentContext( ctx );
m_aess->reset( ctx );
......
......@@ -627,7 +627,7 @@ StatusCode AthenaHiveEventLoopMgr::executeEvent( EventContext &&ctx )
conditionsRun = (*attr)["ConditionsRun"].data<unsigned int>();
}
}
ctx.template getExtension<Atlas::ExtendedEventContext>().setConditionsRun (conditionsRun);
Atlas::getExtendedEventContext(ctx).setConditionsRun (conditionsRun);
Gaudi::Hive::setCurrentContext ( ctx );
// Record EventContext in current whiteboard
......@@ -1218,7 +1218,8 @@ EventContext AthenaHiveEventLoopMgr::createEventContext() {
<< " could not be selected for the WhiteBoard" << endmsg;
return EventContext{}; // invalid EventContext
} else {
ctx.setExtension( Atlas::ExtendedEventContext( eventStore()->hiveProxyDict() ) );
Atlas::setExtendedEventContext(ctx,
Atlas::ExtendedEventContext( eventStore()->hiveProxyDict() ) );
debug() << "created EventContext, num: " << ctx.evt() << " in slot: "
<< ctx.slot() << endmsg;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment