3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaConfiguration.Enums
import BeamType
9 acc.setPrivateTools(CompFactory.InDet.TRT_DriftCircleOnTrackNoDriftTimeTool(name, **kwargs))
14 from TrkConfig.TrkRIO_OnTrackCreatorConfig
import RIO_OnTrackErrorScalingCondAlgCfg
16 kwargs.setdefault(
"TRTErrorScalingKey",
'/Indet/TrkErrorScalingTRT')
18 LuminosityOutputKey =
''
19 if flags.Beam.Type
is not BeamType.Cosmics:
20 from LumiBlockComps.LuminosityCondAlgConfig
import LuminosityCondAlgCfg
22 acc.merge(LuminosityCondAlg)
23 LuminosityOutputKey = LuminosityCondAlg.getCondAlgo(
'LuminosityCondAlg').LuminosityOutputKey
25 kwargs.setdefault(
"LumiDataKey", LuminosityOutputKey)
26 acc.setPrivateTools(CompFactory.InDet.TRT_DriftCircleOnTrackTool(name, **kwargs))
32 if 'RIOonTrackToolDrift' not in kwargs:
34 if 'RIOonTrackToolTube' not in kwargs:
36 kwargs.setdefault(
"ScaleHitUncertainty", 2.5)
38 acc.setPrivateTools(CompFactory.InDet.TRT_DriftCircleOnTrackUniversalTool(name, **kwargs))
42 kwargs.setdefault(
"ScaleHitUncertainty", 2.)