ATLAS Offline Software
Loading...
Searching...
No Matches
InDetSecVtxFinderConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2026 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.InDetAdaptiveMultiSecVtxFinderToolConfig import InDetAdaptiveMultiSecVtxFinderToolCfg
14 kwargs.setdefault("AdaptiveMultiVertexFinderTool", acc.getPrimaryAndMerge(InDetAdaptiveMultiSecVtxFinderToolCfg(flags)))
15
16 acc.addEventAlgo(CompFactory.InDet.InDetSecVtxFinder(name, **kwargs))
17 return acc
18
InDetSecVtxFinderAlgCfg(flags, name="InDetSecVtxFinderAlg", **kwargs)