diff --git a/DetectorDescription/GeoModel/GeoModelTest/python/GeoModelTestConfig.py b/DetectorDescription/GeoModel/GeoModelTest/python/GeoModelTestConfig.py index 8b0d37d45dede35297a830b245d9ceda8481a869..24fd688cbbaec45c2329f3cf0af57782271d1a96 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 0000000000000000000000000000000000000000..fa4ccba933f33231333501790a933a75fccb0df0 --- /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()