ATLAS Offline Software
InDetIncSecVxFinderToolConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 # Define method to construct configures Sec Vtx Finder alg
3 # attempted by N Ribaric (@LancasterUNI) neza.ribaric@cern.ch
4 
5 
6 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
7 from AthenaConfiguration.ComponentFactory import CompFactory
8 import AthenaCommon.Constants as Lvl
9 
10 
11 def InDetIterativeSecVtxFinderToolCfg(flags, name="InDetIterativeSecVtxFinderTool", **kwargs):
12 
13 
14  acc = ComponentAccumulator()
15 
16  from TrkConfig.TrkVertexSeedFinderToolsConfig import IndexedCrossDistancesSeedFinderCfg
17  kwargs.setdefault("SeedFinder",acc.popToolsAndMerge(IndexedCrossDistancesSeedFinderCfg(flags)))
18 
19  from TrkConfig.TrkVertexFittersConfig import AdaptiveVxFitterToolIncSecVtxCfg
20  kwargs.setdefault("VertexFitterTool",acc.popToolsAndMerge(AdaptiveVxFitterToolIncSecVtxCfg(flags)))
21 
22  from InDetConfig.InDetTrackSelectionToolConfig import InDetTrackSelectionTool_AMSVF_Cfg
23  kwargs.setdefault("BaseTrackSelector",acc.popToolsAndMerge(InDetTrackSelectionTool_AMSVF_Cfg(flags)))
24 
25  from InDetConfig.InDetSecVtxTrackSelectionToolConfig import InDetSecVtxTrackSelectionToolCfg
26  kwargs.setdefault("SecVtxTrackSelector",acc.popToolsAndMerge(InDetSecVtxTrackSelectionToolCfg(flags)))
27 
28  from TrkConfig.TrkVertexFitterUtilsConfig import AtlasImpactPoint3dEstimatorCfg
29  kwargs.setdefault("ImpactPoint3dEstimator",acc.popToolsAndMerge(AtlasImpactPoint3dEstimatorCfg(flags)))
30 
31  from TrkConfig.TrkVertexFitterUtilsConfig import FullLinearizedTrackFactoryCfg
32  kwargs.setdefault("LinearizedTrackFactory",acc.popToolsAndMerge(FullLinearizedTrackFactoryCfg(flags)))
33 
34  kwargs.setdefault("doMaxTracksCut",flags.Tracking.PriVertex.doMaxTracksCut)
35  kwargs.setdefault("MaxTracks",flags.Tracking.PriVertex.maxTracks)
36 
37  kwargs["VertexFilterLevel"] = 0
38  kwargs.setdefault("OutputLevel",Lvl.INFO)
39 
40  acc.setPrivateTools(CompFactory.InDet.InDetIterativeSecVtxFinderTool(name, **kwargs))
41  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.InDetTrackSelectionToolConfig.InDetTrackSelectionTool_AMSVF_Cfg
def InDetTrackSelectionTool_AMSVF_Cfg(flags, name='InDetTrackSelectionTool_AMSVF', **kwargs)
Configs for Sec Vtx #####.
Definition: InDetTrackSelectionToolConfig.py:191
python.TrkVertexSeedFinderToolsConfig.IndexedCrossDistancesSeedFinderCfg
def IndexedCrossDistancesSeedFinderCfg(flags, name='IndexedCrossDistancesSeedFinder', **kwargs)
Definition: TrkVertexSeedFinderToolsConfig.py:50
Constants
some useful constants -------------------------------------------------—
python.TrkVertexFittersConfig.AdaptiveVxFitterToolIncSecVtxCfg
def AdaptiveVxFitterToolIncSecVtxCfg(flags, name='AdaptiveVxFitterToolIncSecVtx', **kwargs)
Definition: TrkVertexFittersConfig.py:130
python.TrkVertexFitterUtilsConfig.AtlasImpactPoint3dEstimatorCfg
def AtlasImpactPoint3dEstimatorCfg(flags, name='AtlasImpactPoint3dEstimator', **kwargs)
Definition: TrkVertexFitterUtilsConfig.py:92
python.TrkVertexFitterUtilsConfig.FullLinearizedTrackFactoryCfg
def FullLinearizedTrackFactoryCfg(flags, name='FullLinearizedTrkFactory', **kwargs)
Definition: TrkVertexFitterUtilsConfig.py:6
python.InDetIncSecVxFinderToolConfig.InDetIterativeSecVtxFinderToolCfg
def InDetIterativeSecVtxFinderToolCfg(flags, name="InDetIterativeSecVtxFinderTool", **kwargs)
Definition: InDetIncSecVxFinderToolConfig.py:11
python.InDetSecVtxTrackSelectionToolConfig.InDetSecVtxTrackSelectionToolCfg
def InDetSecVtxTrackSelectionToolCfg(flags, name='InDetSecVtxTrackSelectionTool', **kwargs)
Configs for SecVtx #####.
Definition: InDetSecVtxTrackSelectionToolConfig.py:11