From 3f6b2404b6570333f67c76f4e3a175fe8727618f Mon Sep 17 00:00:00 2001
From: Walter Lampl <Walter.Lampl@cern.ch>
Date: Fri, 18 Jan 2019 09:57:21 +0100
Subject: [PATCH] ParticleCaloCellAssociationTool: use PresamplerB exit instead
 of EMB1 if no EMB1 is not found

---
 .../TrackToCalo/src/ParticleCaloCellAssociationTool.cxx        | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/Reconstruction/RecoTools/TrackToCalo/src/ParticleCaloCellAssociationTool.cxx b/Reconstruction/RecoTools/TrackToCalo/src/ParticleCaloCellAssociationTool.cxx
index 096a24f53272..31e1e18299df 100644
--- a/Reconstruction/RecoTools/TrackToCalo/src/ParticleCaloCellAssociationTool.cxx
+++ b/Reconstruction/RecoTools/TrackToCalo/src/ParticleCaloCellAssociationTool.cxx
@@ -94,8 +94,7 @@ namespace Rec {
       if(sample== CaloSampling::PreSamplerB) {
         pos2 = entryExitLayerMap.find(CaloSampling::EMB1);
 	if (pos2==entryExitLayerMap.end()) {
-	    ATH_MSG_WARNING("Failed to find EMB1 in entryExitLayerMap");
-	    continue;
+	    pos2=pos;
 	  }
       } 
       //// calculate 3D path length
-- 
GitLab