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     kwargs.setdefault(
"SctSummaryTool", 
None) 
 
  106     if "SCTDetElStatus" not in kwargs :
 
  107         if flags.Detector.EnableITkStrip :
 
  108             if not flags.Trigger.doHLT :
 
  109                 from SCT_ConditionsAlgorithms.ITkStripConditionsAlgorithmsConfig 
import  (
 
  110                     ITkStripDetectorElementStatusAlgCfg)
 
  112             kwargs.setdefault(
"SCTDetElStatus", 
"ITkStripDetectorElementStatus")
 
  114             kwargs.setdefault(
"SCTDetElStatus", 
"")
 
  116     if 'PixelLayerTool' not in kwargs:
 
  117         from InDetConfig.InDetTestPixelLayerConfig 
import (
 
  118             ITkTestPixelLayerToolCfg)
 
  119         kwargs.setdefault(
"PixelLayerTool", result.popToolsAndMerge(
 
  122     kwargs.setdefault(
"UsePixel", flags.Detector.EnableITkPixel)
 
  123     kwargs.setdefault(
"UseSCT", flags.Detector.EnableITkStrip)
 
  124     kwargs.setdefault(
"CheckBadSCT", 
False)
 
  126     result.setPrivateTools(
 
  127         CompFactory.InDet.InDetBoundaryCheckTool(name, **kwargs))