From 152a6f45c19952b86fe01137e7c0b527d29f5828 Mon Sep 17 00:00:00 2001
From: Dave Casper <dcasper@localhost.localdomain>
Date: Tue, 17 Sep 2019 02:57:46 -0700
Subject: [PATCH] Correct test failures

---
 .../GeoModelTest/python/GeoModelTestConfig.py |  5 ++++
 .../test/DipoleGMConfig_test.py               | 23 +++++++++++++++++++
 2 files changed, 28 insertions(+)
 create mode 100755 Tracker/TrackerDetDescr/DipoleGeoModel/test/DipoleGMConfig_test.py

diff --git a/DetectorDescription/GeoModel/GeoModelTest/python/GeoModelTestConfig.py b/DetectorDescription/GeoModel/GeoModelTest/python/GeoModelTestConfig.py
index 8b0d37d4..24fd688c 100644
--- a/DetectorDescription/GeoModel/GeoModelTest/python/GeoModelTestConfig.py
+++ b/DetectorDescription/GeoModel/GeoModelTest/python/GeoModelTestConfig.py
@@ -26,6 +26,11 @@ if __name__ == "__main__":
     ConfigFlags.GeoModel.FaserVersion     = "FASER-00"
     ConfigFlags.GeoModel.GeoExportFile    = "faserGeo.db"
     ConfigFlags.GeoModel.Align.Dynamic    = False
+    ConfigFlags.Detector.SimulateVeto     = True
+    ConfigFlags.Detector.SimulateFaserSCT = True
+    ConfigFlags.Detector.SimulateUpstreamDipole = True
+    ConfigFlags.Detector.SimulateCentralDipole = True
+    ConfigFlags.Detector.SimulateDownstreamDipole = True
     ConfigFlags.lock()
     # ConfigFlags.dump()
 
diff --git a/Tracker/TrackerDetDescr/DipoleGeoModel/test/DipoleGMConfig_test.py b/Tracker/TrackerDetDescr/DipoleGeoModel/test/DipoleGMConfig_test.py
new file mode 100755
index 00000000..fa4ccba9
--- /dev/null
+++ b/Tracker/TrackerDetDescr/DipoleGeoModel/test/DipoleGMConfig_test.py
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+"""Run tests on SCT_GeoModel configuration
+
+Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
+"""
+if __name__ == "__main__":
+    from AthenaCommon.Configurable import Configurable
+    Configurable.configurableRun3Behavior=1
+    from CalypsoConfiguration.AllConfigFlags import ConfigFlags
+    from AthenaConfiguration.TestDefaults import defaultTestFiles
+
+    ConfigFlags.Input.Files = defaultTestFiles.HITS
+    ConfigFlags.IOVDb.GlobalTag         = "OFLCOND-MC16-SDR-16"
+    ConfigFlags.Detector.SimulateDipole    = True
+    ConfigFlags.GeoModel.Align.Dynamic  = False
+    ConfigFlags.lock()
+
+    from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
+    from DipoleGeoModel.DipoleGeoModelConfig import DipoleGeometryCfg
+    acc = DipoleGeometryCfg(ConfigFlags)
+    f=open('DipoleGeometryCfg.pkl','w')
+    acc.store(f)
+    f.close()
-- 
GitLab