ATLAS Offline Software
Loading...
Searching...
No Matches
TrkVertexBilloirToolsConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2# Configuration of TrkVertexBilloirTools package
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
6def FastVertexFitterCfg(flags, name="FastVertexFitterTool", **kwargs):
7 acc = ComponentAccumulator()
8
9 if "LinearizedTrackFactory" not in kwargs:
10 from TrkConfig.TrkVertexFitterUtilsConfig import (
11 FullLinearizedTrackFactoryCfg)
12 kwargs.setdefault("LinearizedTrackFactory", acc.popToolsAndMerge(
13 FullLinearizedTrackFactoryCfg(flags)))
14
15 if "Extrapolator" not in kwargs:
16 from TrkConfig.AtlasExtrapolatorConfig import InDetExtrapolatorCfg
17 kwargs.setdefault("Extrapolator", acc.popToolsAndMerge(
18 InDetExtrapolatorCfg(flags)))
19
20 acc.setPrivateTools(CompFactory.Trk.FastVertexFitter(name, **kwargs))
21 return acc
FastVertexFitterCfg(flags, name="FastVertexFitterTool", **kwargs)