8 if flags.Detector.GeometryITk:
9 name = name.replace(
"InDet",
"ITk")
12 result = ComponentAccumulator()
14 if "HoleSearch" not in kwargs:
15 from InDetConfig.InDetTrackHoleSearchConfig
import (
16 InDetTrackHoleSearchToolCfg)
17 kwargs.setdefault(
"HoleSearch", result.popToolsAndMerge(
18 InDetTrackHoleSearchToolCfg(flags)))
20 if not flags.Detector.EnableTRT:
21 kwargs.setdefault(
"TRTStrawSummarySvc",
"")
23 from TRT_ConditionsServices.TRT_ConditionsServicesConfig
import TRT_StrawStatusSummaryToolCfg
24 kwargs.setdefault(
"TRTStrawSummarySvc", result.popToolsAndMerge(TRT_StrawStatusSummaryToolCfg(flags)))
26 kwargs.setdefault(
"usePixel", flags.Detector.EnablePixel)
27 kwargs.setdefault(
"useSCT", flags.Detector.EnableSCT)
28 kwargs.setdefault(
"useTRT", flags.Detector.EnableTRT)
30 result.setPrivateTools(
31 CompFactory.InDet.InDetTrackSummaryHelperTool(name, **kwargs))
42 flags, name="InDetTrigSummaryHelper", **kwargs):
44 result = ComponentAccumulator()
46 kwargs.setdefault(
"useTRT", flags.Detector.EnableTRT)
50 if "HoleSearch" not in kwargs:
51 from InDetConfig.InDetTrackHoleSearchConfig
import (
52 TrigHoleSearchToolCfg)
53 kwargs.setdefault(
"HoleSearch", result.popToolsAndMerge(
54 TrigHoleSearchToolCfg(flags)))
58 if "TRTStrawSummarySvc" not in kwargs:
59 from TRT_ConditionsServices.TRT_ConditionsServicesConfig
import (
60 TRT_StrawStatusSummaryToolCfg)
61 kwargs.setdefault(
"TRTStrawSummarySvc", result.popToolsAndMerge(
62 TRT_StrawStatusSummaryToolCfg(flags)))
64 kwargs.setdefault(
"usePixel", flags.Detector.EnablePixel)
65 kwargs.setdefault(
"useSCT", flags.Detector.EnableSCT)
67 result.setPrivateTools(
68 CompFactory.InDet.InDetTrackSummaryHelperTool(name, **kwargs))
88 result = ComponentAccumulator()
90 if "HoleSearch" not in kwargs:
91 from InDetConfig.InDetTrackHoleSearchConfig
import (
92 ITkTrackHoleSearchToolCfg)
93 kwargs.setdefault(
"HoleSearch", result.popToolsAndMerge(
94 ITkTrackHoleSearchToolCfg(flags)))
96 kwargs.setdefault(
"TRTStrawSummarySvc",
"")
97 kwargs.setdefault(
"usePixel", flags.Detector.EnableITkPixel)
98 kwargs.setdefault(
"useSCT", flags.Detector.EnableITkStrip)
99 kwargs.setdefault(
"useTRT",
False)
101 result.setPrivateTools(
102 CompFactory.InDet.InDetTrackSummaryHelperTool(name, **kwargs))
113 flags, name='CombinedMuonIDSummaryHelper', **kwargs):
114 result = ComponentAccumulator()
116 if "HoleSearch" not in kwargs:
117 from InDetConfig.InDetTrackHoleSearchConfig
import (
118 CombinedMuonIDHoleSearchCfg)
119 kwargs.setdefault(
"HoleSearch", result.popToolsAndMerge(
120 CombinedMuonIDHoleSearchCfg(flags)))
122 result.setPrivateTools(result.popToolsAndMerge(