49 nameSuffix =
'Cond' if useCond
else ''
51 lArVolumeBuilder = result.popToolsAndMerge(
53 result.addPublicTool(lArVolumeBuilder)
55 tileVolumeBuilder = result.popToolsAndMerge(
57 result.addPublicTool(tileVolumeBuilder)
59 from TrackingGeometryCondAlg.TrkDetDescrToolsConfig
import (
60 TrackingVolumeHelperCfg)
61 trackingVolumeHelper = result.popToolsAndMerge(
63 result.addPublicTool(trackingVolumeHelper)
65 from SubDetectorEnvelopes.SubDetectorEnvelopesConfig
import (
69 kwargs.setdefault(
"LArVolumeBuilder", lArVolumeBuilder)
70 kwargs.setdefault(
"TileVolumeBuilder", tileVolumeBuilder)
71 kwargs.setdefault(
"TrackingVolumeHelper", trackingVolumeHelper)
72 kwargs.setdefault(
"EnvelopeDefinitionSvc", envelopeDefinitionSvc)
73 kwargs.setdefault(
"EntryVolumeName",
"InDet::Containers::EntryVolume")
74 kwargs.setdefault(
"ExitVolumeName",
"Calo::Container")
75 kwargs.setdefault(
"GapLayerEnvelope", 5.0)
77 name = name + nameSuffix
78 geometryBuilder = CompFactory.Calo.CaloTrackingGeometryBuilderCond(name, **kwargs)
if useCond
else \
79 CompFactory.Calo.CaloTrackingGeometryBuilder(name, **kwargs)
80 result.setPrivateTools(geometryBuilder)