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))