3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
11 result.addPublicTool(CompFactory.JiveXML.GeometryWriter(name =
"GeometryWriter", **kwargs))
18 result.addPublicTool(CompFactory.JiveXML.MuonGeometryWriter(name =
"MuonGeometryWriter", **kwargs))
32 kwargs.setdefault(
"WriteToFile",
True)
33 kwargs.setdefault(
"StreamToServerTool",
None)
34 kwargs.setdefault(
"WriteGeometry",
True)
39 the_alg = CompFactory.JiveXML.AlgoJiveXML(name=
"AlgoJiveXML", **kwargs)
40 result.addEventAlgo(the_alg, primary=
True)
44 from AthenaConfiguration.TestDefaults
import defaultTestFiles
46 flags.Input.Files = defaultTestFiles.RAW_RUN3
47 flags.Exec.MaxEvents = 0
48 flags.GeoModel.AtlasVersion =
'ATLAS-R3S-2021-03-02-00'
49 flags.IOVDb.GlobalTag =
'CONDBR2-BLKPA-2023-02'
53 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
56 if flags.Detector.GeometryBpipe:
57 from BeamPipeGeoModel.BeamPipeGMConfig
import BeamPipeGeometryCfg
60 if flags.Detector.GeometryPixel:
61 from PixelGeoModel.PixelGeoModelConfig
import PixelReadoutGeometryCfg
64 if flags.Detector.GeometrySCT:
65 from SCT_GeoModel.SCT_GeoModelConfig
import SCT_ReadoutGeometryCfg
68 if flags.Detector.GeometryTRT:
69 from TRT_GeoModel.TRT_GeoModelConfig
import TRT_ReadoutGeometryCfg
72 if flags.Detector.GeometryITkPixel:
73 from PixelGeoModelXml.ITkPixelGeoModelConfig
import ITkPixelReadoutGeometryCfg
76 if flags.Detector.GeometryITkStrip:
77 from StripGeoModelXml.ITkStripGeoModelConfig
import ITkStripReadoutGeometryCfg
80 if flags.Detector.GeometryHGTD:
81 from HGTD_GeoModelXml.HGTD_GeoModelConfig
import HGTD_ReadoutGeometryCfg
84 if flags.Detector.GeometryLAr:
85 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
88 if flags.Detector.GeometryTile:
89 from TileGeoModel.TileGMConfig
import TileGMCfg
92 if flags.Detector.GeometryMuon:
93 from MuonConfig.MuonGeometryConfig
import MuonGeoModelCfg
96 geoModel = result.getService(
"GeoModelSvc")
97 geoModel.DetectorTools[
"LArDetectorToolNV"].GeometryConfig =
"FULL"
102 sys.exit(
not result.run().isSuccess())
104 if __name__ ==
"__main__":