9 **kwargs) -> ComponentAccumulator:
10 from BeamSpotConditions.BeamSpotConditionsConfig import BeamSpotCondAlgCfg
11 acc = BeamSpotCondAlgCfg(flags)
12
13 if "TrackSelector" not in kwargs:
14 from InDetTrackSelectionTool.InDetTrackSelectionToolConfig import (
15 VtxInDetTrackSelectionCfg)
16 kwargs.setdefault("TrackSelector", acc.popToolsAndMerge(
17 VtxInDetTrackSelectionCfg(flags)))
18
19 from ActsAlignmentAlgs.AlignmentAlgsConfig import ActsGeometryContextAlgCfg
20 from ActsConfig.ActsGeometryConfig import ActsTrackingGeometrySvcCfg
21 acc.merge(ActsGeometryContextAlgCfg(flags))
22 acc.merge(ActsTrackingGeometrySvcCfg(flags))
23 kwargs.setdefault("useBeamConstraint",
24 flags.Tracking.PriVertex.useBeamConstraint)
25 kwargs.setdefault("tracksMaxZinterval",
26 flags.Tracking.PriVertex.maxZinterval)
27 kwargs.setdefault("doFullSplitting",
28 not flags.Tracking.PriVertex.useBeamConstraint)
29
30 if flags.GeoModel.Run >= LHCPeriod.Run4:
31 kwargs.setdefault("minWeight", 0.02)
32 kwargs.setdefault("maxIterations", 200)
33
34 acc.setPrivateTools(
35 CompFactory.ActsTrk.AdaptiveMultiPriVtxFinderTool(name, **kwargs))
36 return acc
37