ATLAS Offline Software
InDetSecVtxFinderConfig.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 
9 def InDetSecVtxFinderAlgCfg(flags, name="InDetSecVtxFinderAlg", **kwargs):
10  """ return a CA with configured SecVtxFinderAlg """
11  acc = ComponentAccumulator()
12 
13  from InDetConfig.InDetIncSecVxFinderToolConfig import InDetIterativeSecVtxFinderToolCfg
14  kwargs.setdefault("InclusiveVertexFinderTool", acc.getPrimaryAndMerge(InDetIterativeSecVtxFinderToolCfg(flags)))
15 
16  from InDetConfig.InDetAdaptiveMultiSecVtxFinderToolConfig import InDetAdaptiveMultiSecVtxFinderToolCfg
17  kwargs.setdefault("AdaptiveMultiVertexFinderTool", acc.getPrimaryAndMerge(InDetAdaptiveMultiSecVtxFinderToolCfg(flags)))
18 
19  from TrkConfig.TrkVertexToolsConfig import SecVertexMergingToolCfg
20  kwargs.setdefault("VertexMergingTool", acc.getPrimaryAndMerge(SecVertexMergingToolCfg(flags)))
21 
22  acc.addEventAlgo(CompFactory.InDet.InDetSecVtxFinder(name, **kwargs))
23  return acc
24 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.InDetSecVtxFinderConfig.InDetSecVtxFinderAlgCfg
def InDetSecVtxFinderAlgCfg(flags, name="InDetSecVtxFinderAlg", **kwargs)
Definition: InDetSecVtxFinderConfig.py:9
python.TrkVertexToolsConfig.SecVertexMergingToolCfg
def SecVertexMergingToolCfg(flags, name='SecVertexMergingTool', **kwargs)
Definition: TrkVertexToolsConfig.py:66
python.InDetAdaptiveMultiSecVtxFinderToolConfig.InDetAdaptiveMultiSecVtxFinderToolCfg
def InDetAdaptiveMultiSecVtxFinderToolCfg(flags, name="InDetAdaptiveMultiSecVtxFinderTool", **kwargs)
Definition: InDetAdaptiveMultiSecVtxFinderToolConfig.py:10
python.InDetIncSecVxFinderToolConfig.InDetIterativeSecVtxFinderToolCfg
def InDetIterativeSecVtxFinderToolCfg(flags, name="InDetIterativeSecVtxFinderTool", **kwargs)
Definition: InDetIncSecVxFinderToolConfig.py:11