ATLAS Offline Software
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", str vxCandidatesOutputName="PrimaryVertices", **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  from xAODTrackingCnv.xAODTrackingCnvConfig import (
28  BeamLineTrackParticleCnvAlgCfg)
29  from InDetConfig.TrackRecoConfig import (
30  ClusterSplitProbabilityContainerName)
32  flags,
33  ClusterSplitProbabilityName = \
35  AssociationMapName = "PRDtoTrackMapMerge_CombinedInDetTracks",
36  xAODTrackParticlesFromTracksContainerName = \
37  "InDetTrackParticlesTemporary"))
38  kwargs["TracksName"]="InDetTrackParticlesTemporary"
39 
40  acc.addEventAlgo(CompFactory.InDet.InDetPriVxFinder(name, **kwargs))
41  return acc
42 

◆ InDetTrigPriVxFinderCfg()

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

Definition at line 43 of file InDetPriVxFinderConfig.py.

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

◆ primaryVertexFindingCfg()

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

Definition at line 78 of file InDetPriVxFinderConfig.py.

78 def primaryVertexFindingCfg(flags,
79  name: str = "InDetPriVxFinder",
80  vxCandidatesOutputName: str = "PrimaryVertices",
81  **kwargs) -> ComponentAccumulator:
82 
83  acc = InDetPriVxFinderCfg(flags,
84  name,
85  VxCandidatesOutputName=vxCandidatesOutputName,
86  **kwargs)
87 
88  if flags.Tracking.perigeeExpression == "Vertex":
89  from xAODTrackingCnv.xAODTrackingCnvConfig import TrackParticleCnvAlgCfg
90  from InDetConfig.TrackRecoConfig import (
91  ClusterSplitProbabilityContainerName)
92  acc.merge(TrackParticleCnvAlgCfg(
93  flags,
94  ClusterSplitProbabilityName=ClusterSplitProbabilityContainerName(
95  flags),
96  AssociationMapName="PRDtoTrackMapMerge_CombinedInDetTracks"))
97 
98  from OutputStreamAthenaPool.OutputStreamConfig import addToESD, addToAOD
99 
100  excludedVtxAuxData = "-vxTrackAtVertex.-MvfFitInfo.-isInitialized.-VTAV.-TruthEventMatchingInfos.-TruthEventRawMatchingInfos.-VertexMatchType"
101  verticesContainer = [
102  f"xAOD::VertexContainer#{vxCandidatesOutputName}",
103  f"xAOD::VertexAuxContainer#{vxCandidatesOutputName}Aux." + excludedVtxAuxData,
104  ]
105 
106  acc.merge(addToAOD(flags, verticesContainer))
107  acc.merge(addToESD(flags, verticesContainer))
108 
109  return acc
110 

Variable Documentation

◆ acc

python.InDetPriVxFinderConfig.acc = MainServicesCfg(flags)

Definition at line 131 of file InDetPriVxFinderConfig.py.

◆ Files

python.InDetPriVxFinderConfig.Files

Definition at line 121 of file InDetPriVxFinderConfig.py.

◆ flags

python.InDetPriVxFinderConfig.flags = initConfigFlags()

Definition at line 114 of file InDetPriVxFinderConfig.py.

◆ mlog

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

Definition at line 134 of file InDetPriVxFinderConfig.py.

◆ nestLevel

python.InDetPriVxFinderConfig.nestLevel

Definition at line 140 of file InDetPriVxFinderConfig.py.

◆ printDefaults

python.InDetPriVxFinderConfig.printDefaults

Definition at line 141 of file InDetPriVxFinderConfig.py.

◆ setup

python.InDetPriVxFinderConfig.setup

Definition at line 124 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:135
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:43
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:54
python.InDetPriVxFinderToolConfig.VertexFinderToolCfg
def VertexFinderToolCfg(flags, **kwargs)
Definition: InDetPriVxFinderToolConfig.py:120
python.OutputStreamConfig.addToESD
def addToESD(flags, itemOrList, **kwargs)
Definition: OutputStreamConfig.py:127
xAODTrackingCnvConfig.BeamLineTrackParticleCnvAlgCfg
def BeamLineTrackParticleCnvAlgCfg(flags, name="BeamLineTrackParticleCnvAlg", ClusterSplitProbabilityName="", AssociationMapName="", **kwargs)
Definition: xAODTrackingCnvConfig.py:210
python.InDetPriVxFinderConfig.primaryVertexFindingCfg
ComponentAccumulator primaryVertexFindingCfg(flags, str name="InDetPriVxFinder", str vxCandidatesOutputName="PrimaryVertices", **kwargs)
Definition: InDetPriVxFinderConfig.py:78
python.OutputStreamConfig.addToAOD
def addToAOD(flags, itemOrList, **kwargs)
Definition: OutputStreamConfig.py:142
xAODTrackingCnvConfig.TrackParticleCnvAlgCfg
def TrackParticleCnvAlgCfg(flags, name="TrackParticleCnvAlg", ClusterSplitProbabilityName="", AssociationMapName="", **kwargs)
TrackParticleCnvAlg.
Definition: xAODTrackingCnvConfig.py:97