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 'PixelSummaryTool' not in kwargs:
15 from PixelConditionsTools.PixelConditionsSummaryConfig
import (
16 PixelConditionsSummaryCfg)
17 kwargs.setdefault(
"PixelSummaryTool", result.popToolsAndMerge(
20 if "PixelDetElStatus" not in kwargs
and not flags.Common.isOnline:
21 from PixelReadoutGeometry.PixelReadoutGeometryConfig
import (
22 PixelReadoutManagerCfg)
24 from PixelConditionsAlgorithms.PixelConditionsConfig
import (
25 PixelDetectorElementStatusAlgCfg)
27 kwargs.setdefault(
"PixelDetElStatus",
"PixelDetectorElementStatus")
29 if 'Extrapolator' not in kwargs:
30 from TrkConfig.AtlasExtrapolatorConfig
import InDetExtrapolatorCfg
31 kwargs.setdefault(
"Extrapolator", result.popToolsAndMerge(
34 kwargs.setdefault(
"CheckActiveAreas", flags.InDet.checkDeadElementsOnTrack)
35 kwargs.setdefault(
"CheckDeadRegions", flags.InDet.checkDeadElementsOnTrack)
36 kwargs.setdefault(
"CheckDisabledFEs", flags.InDet.checkDeadElementsOnTrack)
38 result.setPrivateTools(
39 CompFactory.InDet.InDetTestPixelLayerTool(name, **kwargs))
44 flags, name="InDetTestPixelLayerToolInner", **kwargs):
45 if flags.Detector.GeometryITk:
46 name = name.replace(
"InDet",
"ITk")
49 kwargs.setdefault(
"CheckActiveAreas",
False)
50 kwargs.setdefault(
"CheckDeadRegions",
False)
51 kwargs.setdefault(
"CheckDisabledFEs",
False)
53 kwargs.setdefault(
"OuterRadius", 100.)
58 flags, name="CombinedMuonPixelLayerToolDefault", **kwargs):
61 if 'Extrapolator' not in kwargs:
62 from TrkConfig.AtlasExtrapolatorConfig
import AtlasExtrapolatorCfg
63 kwargs.setdefault(
"Extrapolator", result.popToolsAndMerge(
66 result.setPrivateTools(result.popToolsAndMerge(
72 flags, name="InDetTrigTestPixelLayerTool", **kwargs):
73 kwargs.setdefault(
"CheckActiveAreas",
True)
74 kwargs.setdefault(
"CheckDeadRegions",
True)
75 kwargs.setdefault(
"PixelDetElStatus",
"")
80 flags, name="InDetTrigTestPixelLayerToolInner", **kwargs):
81 kwargs.setdefault(
"CheckActiveAreas",
True)
82 kwargs.setdefault(
"PixelDetElStatus",
"")
87 flags, name="CombinedMuonPixelLayerToolDefault", **kwargs):
90 if 'Extrapolator' not in kwargs:
91 from TrkConfig.AtlasExtrapolatorConfig
import AtlasExtrapolatorCfg
92 kwargs.setdefault(
"Extrapolator", result.popToolsAndMerge(
95 result.setPrivateTools(result.popToolsAndMerge(
102 if 'PixelSummaryTool' not in kwargs:
103 from PixelConditionsTools.ITkPixelConditionsSummaryConfig
import (
104 ITkPixelConditionsSummaryCfg)
105 kwargs.setdefault(
"PixelSummaryTool", result.popToolsAndMerge(
108 if 'Extrapolator' not in kwargs:
109 from TrkConfig.AtlasExtrapolatorConfig
import AtlasExtrapolatorCfg
110 kwargs.setdefault(
"Extrapolator", result.popToolsAndMerge(
113 kwargs.setdefault(
"CheckActiveAreas", flags.ITk.checkDeadPixelsOnTrack)
114 kwargs.setdefault(
"CheckDeadRegions", flags.ITk.checkDeadPixelsOnTrack)
115 kwargs.setdefault(
"CheckDisabledFEs", flags.ITk.checkDeadPixelsOnTrack)
118 kwargs.setdefault(
"OuterRadius", 350.)
120 result.setPrivateTools(
121 CompFactory.InDet.InDetTestPixelLayerTool(name, **kwargs))
126 flags, name="ITkTestPixelLayerInnerTool", **kwargs):
127 kwargs.setdefault(
"CheckActiveAreas",
False)
128 kwargs.setdefault(
"CheckDeadRegions",
False)
129 kwargs.setdefault(
"CheckDisabledFEs",
False)
131 kwargs.setdefault(
"OuterRadius", 130.)