3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaConfiguration.Enums
import BeamType
11 if "TrackFitter" not in kwargs:
12 if flags.Tracking.ActiveConfig.extension !=
"LowPt":
13 from TrkConfig.CommonTrackFitterConfig
import (
14 InDetTrackFitterHoleSearchCfg)
15 InDetExtensionFitter = acc.popToolsAndMerge(
18 name=(
'InDetTrackFitter_TRTExtension' +
19 flags.Tracking.ActiveConfig.extension)))
21 from TrkConfig.CommonTrackFitterConfig
import (
22 InDetTrackFitterLowPtHoleSearchCfg)
23 InDetExtensionFitter = acc.popToolsAndMerge(
26 name=(
'InDetTrackFitter_TRTExtension' +
27 flags.Tracking.ActiveConfig.extension)))
29 acc.addPublicTool(InDetExtensionFitter)
30 kwargs.setdefault(
"TrackFitter", InDetExtensionFitter)
32 if "ScoringTool" not in kwargs:
33 if flags.Beam.Type
is BeamType.Cosmics:
34 from InDetConfig.InDetTrackScoringToolsConfig
import (
35 InDetCosmicExtenScoringToolCfg)
36 InDetExtenScoringTool = acc.popToolsAndMerge(
39 from InDetConfig.InDetTrackScoringToolsConfig
import (
40 InDetExtenScoringToolCfg)
41 InDetExtenScoringTool = acc.popToolsAndMerge(
44 acc.addPublicTool(InDetExtenScoringTool)
45 kwargs.setdefault(
"ScoringTool", InDetExtenScoringTool)
47 if "TrackSummaryTool" not in kwargs:
48 from TrkConfig.TrkTrackSummaryToolConfig
import InDetTrackSummaryToolCfg
49 kwargs.setdefault(
"TrackSummaryTool", acc.popToolsAndMerge(
52 kwargs.setdefault(
"suppressHoleSearch",
False)
53 kwargs.setdefault(
"tryBremFit", flags.Tracking.ActiveConfig.doBremRecoverySi)
54 kwargs.setdefault(
"caloSeededBrem", flags.Tracking.doCaloSeededBrem)
55 kwargs.setdefault(
"pTminBrem", flags.Tracking.ActiveConfig.minPTBrem)
56 kwargs.setdefault(
"RefitPrds",
False)
57 kwargs.setdefault(
"matEffects",
58 flags.Tracking.materialInteractionsType
59 if flags.Tracking.materialInteractions
else 0)
60 kwargs.setdefault(
"Cosmics", flags.Beam.Type
is BeamType.Cosmics)
62 acc.addEventAlgo(CompFactory.InDet.InDetExtensionProcessor(
63 name + flags.Tracking.ActiveConfig.extension, **kwargs))
70 if "TrackFitter" not in kwargs:
71 from TrkConfig.TrkGlobalChi2FitterConfig
import (
72 InDetTrigGlobalChi2FitterCfg)
73 InDetExtensionFitter = acc.popToolsAndMerge(
75 acc.addPublicTool(InDetExtensionFitter)
76 kwargs.setdefault(
"TrackFitter", InDetExtensionFitter)
78 if "ScoringTool" not in kwargs:
79 from InDetConfig.InDetTrackScoringToolsConfig
import (
80 InDetTrigAmbiScoringToolCfg)
81 InDetExtenScoringTool = acc.popToolsAndMerge(
83 name=
"TrigAmbiguityScoringTool"+flags.Tracking.ActiveConfig.input_name))
84 acc.addPublicTool(InDetExtenScoringTool)
85 kwargs.setdefault(
"ScoringTool", InDetExtenScoringTool)
87 if "TrackSummaryTool" not in kwargs:
88 from TrkConfig.TrkTrackSummaryToolConfig
import (
89 InDetTrigTrackSummaryToolCfg)
90 kwargs.setdefault(
"TrackSummaryTool", acc.popToolsAndMerge(
93 kwargs.setdefault(
"suppressHoleSearch",
False)
94 kwargs.setdefault(
"RefitPrds",
95 not flags.Tracking.ActiveConfig.refitROT)
97 kwargs.setdefault(
"TrackName",
98 flags.Tracking.ActiveConfig.trkTracks_IDTrig+
"_Amb")
99 kwargs.setdefault(
"ExtensionMap",
"ExtendedTrackMap")
100 kwargs.setdefault(
"NewTrackName",
101 flags.Tracking.ActiveConfig.trkTracks_IDTrig)
103 acc.addEventAlgo(CompFactory.InDet.InDetExtensionProcessor(
104 name + flags.Tracking.ActiveConfig.input_name, **kwargs))