ATLAS Offline Software
ActsPriVxFinderConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 from AthenaConfiguration.Enums import LHCPeriod
6 
8  name="ActsAdaptiveMultiPriVtxFinderTool",
9  **kwargs) -> ComponentAccumulator:
10  acc = ComponentAccumulator()
11 
12  if "TrackSelector" not in kwargs:
13  from InDetConfig.InDetTrackSelectionToolConfig import (
14  VtxInDetTrackSelectionCfg)
15  kwargs.setdefault("TrackSelector", acc.popToolsAndMerge(
17 
18  if "TrackingGeometryTool" not in kwargs:
19  from ActsConfig.ActsGeometryConfig import ActsTrackingGeometryToolCfg
20  kwargs.setdefault("TrackingGeometryTool", acc.popToolsAndMerge(
21  ActsTrackingGeometryToolCfg(flags))) # PrivateToolHandle
22 
23  if "ExtrapolationTool" not in kwargs:
24  from ActsConfig.ActsGeometryConfig import ActsExtrapolationToolCfg
25  kwargs.setdefault("ExtrapolationTool", acc.popToolsAndMerge(
26  ActsExtrapolationToolCfg(flags))) # PrivateToolHandle
27 
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)
34 
35  if flags.GeoModel.Run >= LHCPeriod.Run4:
36  kwargs.setdefault("minWeight", 0.02)
37  kwargs.setdefault("maxIterations", 200)
38 
39  acc.setPrivateTools(
40  CompFactory.ActsTrk.AdaptiveMultiPriVtxFinderTool(name, **kwargs))
41  return acc
42 
44  name="ActsAdaptiveMultiPriVtxFinderTool",
45  **kwargs) -> ComponentAccumulator:
46  acc = ComponentAccumulator()
47 
48  if "TrackSelector" not in kwargs:
49  from InDetConfig.InDetTrackSelectionToolConfig import (
50  TrigVtxInDetTrackSelectionCfg)
51  kwargs.setdefault("TrackSelector", acc.popToolsAndMerge(
53 
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)
59 
60  acc.setPrivateTools(acc.popToolsAndMerge(
61  ActsGaussAdaptiveMultiFindingCfg(flags, name+flags.Tracking.ActiveConfig.input_name, **kwargs)))
62  return acc
63 
65  name="ActsIterativePriVtxFinderTool",
66  **kwargs) -> ComponentAccumulator:
67  acc = ComponentAccumulator()
68 
69  if "TrackSelector" not in kwargs:
70  from InDetConfig.InDetTrackSelectionToolConfig import (
71  VtxInDetTrackSelectionCfg)
72  kwargs.setdefault("TrackSelector", acc.popToolsAndMerge(
74 
75  if "TrackingGeometryTool" not in kwargs:
76  from ActsConfig.ActsGeometryConfig import ActsTrackingGeometryToolCfg
77  kwargs.setdefault("TrackingGeometryTool", acc.popToolsAndMerge(
78  ActsTrackingGeometryToolCfg(flags))) # PrivateToolHandle
79 
80  if "ExtrapolationTool" not in kwargs:
81  from ActsConfig.ActsGeometryConfig import ActsExtrapolationToolCfg
82  kwargs.setdefault("ExtrapolationTool", acc.popToolsAndMerge(
83  ActsExtrapolationToolCfg(flags))) # PrivateToolHandle
84 
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)
92 
93  acc.setPrivateTools(
94  CompFactory.ActsTrk.IterativePriVtxFinderTool(name, **kwargs))
95  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
ActsPriVxFinderConfig.TrigActsGaussAdaptiveMultiFindingCfg
ComponentAccumulator TrigActsGaussAdaptiveMultiFindingCfg(flags, name="ActsAdaptiveMultiPriVtxFinderTool", **kwargs)
Definition: ActsPriVxFinderConfig.py:43
python.InDetTrackSelectionToolConfig.TrigVtxInDetTrackSelectionCfg
def TrigVtxInDetTrackSelectionCfg(flags, name="InDetTrigDetailedTrackSelectionTool", **kwargs)
Definition: InDetTrackSelectionToolConfig.py:136
python.InDetTrackSelectionToolConfig.VtxInDetTrackSelectionCfg
def VtxInDetTrackSelectionCfg(flags, name="VertexInDetTrackSelectionTool", **kwargs)
Configs not based on any CutLevel #####.
Definition: InDetTrackSelectionToolConfig.py:102
ActsGeometryConfig.ActsExtrapolationToolCfg
ComponentAccumulator ActsExtrapolationToolCfg(flags, str name="ActsExtrapolationTool", **kwargs)
Definition: ActsGeometryConfig.py:109
ActsGeometryConfig.ActsTrackingGeometryToolCfg
ComponentAccumulator ActsTrackingGeometryToolCfg(flags, str name="ActsTrackingGeometryTool")
Definition: ActsGeometryConfig.py:100
ActsPriVxFinderConfig.ActsGaussAdaptiveMultiFindingCfg
ComponentAccumulator ActsGaussAdaptiveMultiFindingCfg(flags, name="ActsAdaptiveMultiPriVtxFinderTool", **kwargs)
Definition: ActsPriVxFinderConfig.py:7
ActsPriVxFinderConfig.ActsIterativeFindingCfg
ComponentAccumulator ActsIterativeFindingCfg(flags, name="ActsIterativePriVtxFinderTool", **kwargs)
Definition: ActsPriVxFinderConfig.py:64