From 324e71609d91acf4efc6355e564232480967176d Mon Sep 17 00:00:00 2001
From: Adam Edward Barton <adam.edward.barton@cern.ch>
Date: Tue, 4 Dec 2018 09:15:16 +0000
Subject: [PATCH] Beamspot service migration fix

---
 .../InDetBeamSpotService/share/BeamCondSvc.py            | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/InnerDetector/InDetConditions/InDetBeamSpotService/share/BeamCondSvc.py b/InnerDetector/InDetConditions/InDetBeamSpotService/share/BeamCondSvc.py
index 9c3ce5d291d..8742fc87787 100644
--- a/InnerDetector/InDetConditions/InDetBeamSpotService/share/BeamCondSvc.py
+++ b/InnerDetector/InDetConditions/InDetBeamSpotService/share/BeamCondSvc.py
@@ -13,3 +13,12 @@ except ImportError:
     # Protection for AthSimulationBase release which does not contain RecExConfig
     conddb.addFolderSplitOnline("INDET","/Indet/Onl/Beampos","/Indet/Beampos")
 
+
+#Code to help transition to MT system, remove once this package is removed
+if not DetFlags.simulate.any_on() :
+   from AthenaCommon.AlgSequence import AthSequencer
+   condSeq = AthSequencer("AthCondSeq")
+   if not hasattr(condSeq, "BeamSpotCondAlg"):
+       from BeamSpotConditions.BeamSpotConditionsConf import BeamSpotCondAlg
+       condSeq += BeamSpotCondAlg( "BeamSpotCondAlg" )
+
-- 
GitLab