6 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
7 from AthenaConfiguration.ComponentFactory
import CompFactory
15 if "TrackFitter" not in kwargs:
16 from TrkConfig.CommonTrackFitterConfig
import InDetTrackFitterCfg
17 kwargs.setdefault(
"TrackFitter", cfg.addPublicTool(cfg.popToolsAndMerge(
20 kwargs.setdefault(
"MinPt", 0.)
21 from AthenaCommon.Utils.unixtools
import find_datafile
22 kwargs.setdefault(
"MomentumConstraintFileName",
find_datafile(
"InDetAlign/nullmap.root"))
23 kwargs.setdefault(
"MomentumConstraintHistName",
"LambdaCorrectionVsEtaPhi")
24 kwargs.setdefault(
"ScalePMapToGeV",
True)
25 kwargs.setdefault(
"ReduceConstraintUncertainty", 100.)
26 kwargs.setdefault(
"z0ConstraintFileName",
"")
27 kwargs.setdefault(
"z0ConstraintHistName",
"z0CorrectionVsEtaPhi")
28 kwargs.setdefault(
"d0ConstraintFileName",
"")
29 kwargs.setdefault(
"d0ConstraintHistName",
"d0CorrectionVsEtaPhi")
30 kwargs.setdefault(
"UseConstraintError",
False)
31 kwargs.setdefault(
"UseConstrainedTrkOnly",
True)
33 cfg.setPrivateTools(CompFactory.Trk.ConstrainedTrackProvider(name, **kwargs))
40 if "AlignModuleTool" not in kwargs:
41 from InDetAlignConfig.IDAlignToolsConfig
import InDetAlignModuleToolCfg
42 kwargs.setdefault(
"AlignModuleTool", cfg.addPublicTool(cfg.popToolsAndMerge(
45 kwargs.setdefault(
"UseIntrinsicPixelError",
True)
46 kwargs.setdefault(
"UseIntrinsicSCTError",
True)
47 kwargs.setdefault(
"UseIntrinsicTRTError",
True)
49 cfg.setPrivateTools(CompFactory.Trk.AnalyticalDerivCalcTool(name, **kwargs))
56 if "DerivCalcTool" not in kwargs:
57 kwargs.setdefault(
"DerivCalcTool", cfg.popToolsAndMerge(
60 cfg.setPrivateTools(CompFactory.Trk.AlignTrackDresser(name, **kwargs))
67 if "AlignModuleTool" not in kwargs:
68 from InDetAlignConfig.IDAlignToolsConfig
import InDetAlignModuleToolCfg
69 kwargs.setdefault(
"AlignModuleTool", cfg.addPublicTool(cfg.popToolsAndMerge(
72 if "TrackParticleCreatorTool" not in kwargs:
73 from TrkConfig.TrkParticleCreatorConfig
import TrackParticleCreatorToolCfg
74 kwargs.setdefault(
"TrackParticleCreatorTool", cfg.popToolsAndMerge(
77 cfg.setPrivateTools(CompFactory.InDet.SimpleIDNtupleTool(name, **kwargs))
84 if "GeometryManagerTool" not in kwargs:
85 from InDetAlignConfig.IDAlignToolsConfig
import GeometryManagerToolCfg
86 kwargs.setdefault(
"GeometryManagerTool", cfg.addPublicTool(cfg.popToolsAndMerge(
89 if "AlignTool" not in kwargs:
90 from InDetAlignConfig.IDAlignToolsConfig
import AlignDBToolCfg
91 kwargs.setdefault(
"AlignTool", cfg.popToolsAndMerge(
AlignDBToolCfg(flags)))
93 kwargs.setdefault(
"TrackCollectionProvider", cfg.popToolsAndMerge(
96 if "AlignTrackCreator" not in kwargs:
97 from InDetAlignConfig.IDAlignToolsConfig
import AlignTrackCreatorCfg
98 kwargs.setdefault(
"AlignTrackCreator", cfg.popToolsAndMerge(
103 if "AlignTrackPreProcessor" not in kwargs:
104 from InDetAlignConfig.IDAlignToolsConfig
import BeamspotVertexPreProcessorCfg
105 kwargs.setdefault(
"AlignTrackPreProcessor", cfg.popToolsAndMerge(
108 kwargs.setdefault(
"WriteNtuple", flags.InDet.Align.writeAlignNtuple)
109 if kwargs[
"WriteNtuple"]:
111 kwargs.setdefault(
"FileName", flags.InDet.Align.FileName)
113 cfg.addEventAlgo(CompFactory.Trk.AlignAlg(name, **kwargs))
119 cfg.addEventAlgo(CompFactory.Trk.AlignTrackCollSplitter(name, **kwargs))
127 if flags.InDet.Align.doMonitoring:
128 from InDetAlignmentMonitoringRun3.InDetAlignmentMonitoringRun3Config
import (
129 InDetAlignmentMonitoringRun3Config)