3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
8 if flags.Detector.GeometryITk:
9 name = name.replace(
"InDet",
"ITk")
14 if "HoleSearch" not in kwargs:
15 from InDetConfig.InDetTrackHoleSearchConfig
import (
16 InDetTrackHoleSearchToolCfg)
17 kwargs.setdefault(
"HoleSearch", result.popToolsAndMerge(
20 if not flags.Detector.EnableTRT:
21 kwargs.setdefault(
"TRTStrawSummarySvc",
"")
23 kwargs.setdefault(
"usePixel", flags.Detector.EnablePixel)
24 kwargs.setdefault(
"useSCT", flags.Detector.EnableSCT)
25 kwargs.setdefault(
"useTRT", flags.Detector.EnableTRT)
27 result.setPrivateTools(
28 CompFactory.InDet.InDetTrackSummaryHelperTool(name, **kwargs))
33 flags, name='InDetSummaryHelperNoHoleSearch', **kwargs):
34 kwargs.setdefault(
"HoleSearch",
None)
39 flags, name="InDetTrigSummaryHelper", **kwargs):
43 kwargs.setdefault(
"useTRT", flags.Detector.EnableTRT)
47 if "HoleSearch" not in kwargs:
48 from InDetConfig.InDetTrackHoleSearchConfig
import (
49 TrigHoleSearchToolCfg)
50 kwargs.setdefault(
"HoleSearch", result.popToolsAndMerge(
55 if "TRTStrawSummarySvc" not in kwargs:
56 from TRT_ConditionsServices.TRT_ConditionsServicesConfig
import (
57 TRT_StrawStatusSummaryToolCfg)
58 kwargs.setdefault(
"TRTStrawSummarySvc", result.popToolsAndMerge(
61 kwargs.setdefault(
"usePixel", flags.Detector.EnablePixel)
62 kwargs.setdefault(
"useSCT", flags.Detector.EnableSCT)
64 result.setPrivateTools(
65 CompFactory.InDet.InDetTrackSummaryHelperTool(name, **kwargs))
70 flags, name="InDetTrigSummaryHelperSharedHits", **kwargs):
77 flags, name="InDetTrigSummaryHelperSiOnly", **kwargs):
80 TRTStrawSummarySvc=
None,
87 if "HoleSearch" not in kwargs:
88 from InDetConfig.InDetTrackHoleSearchConfig
import (
89 ITkTrackHoleSearchToolCfg)
90 kwargs.setdefault(
"HoleSearch", result.popToolsAndMerge(
93 kwargs.setdefault(
"TRTStrawSummarySvc",
"")
94 kwargs.setdefault(
"usePixel", flags.Detector.EnableITkPixel)
95 kwargs.setdefault(
"useSCT", flags.Detector.EnableITkStrip)
96 kwargs.setdefault(
"useTRT",
False)
98 result.setPrivateTools(
99 CompFactory.InDet.InDetTrackSummaryHelperTool(name, **kwargs))
104 flags, name='ITkSummaryHelperNoHoleSearch', **kwargs):
105 kwargs.setdefault(
"HoleSearch",
None)
110 flags, name='CombinedMuonIDSummaryHelper', **kwargs):
113 if "HoleSearch" not in kwargs:
114 from InDetConfig.InDetTrackHoleSearchConfig
import (
115 CombinedMuonIDHoleSearchCfg)
116 kwargs.setdefault(
"HoleSearch", result.popToolsAndMerge(
119 result.setPrivateTools(result.popToolsAndMerge(