Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Functions | Variables
python.InDetPriVxFinderConfig Namespace Reference

Functions

ComponentAccumulator InDetPriVxFinderCfg (flags, str name="InDetPriVxFinder", **kwargs)
 
ComponentAccumulator InDetTrigPriVxFinderCfg (flags, str inputTracks, str outputVtx, str name="InDetTrigPriVxFinder", **kwargs)
 
ComponentAccumulator primaryVertexFindingCfg (flags, str name="InDetPriVxFinder", vxCandidatesOutputName=None, **kwargs)
 

Variables

 flags = initConfigFlags()
 
 Files
 
 setup
 
 acc = MainServicesCfg(flags)
 
 mlog = logging.getLogger("primaryVertexFindingConfigTest")
 
 nestLevel
 
 printDefaults
 

Function Documentation

◆ InDetPriVxFinderCfg()

ComponentAccumulator python.InDetPriVxFinderConfig.InDetPriVxFinderCfg (   flags,
str   name = "InDetPriVxFinder",
**  kwargs 
)

Definition at line 7 of file InDetPriVxFinderConfig.py.

7 def InDetPriVxFinderCfg(flags,
8  name: str = "InDetPriVxFinder",
9  **kwargs) -> ComponentAccumulator:
10  acc = ComponentAccumulator()
11 
12  if "VertexCollectionSortingTool" not in kwargs:
13  from TrkConfig.TrkVertexToolsConfig import (
14  VertexCollectionSortingToolCfg)
15  kwargs.setdefault("VertexCollectionSortingTool", acc.popToolsAndMerge(
17 
18  if "VertexFinderTool" not in kwargs:
19  from InDetConfig.InDetPriVxFinderToolConfig import (
20  VertexFinderToolCfg)
21  kwargs.setdefault("VertexFinderTool", acc.popToolsAndMerge(
22  VertexFinderToolCfg(flags)))
23 
24  kwargs.setdefault("doVertexSorting", True)
25 
26  if flags.Tracking.perigeeExpression == "Vertex":
27  associationMapName = "PRDtoTrackMapMerge_CombinedInDetTracks"
28  if flags.Detector.GeometryITk:
29  associationMapName = "PRDtoTrackMapMerge_CombinedITkTracks"
30 
31  from xAODTrackingCnv.xAODTrackingCnvConfig import (
32  BeamLineTrackParticleCnvAlgCfg)
33  from InDetConfig.TrackRecoConfig import (
34  ClusterSplitProbabilityContainerName)
36  flags,
37  ClusterSplitProbabilityName = \
39  AssociationMapName = associationMapName,
40  xAODTrackParticlesFromTracksContainerName = \
41  "InDetTrackParticlesTemporary"))
42  kwargs["TracksName"]="InDetTrackParticlesTemporary"
43 
44  acc.addEventAlgo(CompFactory.InDet.InDetPriVxFinder(name, **kwargs))
45  return acc
46 

◆ InDetTrigPriVxFinderCfg()

ComponentAccumulator python.InDetPriVxFinderConfig.InDetTrigPriVxFinderCfg (   flags,
str  inputTracks,
str  outputVtx,
str   name = "InDetTrigPriVxFinder",
**  kwargs 
)

Definition at line 47 of file InDetPriVxFinderConfig.py.

47 def InDetTrigPriVxFinderCfg(flags,
48  inputTracks: str,
49  outputVtx: str,
50  name: str = "InDetTrigPriVxFinder",
51  **kwargs) -> ComponentAccumulator:
52 
53  acc = ComponentAccumulator()
54 
55  kwargs["TracksName"] = inputTracks
56  kwargs["VxCandidatesOutputName"] = outputVtx
57 
58  if "VertexFinderTool" not in kwargs:
59  from InDetConfig.InDetPriVxFinderToolConfig import (
60  TrigVertexFinderToolCfg)
61  kwargs.setdefault("VertexFinderTool", acc.popToolsAndMerge(
63 
64  if "VertexCollectionSortingTool" not in kwargs:
65  from TrkConfig.TrkVertexToolsConfig import (
66  SumPt2VertexCollectionSortingToolCfg)
67  kwargs.setdefault("VertexCollectionSortingTool", acc.popToolsAndMerge(
69 
70  if "PriVxMonTool" not in kwargs:
71  from InDetPriVxFinder.InDetPriVxFinderMonitoring import (
72  InDetPriVxFinderMonitoringTool)
73  kwargs.setdefault("PriVxMonTool", InDetPriVxFinderMonitoringTool(flags))
74 
75  kwargs.setdefault("doVertexSorting", True)
76 
77  acc.addEventAlgo(CompFactory.InDet.InDetPriVxFinder(name+flags.Tracking.ActiveConfig.input_name,
78  **kwargs))
79  return acc
80 
81 

◆ primaryVertexFindingCfg()

ComponentAccumulator python.InDetPriVxFinderConfig.primaryVertexFindingCfg (   flags,
str   name = "InDetPriVxFinder",
  vxCandidatesOutputName = None,
**  kwargs 
)

Definition at line 82 of file InDetPriVxFinderConfig.py.

82 def primaryVertexFindingCfg(flags,
83  name: str = "InDetPriVxFinder",
84  vxCandidatesOutputName=None,
85  **kwargs) -> ComponentAccumulator:
86  if not vxCandidatesOutputName:
87  vxCandidatesOutputName = "PrimaryVertices"
88  from AthenaConfiguration.Enums import ProductionStep
89  if flags.Common.ProductionStep in [ProductionStep.MinbiasPreprocessing]:
90  vxCandidatesOutputName = f"{flags.Overlay.BkgPrefix}{vxCandidatesOutputName}"
91 
92  acc = InDetPriVxFinderCfg(flags,
93  name,
94  VxCandidatesOutputName=vxCandidatesOutputName,
95  **kwargs)
96 
97  if flags.Tracking.perigeeExpression == "Vertex":
98  associationMapName = "PRDtoTrackMapMerge_CombinedInDetTracks"
99  if flags.Detector.GeometryITk:
100  associationMapName = "PRDtoTrackMapMerge_CombinedITkTracks"
101 
102  from xAODTrackingCnv.xAODTrackingCnvConfig import TrackParticleCnvAlgCfg
103  from InDetConfig.TrackRecoConfig import (
104  ClusterSplitProbabilityContainerName)
105  acc.merge(TrackParticleCnvAlgCfg(
106  flags,
107  ClusterSplitProbabilityName=ClusterSplitProbabilityContainerName(
108  flags),
109  AssociationMapName=associationMapName))
110 
111  from OutputStreamAthenaPool.OutputStreamConfig import addToESD, addToAOD
112 
113  excludedVtxAuxData = "-vxTrackAtVertex.-MvfFitInfo.-isInitialized.-VTAV.-TruthEventMatchingInfos.-TruthEventRawMatchingInfos.-VertexMatchType"
114  verticesContainer = [
115  f"xAOD::VertexContainer#{vxCandidatesOutputName}",
116  f"xAOD::VertexAuxContainer#{vxCandidatesOutputName}Aux." + excludedVtxAuxData,
117  ]
118 
119  acc.merge(addToAOD(flags, verticesContainer))
120  acc.merge(addToESD(flags, verticesContainer))
121 
122  return acc
123 

Variable Documentation

◆ acc

python.InDetPriVxFinderConfig.acc = MainServicesCfg(flags)

Definition at line 146 of file InDetPriVxFinderConfig.py.

◆ Files

python.InDetPriVxFinderConfig.Files

Definition at line 134 of file InDetPriVxFinderConfig.py.

◆ flags

python.InDetPriVxFinderConfig.flags = initConfigFlags()

Definition at line 127 of file InDetPriVxFinderConfig.py.

◆ mlog

python.InDetPriVxFinderConfig.mlog = logging.getLogger("primaryVertexFindingConfigTest")

Definition at line 149 of file InDetPriVxFinderConfig.py.

◆ nestLevel

python.InDetPriVxFinderConfig.nestLevel

Definition at line 155 of file InDetPriVxFinderConfig.py.

◆ printDefaults

python.InDetPriVxFinderConfig.printDefaults

Definition at line 156 of file InDetPriVxFinderConfig.py.

◆ setup

python.InDetPriVxFinderConfig.setup

Definition at line 137 of file InDetPriVxFinderConfig.py.

python.TrkVertexToolsConfig.SumPt2VertexCollectionSortingToolCfg
def SumPt2VertexCollectionSortingToolCfg(flags, name="SumPt2VertexCollectionSortingTool", **kwargs)
Definition: TrkVertexToolsConfig.py:7
python.InDetPriVxFinderToolConfig.TrigVertexFinderToolCfg
def TrigVertexFinderToolCfg(flags, **kwargs)
Definition: InDetPriVxFinderToolConfig.py:139
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.InDetPriVxFinderConfig.InDetPriVxFinderCfg
ComponentAccumulator InDetPriVxFinderCfg(flags, str name="InDetPriVxFinder", **kwargs)
Definition: InDetPriVxFinderConfig.py:7
python.InDetPriVxFinderConfig.InDetTrigPriVxFinderCfg
ComponentAccumulator InDetTrigPriVxFinderCfg(flags, str inputTracks, str outputVtx, str name="InDetTrigPriVxFinder", **kwargs)
Definition: InDetPriVxFinderConfig.py:47
python.InDetPriVxFinderConfig.primaryVertexFindingCfg
ComponentAccumulator primaryVertexFindingCfg(flags, str name="InDetPriVxFinder", vxCandidatesOutputName=None, **kwargs)
Definition: InDetPriVxFinderConfig.py:82
python.TrackRecoConfig.ClusterSplitProbabilityContainerName
def ClusterSplitProbabilityContainerName(flags)
Definition: TrackRecoConfig.py:86
InDetPriVxFinderMonitoring.InDetPriVxFinderMonitoringTool
def InDetPriVxFinderMonitoringTool(flags)
Definition: InDetPriVxFinderMonitoring.py:4
python.TrkVertexToolsConfig.VertexCollectionSortingToolCfg
def VertexCollectionSortingToolCfg(flags, **kwargs)
Definition: TrkVertexToolsConfig.py:67
python.InDetPriVxFinderToolConfig.VertexFinderToolCfg
def VertexFinderToolCfg(flags, **kwargs)
Definition: InDetPriVxFinderToolConfig.py:120
python.OutputStreamConfig.addToESD
def addToESD(flags, itemOrList, **kwargs)
Definition: OutputStreamConfig.py:134
xAODTrackingCnvConfig.BeamLineTrackParticleCnvAlgCfg
def BeamLineTrackParticleCnvAlgCfg(flags, name="BeamLineTrackParticleCnvAlg", ClusterSplitProbabilityName="", AssociationMapName="", **kwargs)
Definition: xAODTrackingCnvConfig.py:214
python.OutputStreamConfig.addToAOD
def addToAOD(flags, itemOrList, **kwargs)
Definition: OutputStreamConfig.py:149
xAODTrackingCnvConfig.TrackParticleCnvAlgCfg
def TrackParticleCnvAlgCfg(flags, name="TrackParticleCnvAlg", ClusterSplitProbabilityName="", AssociationMapName="", **kwargs)
TrackParticleCnvAlg.
Definition: xAODTrackingCnvConfig.py:97