3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
10 if 'SctSummaryTool' not in kwargs:
11 if flags.Detector.EnableSCT:
12 from SCT_ConditionsTools.SCT_ConditionsToolsConfig
import (
13 SCT_ConditionsSummaryToolCfg)
14 kwargs.setdefault(
"SctSummaryTool", result.popToolsAndMerge(
17 kwargs.setdefault(
"SctSummaryTool",
None)
19 if flags.Detector.EnableSCT:
20 if "SCTDetElStatus" not in kwargs
and not flags.Common.isOnline:
21 from SCT_ConditionsAlgorithms.SCT_ConditionsAlgorithmsConfig
import (
22 SCT_DetectorElementStatusAlgCfg)
24 kwargs.setdefault(
"SCTDetElStatus",
"SCTDetectorElementStatus")
26 if flags.Detector.EnablePixel:
27 if 'PixelLayerTool' not in kwargs:
28 from InDetConfig.InDetTestPixelLayerConfig
import (
29 InDetTestPixelLayerToolCfg)
30 kwargs.setdefault(
"PixelLayerTool", result.popToolsAndMerge(
33 kwargs.setdefault(
"PixelLayerTool",
"")
35 kwargs.setdefault(
"UsePixel", flags.Detector.EnablePixel)
36 kwargs.setdefault(
"UseSCT", flags.Detector.EnableSCT)
37 kwargs.setdefault(
"CheckBadSCT", flags.InDet.checkDeadElementsOnTrack)
39 result.setPrivateTools(
40 CompFactory.InDet.InDetBoundaryCheckTool(name, **kwargs))
45 flags, name="CombinedMuonIDBoundaryCheckTool", **kwargs):
48 if flags.Detector.EnablePixel:
49 if 'PixelLayerTool' not in kwargs:
50 from InDetConfig.InDetTestPixelLayerConfig
import (
51 CombinedMuonPixelLayerToolCfg)
52 kwargs.setdefault(
"PixelLayerTool", result.popToolsAndMerge(
55 kwargs.setdefault(
"PixelLayerTool",
"")
57 result.setPrivateTools(result.popToolsAndMerge(
63 flags, name="InDetTrigBoundaryCheckTool", **kwargs):
65 from SCT_ConditionsTools.SCT_ConditionsToolsConfig
import (
66 SCT_ConditionsSummaryToolCfg)
68 kwargs.setdefault(
"SCTDetElStatus",
"")
69 kwargs.setdefault(
"SctSummaryTool", acc.popToolsAndMerge(
71 withFlaggedCondTool=
False,
74 from InDetConfig.InDetTestPixelLayerConfig
import (
75 InDetTrigTestPixelLayerToolCfg)
76 kwargs.setdefault(
"PixelLayerTool", acc.popToolsAndMerge(
79 acc.setPrivateTools(acc.popToolsAndMerge(
85 flags, name="CombinedMuonIDBoundaryCheckTool", **kwargs):
88 if flags.Detector.EnablePixel:
89 if 'PixelLayerTool' not in kwargs:
90 from InDetConfig.InDetTestPixelLayerConfig
import (
91 CombinedMuonTrigPixelLayerToolCfg)
92 kwargs.setdefault(
"PixelLayerTool", result.popToolsAndMerge(
95 kwargs.setdefault(
"PixelLayerTool",
"")
97 result.setPrivateTools(result.popToolsAndMerge(
105 if 'SctSummaryTool' not in kwargs:
106 if flags.Detector.EnableITkStrip:
107 from SCT_ConditionsTools.ITkStripConditionsToolsConfig
import (
108 ITkStripConditionsSummaryToolCfg)
109 kwargs.setdefault(
"SctSummaryTool", result.popToolsAndMerge(
112 kwargs.setdefault(
"SctSummaryTool",
None)
114 if 'PixelLayerTool' not in kwargs:
115 from InDetConfig.InDetTestPixelLayerConfig
import (
116 ITkTestPixelLayerToolCfg)
117 kwargs.setdefault(
"PixelLayerTool", result.popToolsAndMerge(
120 kwargs.setdefault(
"UsePixel", flags.Detector.EnableITkPixel)
121 kwargs.setdefault(
"UseSCT", flags.Detector.EnableITkStrip)
122 kwargs.setdefault(
"CheckBadSCT",
False)
124 result.setPrivateTools(
125 CompFactory.InDet.InDetBoundaryCheckTool(name, **kwargs))