ATLAS Offline Software
TrkV0FitterConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 # Configuration of TrkV0Fitter package
3 
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory import CompFactory
6 
7 def TrkV0VertexFitterCfg(flags, name="TrkV0VertexFitter", **kwargs):
8  from MagFieldServices.MagFieldServicesConfig import AtlasFieldCacheCondAlgCfg
9  acc = AtlasFieldCacheCondAlgCfg(flags) # To produce AtlasFieldCacheCondObj
10 
11  if "Extrapolator" not in kwargs:
12  from TrkConfig.AtlasExtrapolatorConfig import AtlasExtrapolatorCfg
13  kwargs.setdefault("Extrapolator", acc.popToolsAndMerge(
14  AtlasExtrapolatorCfg(flags)))
15 
16  kwargs.setdefault("MaxIterations", 10)
17  kwargs.setdefault("Use_deltaR", False)
18 
19  acc.setPrivateTools(CompFactory.Trk.TrkV0VertexFitter(name, **kwargs))
20  return acc
21 
22 def TrkV0VertexFitter_InDetExtrCfg(flags, name="TrkV0VertexFitter_InDetExtr", **kwargs):
23  acc = ComponentAccumulator()
24 
25  if "Extrapolator" not in kwargs:
26  from TrkConfig.AtlasExtrapolatorConfig import InDetExtrapolatorCfg
27  kwargs.setdefault("Extrapolator", acc.popToolsAndMerge(
28  InDetExtrapolatorCfg(flags)))
29 
30  acc.setPrivateTools(acc.popToolsAndMerge(TrkV0VertexFitterCfg(flags, name, **kwargs)))
31  return acc
python.TrkV0FitterConfig.TrkV0VertexFitter_InDetExtrCfg
def TrkV0VertexFitter_InDetExtrCfg(flags, name="TrkV0VertexFitter_InDetExtr", **kwargs)
Definition: TrkV0FitterConfig.py:22
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.AtlasExtrapolatorConfig.AtlasExtrapolatorCfg
def AtlasExtrapolatorCfg(flags, name='AtlasExtrapolator')
Definition: AtlasExtrapolatorConfig.py:63
python.TrkV0FitterConfig.TrkV0VertexFitterCfg
def TrkV0VertexFitterCfg(flags, name="TrkV0VertexFitter", **kwargs)
Definition: TrkV0FitterConfig.py:7
python.MagFieldServicesConfig.AtlasFieldCacheCondAlgCfg
def AtlasFieldCacheCondAlgCfg(flags, **kwargs)
Definition: MagFieldServicesConfig.py:8
python.AtlasExtrapolatorConfig.InDetExtrapolatorCfg
def InDetExtrapolatorCfg(flags, name='InDetExtrapolator', **kwargs)
Definition: AtlasExtrapolatorConfig.py:315