18 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
19 from AthenaConfiguration.ComponentFactory
import CompFactory
20 from AthenaConfiguration.AccumulatorCache
import AccumulatorCache
23 if flags.Detector.GeometryITk:
24 name = name.replace(
"InDet",
"ITk")
29 kwargs.setdefault(
"doHolesInDet",
True)
31 if 'InDetSummaryHelperTool' not in kwargs:
32 if kwargs[
"doHolesInDet"]:
33 from InDetConfig.InDetTrackSummaryHelperToolConfig
import (
34 InDetTrackSummaryHelperToolCfg)
35 InDetSummaryHelperTool = acc.popToolsAndMerge(
38 from InDetConfig.InDetTrackSummaryHelperToolConfig
import (
39 InDetSummaryHelperNoHoleSearchCfg)
40 InDetSummaryHelperTool = acc.popToolsAndMerge(
42 kwargs.setdefault(
"InDetSummaryHelperTool", InDetSummaryHelperTool)
44 acc.setPrivateTools(CompFactory.Trk.TrackSummaryTool(name, **kwargs))
48 flags, name='InDetTrackSummaryToolNoHoleSearch', **kwargs):
49 kwargs.setdefault(
'doHolesInDet',
False)
54 flags,name="InDetTrigTrackSummaryTool",**kwargs):
56 instance with hole search
60 kwargs.setdefault(
"doHolesInDet",
True)
62 if 'InDetSummaryHelperTool' not in kwargs:
63 from InDetConfig.InDetTrackSummaryHelperToolConfig
import (
64 TrigTrackSummaryHelperToolCfg)
65 kwargs.setdefault(
"InDetSummaryHelperTool", acc.popToolsAndMerge(
68 acc.setPrivateTools(CompFactory.Trk.TrackSummaryTool(name, **kwargs))
72 flags, name="InDetTrigFastTrackSummaryTool", **kwargs):
74 faster instance without hole search and TRT
79 from InDetConfig.InDetTrackSummaryHelperToolConfig
import (
80 TrigTrackSummaryHelperToolSiOnlyCfg)
82 kwargs.setdefault(
"doHolesInDet",
False)
84 acc.setPrivateTools(acc.popToolsAndMerge(
89 InDetSummaryHelperTool = acc.popToolsAndMerge(
97 kwargs.setdefault(
"doHolesInDet",
not flags.Tracking.doITkFastTracking)
99 if 'InDetSummaryHelperTool' not in kwargs:
100 if kwargs[
"doHolesInDet"]:
101 from InDetConfig.InDetTrackSummaryHelperToolConfig
import (
102 ITkTrackSummaryHelperToolCfg)
103 ITkSummaryHelperTool = acc.popToolsAndMerge(
106 from InDetConfig.InDetTrackSummaryHelperToolConfig
import (
107 ITkSummaryHelperNoHoleSearchCfg)
108 ITkSummaryHelperTool = acc.popToolsAndMerge(
110 kwargs.setdefault(
"InDetSummaryHelperTool", ITkSummaryHelperTool)
112 acc.setPrivateTools(CompFactory.Trk.TrackSummaryTool(name, **kwargs))
116 flags, name='ITkTrackSummaryToolNoHoleSearch', **kwargs):
117 kwargs.setdefault(
'doHolesInDet',
False)
122 flags, name="GSFTrackSummaryTool", **kwargs):
123 """ The Track Summary for the GSF refitted Tracks/TrackParticles"""
127 if "InDetSummaryHelperTool" not in kwargs:
128 from InDetConfig.InDetTrackSummaryHelperToolConfig
import (
129 InDetTrackSummaryHelperToolCfg)
130 kwargs[
"InDetSummaryHelperTool"] = acc.popToolsAndMerge(
133 name=
"GSFBuildTrackSummaryHelperTool",
136 kwargs.setdefault(
"doHolesInDet",
False)
139 acc.setPrivateTools(CompFactory.Trk.TrackSummaryTool(name, **kwargs))
145 from MuonConfig.MuonRecToolsConfig
import MuonTrackSummaryHelperToolCfg
146 kwargs.setdefault(
"MuonSummaryHelperTool", result.popToolsAndMerge(
148 kwargs.setdefault(
"AddDetailedMuonSummary",
True)
149 result.setPrivateTools(CompFactory.Trk.TrackSummaryTool(name, **kwargs))
154 flags, name="CombinedMuonTrackSummary", **kwargs):
158 if "InDetSummaryHelperTool" not in kwargs:
159 from InDetConfig.InDetTrackSummaryHelperToolConfig
import (
160 CombinedMuonIDSummaryHelperToolCfg)
161 kwargs.setdefault(
"InDetSummaryHelperTool", result.popToolsAndMerge(
164 if "MuonSummaryHelperTool" not in kwargs:
165 from MuonConfig.MuonRecToolsConfig
import MuonTrackSummaryHelperToolCfg
166 kwargs.setdefault(
"MuonSummaryHelperTool", result.popToolsAndMerge(
169 kwargs.setdefault(
"doHolesInDet",
True)
170 kwargs.setdefault(
"doHolesMuon",
False)
171 kwargs.setdefault(
"AddDetailedMuonSummary",
True)
172 kwargs.setdefault(
"PixelExists",
True)
174 result.setPrivateTools(CompFactory.Trk.TrackSummaryTool(name, **kwargs))