From b6e3b3444f5ddf6d50b5d5f529949e1837913541 Mon Sep 17 00:00:00 2001
From: John Chapman <jchapman@cern.ch>
Date: Wed, 30 Jan 2019 15:41:17 +0100
Subject: [PATCH] Protect simulation against AlignCallbacks in GeoModelSvc

---
 .../GeoModel/AtlasGeoModel/python/GeoModelConfig.py           | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/DetectorDescription/GeoModel/AtlasGeoModel/python/GeoModelConfig.py b/DetectorDescription/GeoModel/AtlasGeoModel/python/GeoModelConfig.py
index 21cb0f410a2..a2dd3395666 100644
--- a/DetectorDescription/GeoModel/AtlasGeoModel/python/GeoModelConfig.py
+++ b/DetectorDescription/GeoModel/AtlasGeoModel/python/GeoModelConfig.py
@@ -16,7 +16,9 @@ def GeoModelCfg(configFlags):
     from GeoModelSvc.GeoModelSvcConf import GeoModelSvc
     gms=GeoModelSvc(AtlasVersion=version,
                     SupportedGeometry = int(relversion[0]))
-
+    if configFlags.Detector.Simulate:
+        ## Protects GeoModelSvc in the simulation from the AlignCallbacks
+        gms.AlignCallbacks = False
     result.addService(gms)
     
     from DetDescrCnvSvc.DetDescrCnvSvcConf import DetDescrCnvSvc
-- 
GitLab