Skip to content
Snippets Groups Projects
Commit 3ef508ae authored by Stewart Martin-Haugh's avatar Stewart Martin-Haugh
Browse files

Merge branch 'FixMT.20180914' into 'master'

Fix mt.20180914 for the athena MT HLTCalo

See merge request atlas/athena!14241
parents 54f37908 3a4b64fd
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ StatusCode TrigCaloDataAccessSvc::finalize() {
EventContext ec;
ec.setSlot( slot );
HLTCaloEventCache *cache = m_larcell.get( ec );
cache->container->finalize();
ATH_CHECK(cache->container->finalize());
delete cache->container;
cache->lastFSEvent = 0xFFFFFFFF;
delete cache->fullcont;
......@@ -97,7 +97,7 @@ StatusCode TrigCaloDataAccessSvc::loadCollections ( const EventContext& context,
ATH_MSG_DEBUG( "LArTT requested for event " << context << " and RoI " << roi );
StatusCode sc = prepareLArCollections( context, roi, sampling, detID );
if ( !sc.isFailure() ) return sc;
if ( sc.isFailure() ) return sc;
{
// this has to be guarded because getTT called on the LArCollection bu other threads updates internal map
......@@ -127,6 +127,7 @@ StatusCode TrigCaloDataAccessSvc::loadFullCollections ( const EventContext& cont
ConstDataVector<CaloCellContainer>& cont ) {
StatusCode sc = prepareLArFullCollections( context );
if ( sc.isFailure() ) return StatusCode::FAILURE;
std::lock_guard<std::mutex> getCollClock{ m_getCollMutex };
CaloCellContainer* cont_to_copy = m_larcell.get(context)->fullcont ;
......@@ -182,7 +183,9 @@ StatusCode TrigCaloDataAccessSvc::prepareLArFullCollections( const EventContext&
Monitored::MonitoredScope::declare( m_monTool, lockTime, detidMon );
// collection prepared
cache->lastFSEvent = context.evt();
return StatusCode(static_cast<Status>(status));
if ( status ) return StatusCode::FAILURE;
else return StatusCode::SUCCESS;
//return StatusCode(static_cast<Status>(status));
}
StatusCode TrigCaloDataAccessSvc::lateInit() { // non-const this thing
......@@ -456,6 +459,7 @@ StatusCode TrigCaloDataAccessSvc::prepareLArCollections( const EventContext& con
auto roiPhi = Monitored::MonitoredScalar::declare( "roiPhi_LAr", roi.phi() );
Monitored::MonitoredScope::declare( m_monTool, lockTime, roiEta, roiPhi, roiROBs );
return static_cast<Status>(status);
if ( status ) return StatusCode::FAILURE;
else return StatusCode::SUCCESS;
}
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