8 flags, name = 'InDetTRT_TrackSegmentsFinder',
9 InputCollections = None, **kwargs):
11 from MagFieldServices.MagFieldServicesConfig
import (
12 AtlasFieldCacheCondAlgCfg)
15 if "SegmentsMakerTool" not in kwargs:
16 from InDetConfig.TRT_TrackSegmentsToolConfig
import (
17 TRT_TrackSegmentsMaker_ATLxkCfg)
18 InDetTRT_TrackSegmentsMaker = acc.popToolsAndMerge(
20 InputCollections = InputCollections))
21 kwargs.setdefault(
"SegmentsMakerTool", InDetTRT_TrackSegmentsMaker)
23 if "RoadTool" not in kwargs:
24 from InDetConfig.TRT_DetElementsRoadToolConfig
import (
25 TRT_DetElementsRoadMaker_xkCfg)
26 kwargs.setdefault(
"RoadTool", acc.popToolsAndMerge(
29 if flags.Tracking.BackTracking.doRoISeeded:
30 from InDetConfig.InDetCaloClusterROISelectorConfig
import (
31 CaloClusterROIPhiRZContainerMakerCfg)
33 kwargs.setdefault(
"useCaloSeeds",
True)
34 kwargs.setdefault(
"EMROIPhiRZContainer", (
35 "InDetCaloClusterROIPhiRZ%.0fGeVBackTracking" %
36 (flags.Tracking.BackTracking.minRoIClusterEt/Units.GeV)))
38 kwargs.setdefault(
"SegmentsLocation",
"TRTSegments")
40 acc.addEventAlgo(CompFactory.InDet.TRT_TrackSegmentsFinder(name, **kwargs))