3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaConfiguration.Enums
import LHCPeriod
8 name="ActsAdaptiveMultiPriVtxFinderTool",
9 **kwargs) -> ComponentAccumulator:
12 if "TrackSelector" not in kwargs:
13 from InDetConfig.InDetTrackSelectionToolConfig
import (
14 VtxInDetTrackSelectionCfg)
15 kwargs.setdefault(
"TrackSelector", acc.popToolsAndMerge(
18 if "TrackingGeometryTool" not in kwargs:
19 from ActsConfig.ActsGeometryConfig
import ActsTrackingGeometryToolCfg
20 kwargs.setdefault(
"TrackingGeometryTool", acc.popToolsAndMerge(
23 if "ExtrapolationTool" not in kwargs:
24 from ActsConfig.ActsGeometryConfig
import ActsExtrapolationToolCfg
25 kwargs.setdefault(
"ExtrapolationTool", acc.popToolsAndMerge(
28 kwargs.setdefault(
"useBeamConstraint",
29 flags.Tracking.PriVertex.useBeamConstraint)
30 kwargs.setdefault(
"tracksMaxZinterval",
31 flags.Tracking.PriVertex.maxZinterval)
32 kwargs.setdefault(
"doFullSplitting",
33 not flags.Tracking.PriVertex.useBeamConstraint)
35 if flags.GeoModel.Run >= LHCPeriod.Run4:
36 kwargs.setdefault(
"minWeight", 0.02)
37 kwargs.setdefault(
"maxIterations", 200)
40 CompFactory.ActsTrk.AdaptiveMultiPriVtxFinderTool(name, **kwargs))
44 name="ActsAdaptiveMultiPriVtxFinderTool",
45 **kwargs) -> ComponentAccumulator:
48 if "TrackSelector" not in kwargs:
49 from InDetConfig.InDetTrackSelectionToolConfig
import (
50 TrigVtxInDetTrackSelectionCfg)
51 kwargs.setdefault(
"TrackSelector", acc.popToolsAndMerge(
54 kwargs.setdefault(
"useBeamConstraint",
True)
55 kwargs.setdefault(
"useSeedConstraint",
False)
56 kwargs.setdefault(
"tracksMaxZinterval", flags.Tracking.ActiveConfig.TracksMaxZinterval)
57 kwargs.setdefault(
"doFullSplitting",
False)
58 kwargs.setdefault(
"addSingleTrackVertices", flags.Tracking.ActiveConfig.addSingleTrackVertices)
60 acc.setPrivateTools(acc.popToolsAndMerge(
65 name="ActsIterativePriVtxFinderTool",
66 **kwargs) -> ComponentAccumulator:
69 if "TrackSelector" not in kwargs:
70 from InDetConfig.InDetTrackSelectionToolConfig
import (
71 VtxInDetTrackSelectionCfg)
72 kwargs.setdefault(
"TrackSelector", acc.popToolsAndMerge(
75 if "TrackingGeometryTool" not in kwargs:
76 from ActsConfig.ActsGeometryConfig
import ActsTrackingGeometryToolCfg
77 kwargs.setdefault(
"TrackingGeometryTool", acc.popToolsAndMerge(
80 if "ExtrapolationTool" not in kwargs:
81 from ActsConfig.ActsGeometryConfig
import ActsExtrapolationToolCfg
82 kwargs.setdefault(
"ExtrapolationTool", acc.popToolsAndMerge(
85 kwargs.setdefault(
"useBeamConstraint",
86 flags.Tracking.PriVertex.useBeamConstraint)
87 kwargs.setdefault(
"significanceCutSeeding", 12)
88 kwargs.setdefault(
"maximumChi2cutForSeeding", 49)
89 kwargs.setdefault(
"maxVertices", flags.Tracking.PriVertex.maxVertices)
90 kwargs.setdefault(
"doMaxTracksCut", flags.Tracking.PriVertex.doMaxTracksCut)
91 kwargs.setdefault(
"maxTracks", flags.Tracking.PriVertex.maxTracks)
94 CompFactory.ActsTrk.IterativePriVtxFinderTool(name, **kwargs))