8 doMaterialValidation=False,
11 Sets up the Tracking Geometry Service
13 if not (flags.Common.ProductionStep
in [ProductionStep.Simulation, ProductionStep.FastChain]
or
14 flags.Sim.ISFRun
is True):
15 from AthenaCommon.Logging
import logging
16 mlog = logging.getLogger(
"TrackingGeometrySvcCfg")
18 " TrackingGeometrySvc is to be deprecated in favour of TrackingGeometryCondAlg")
22 from TrackingGeometryCondAlg.AtlasTrackingGeometryCondAlgConfig
import (
24 kwargs.setdefault(
"GeometryBuilder", result.popToolsAndMerge(
28 atlas_geometry_processors=[]
30 if flags.TrackingGeometry.MaterialSource ==
'COOL':
31 CoolDataBaseFolder =
'/GLOBAL/TrackingGeo/LayerMaterialV2'
32 if flags.Detector.GeometryITk:
33 CoolDataBaseFolder =
'/GLOBAL/TrackingGeo/LayerMaterialITK'
35 from TrackingGeometryCondAlg.TrkDetDescrToolsConfig
import (
36 LayerMaterialProviderCfg)
37 atlas_geometry_processors += [ result.popToolsAndMerge(
39 LayerMaterialMapName = CoolDataBaseFolder,
40 LayerMaterialMapKey =
'')) ]
43 from TrackingGeometryCondAlg.AtlasTrackingGeometryCondAlgConfig
import _setupCondDB
46 elif flags.TrackingGeometry.MaterialSource ==
'Input':
47 from TrackingGeometryCondAlg.TrkDetDescrToolsConfig
import (
48 InputLayerMaterialProviderCfg)
49 atlas_geometry_processors += [ result.popToolsAndMerge(
52 if doMaterialValidation:
53 from TrackingGeometryCondAlg.TrkDetDescrToolsConfig
import (
54 LayerMaterialInspectorCfg)
55 atlas_geometry_processors += [ result.popToolsAndMerge(
58 from GaudiKernel.GaudiHandles
import PrivateToolHandleArray
59 kwargs.setdefault(
"GeometryProcessors", PrivateToolHandleArray(
60 atlas_geometry_processors))
61 kwargs.setdefault(
"TrackingGeometryName",
'AtlasTrackingGeometry')
62 kwargs.setdefault(
"BuildGeometryFromTagInfo",
True)
64 result.addService(CompFactory.Trk.TrackingGeometrySvc(name, **kwargs),