3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaConfiguration.Enums
import BeamType
9 if flags.Detector.GeometryITk:
10 name = name.replace(
"InDet",
"ITk")
14 if 'Extrapolator' not in kwargs:
16 from TrkConfig.AtlasExtrapolatorConfig
import InDetExtrapolatorCfg
17 kwargs.setdefault(
"Extrapolator", result.popToolsAndMerge(
20 if 'BoundaryCheckTool' not in kwargs:
21 from InDetConfig.InDetBoundaryCheckToolConfig
import (
22 InDetBoundaryCheckToolCfg)
23 kwargs.setdefault(
'BoundaryCheckTool', result.popToolsAndMerge(
26 kwargs.setdefault(
"Cosmics", flags.Beam.Type
is BeamType.Cosmics)
27 kwargs.setdefault(
"CountDeadModulesAfterLastHit",
True)
29 result.setPrivateTools(
30 CompFactory.InDet.InDetTrackHoleSearchTool(name, **kwargs))
37 if 'Extrapolator' not in kwargs:
38 from TrkConfig.AtlasExtrapolatorConfig
import InDetExtrapolatorCfg
39 kwargs.setdefault(
"Extrapolator", result.popToolsAndMerge(
43 if 'BoundaryCheckTool' not in kwargs:
44 from InDetConfig.InDetBoundaryCheckToolConfig
import (
45 InDetTrigBoundaryCheckToolCfg)
46 kwargs.setdefault(
'BoundaryCheckTool', result.popToolsAndMerge(
49 kwargs.setdefault(
"CountDeadModulesAfterLastHit",
True)
51 result.setPrivateTools(
52 CompFactory.InDet.InDetTrackHoleSearchTool(name, **kwargs))
58 if 'Extrapolator' not in kwargs:
59 from TrkConfig.AtlasExtrapolatorConfig
import AtlasExtrapolatorCfg
60 kwargs.setdefault(
"Extrapolator", result.popToolsAndMerge(
63 if 'BoundaryCheckTool' not in kwargs:
64 from InDetConfig.InDetBoundaryCheckToolConfig
import (
65 ITkBoundaryCheckToolCfg)
66 kwargs.setdefault(
'BoundaryCheckTool', result.popToolsAndMerge(
69 kwargs.setdefault(
"Cosmics", flags.Beam.Type
is BeamType.Cosmics)
70 kwargs.setdefault(
"CountDeadModulesAfterLastHit",
True)
72 result.setPrivateTools(
73 CompFactory.InDet.InDetTrackHoleSearchTool(name, **kwargs))
78 flags, name='CombinedMuonIDHoleSearch', **kwargs):
79 if flags.Detector.GeometryITk:
84 if 'Extrapolator' not in kwargs:
85 from TrkConfig.AtlasExtrapolatorConfig
import AtlasExtrapolatorCfg
86 kwargs.setdefault(
"Extrapolator", result.popToolsAndMerge(
89 if 'BoundaryCheckTool' not in kwargs:
90 if flags.Muon.MuonTrigger:
91 from InDetConfig.InDetBoundaryCheckToolConfig
import (
92 CombinedMuonTrigIDBoundaryCheckToolCfg)
93 BoundaryCheckTool = result.popToolsAndMerge(
96 from InDetConfig.InDetBoundaryCheckToolConfig
import (
97 CombinedMuonIDBoundaryCheckToolCfg)
98 BoundaryCheckTool = result.popToolsAndMerge(
101 kwargs.setdefault(
'BoundaryCheckTool', BoundaryCheckTool)
103 result.setPrivateTools(result.popToolsAndMerge(