ATLAS Offline Software
Loading...
Searching...
No Matches
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
6from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
7from AthenaConfiguration.ComponentFactory import CompFactory
8
9def 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
InDetSecVtxFinderAlgCfg(flags, name="InDetSecVtxFinderAlg", **kwargs)