ATLAS Offline Software
TrkVertexSeedFinderUtilsConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 # Configuration of TrkVertexSeedFinderUtils package
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 def Trk2dDistanceSeederCfg(flags, name='Trk2dDistanceSeeder', **kwargs):
7  # To produce AtlasFieldCacheCondObj
8  from MagFieldServices.MagFieldServicesConfig import (
9  AtlasFieldCacheCondAlgCfg)
10  acc = AtlasFieldCacheCondAlgCfg(flags)
11  acc.setPrivateTools(CompFactory.Trk.Trk2dDistanceSeeder(name, **kwargs))
12  return acc
13 
14 def NewtonTrkDistanceFinderCfg(flags, name='NewtonTrkDistanceFinder', **kwargs):
15  # To produce AtlasFieldCacheCondObj
16  from MagFieldServices.MagFieldServicesConfig import (
17  AtlasFieldCacheCondAlgCfg)
18  acc = AtlasFieldCacheCondAlgCfg(flags)
19  acc.setPrivateTools(CompFactory.Trk.NewtonTrkDistanceFinder(name, **kwargs))
20  return acc
21 
22 def SeedNewtonTrkDistanceFinderCfg(flags, name='SeedNewtonTrkDistanceFinder', **kwargs):
23  acc = ComponentAccumulator()
24 
25  kwargs.setdefault("Trk2dDistanceSeeder", acc.addPublicTool(
26  acc.popToolsAndMerge(Trk2dDistanceSeederCfg(flags))))
27  kwargs.setdefault("TrkDistanceFinderImplementation", acc.addPublicTool(
28  acc.popToolsAndMerge(NewtonTrkDistanceFinderCfg(flags))))
29 
30  acc.setPrivateTools(
31  CompFactory.Trk.SeedNewtonTrkDistanceFinder(name, **kwargs))
32  return acc
33 
34 
35 def Mode3dFromFsmw1dFinderCfg(flags, name='Mode3dFromFsmw1dFinder', **kwargs):
36 
37  acc = ComponentAccumulator()
38 
39  kwargs["MinimalDistanceFromZtoXY"] = 0.25
40 
41  acc.setPrivateTools(CompFactory.Trk.Mode3dFromFsmw1dFinder(name, **kwargs))
42  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.TrkVertexSeedFinderUtilsConfig.SeedNewtonTrkDistanceFinderCfg
def SeedNewtonTrkDistanceFinderCfg(flags, name='SeedNewtonTrkDistanceFinder', **kwargs)
Definition: TrkVertexSeedFinderUtilsConfig.py:22
python.TrkVertexSeedFinderUtilsConfig.Trk2dDistanceSeederCfg
def Trk2dDistanceSeederCfg(flags, name='Trk2dDistanceSeeder', **kwargs)
Definition: TrkVertexSeedFinderUtilsConfig.py:6
python.TrkVertexSeedFinderUtilsConfig.Mode3dFromFsmw1dFinderCfg
def Mode3dFromFsmw1dFinderCfg(flags, name='Mode3dFromFsmw1dFinder', **kwargs)
Definition: TrkVertexSeedFinderUtilsConfig.py:35
python.TrkVertexSeedFinderUtilsConfig.NewtonTrkDistanceFinderCfg
def NewtonTrkDistanceFinderCfg(flags, name='NewtonTrkDistanceFinder', **kwargs)
Definition: TrkVertexSeedFinderUtilsConfig.py:14
python.MagFieldServicesConfig.AtlasFieldCacheCondAlgCfg
def AtlasFieldCacheCondAlgCfg(flags, **kwargs)
Definition: MagFieldServicesConfig.py:8