From 1ddca87ea8eb886f1b228de640bcd54a854fc0f4 Mon Sep 17 00:00:00 2001
From: scott snyder <sss@karma>
Date: Wed, 8 May 2019 18:31:47 +0200
Subject: [PATCH] TrigEgammaHypo: Avoid EventContext TLS lookups.

Don't fetch EventContext from thread-local storage if we already have
it as an argument.
---
 .../TrigHypothesis/TrigEgammaHypo/src/TrigL2CaloHypoAlgMT.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Trigger/TrigHypothesis/TrigEgammaHypo/src/TrigL2CaloHypoAlgMT.cxx b/Trigger/TrigHypothesis/TrigEgammaHypo/src/TrigL2CaloHypoAlgMT.cxx
index bb07fa0e5b2..1325c9e5769 100644
--- a/Trigger/TrigHypothesis/TrigEgammaHypo/src/TrigL2CaloHypoAlgMT.cxx
+++ b/Trigger/TrigHypothesis/TrigEgammaHypo/src/TrigL2CaloHypoAlgMT.cxx
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
 */
 
 #include "GaudiKernel/Property.h"
@@ -82,7 +82,7 @@ StatusCode TrigL2CaloHypoAlgMT::execute( const EventContext& context ) const {
     }
     d->setObjectLink( "roi", roiELInfo.link );
     
-    TrigCompositeUtils::linkToPrevious( d, previousDecision );
+    TrigCompositeUtils::linkToPrevious( d, previousDecision, context );
     ATH_MSG_DEBUG( "Added view, roi, cluster, previous decision to new decision " << counter << " for view " << (*viewELInfo.link)->name()  );
     counter++;
 
-- 
GitLab