7def InDetTrackSummaryHelperToolCfg(flags, name='InDetSummaryHelper', **kwargs):
8 if flags.Detector.GeometryITk:
9 name = name.replace("InDet", "ITk")
10 return ITkTrackSummaryHelperToolCfg(flags, name, **kwargs)
11
12 result = ComponentAccumulator()
13
14 if "HoleSearch" not in kwargs:
15 from InDetConfig.InDetTrackHoleSearchConfig import (
16 InDetTrackHoleSearchToolCfg)
17 kwargs.setdefault("HoleSearch", result.popToolsAndMerge(
18 InDetTrackHoleSearchToolCfg(flags)))
19
20 if not flags.Detector.EnableTRT:
21 kwargs.setdefault("TRTStrawSummarySvc", "")
22 else:
23 from TRT_ConditionsServices.TRT_ConditionsServicesConfig import TRT_StrawStatusSummaryToolCfg
24 kwargs.setdefault("TRTStrawSummarySvc", result.popToolsAndMerge(TRT_StrawStatusSummaryToolCfg(flags)))
25
26 kwargs.setdefault("usePixel", flags.Detector.EnablePixel)
27 kwargs.setdefault("useSCT", flags.Detector.EnableSCT)
28 kwargs.setdefault("useTRT", flags.Detector.EnableTRT)
29
30 result.setPrivateTools(
31 CompFactory.InDet.InDetTrackSummaryHelperTool(name, **kwargs))
32 return result
33
34