ATLAS Offline Software
TRT_DetElementsRoadToolConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 # Configuration of TRT_DetElementsRoadTool_xk package
3 
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory import CompFactory
6 
7 def TRT_DetElementsRoadCondAlgCfg(flags, name="TRT_DetElementsRoadCondAlg_xk", **kwargs):
9  acc.addCondAlgo(
10  CompFactory.InDet.TRT_DetElementsRoadCondAlg_xk(name, **kwargs))
11  return acc
12 
13 def TRT_DetElementsRoadMaker_xkCfg(flags, name='TRT_DetElementsRoadMaker', **kwargs):
14  from MagFieldServices.MagFieldServicesConfig import (
15  AtlasFieldCacheCondAlgCfg)
16  acc = AtlasFieldCacheCondAlgCfg(flags)
17  acc.merge(TRT_DetElementsRoadCondAlgCfg(flags)) # To produce the input TRT_DetElementsRoadData_xk CondHandle
18 
19  if "PropagatorTool" not in kwargs:
20  from TrkConfig.TrkExRungeKuttaPropagatorConfig import (
21  RungeKuttaPropagatorCfg)
22  kwargs.setdefault("PropagatorTool", acc.popToolsAndMerge(
24 
25  acc.setPrivateTools(
26  CompFactory.InDet.TRT_DetElementsRoadMaker_xk(name, **kwargs))
27  return acc
28 
29 def TRT_DetElementsRoadMaker_xk_TRTExtensionCfg(flags, name='TRT_DetElementsRoadMaker_TRTExtension', **kwargs):
30  kwargs.setdefault("RoadWidth", 20.)
31  return TRT_DetElementsRoadMaker_xkCfg(flags, name, **kwargs)
32 
33 def Trig_TRT_DetElementsRoadMaker_xk_TRTExtensionCfg(flags, name='TRT_DetElementsRoadMaker_TRTExtension', **kwargs):
34  #this should not be necessary aside from 2022 legacy config
35  kwargs.setdefault("RoadWidth", 10.) #2023fix
36  return TRT_DetElementsRoadMaker_xkCfg(flags, name, **kwargs)
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.TRT_DetElementsRoadToolConfig.TRT_DetElementsRoadCondAlgCfg
def TRT_DetElementsRoadCondAlgCfg(flags, name="TRT_DetElementsRoadCondAlg_xk", **kwargs)
Definition: TRT_DetElementsRoadToolConfig.py:7
python.TrkExRungeKuttaPropagatorConfig.RungeKuttaPropagatorCfg
def RungeKuttaPropagatorCfg(flags, name='AtlasRungeKuttaPropagator', **kwargs)
Definition: TrkExRungeKuttaPropagatorConfig.py:9
python.TRT_DetElementsRoadToolConfig.TRT_DetElementsRoadMaker_xk_TRTExtensionCfg
def TRT_DetElementsRoadMaker_xk_TRTExtensionCfg(flags, name='TRT_DetElementsRoadMaker_TRTExtension', **kwargs)
Definition: TRT_DetElementsRoadToolConfig.py:29
python.TRT_DetElementsRoadToolConfig.Trig_TRT_DetElementsRoadMaker_xk_TRTExtensionCfg
def Trig_TRT_DetElementsRoadMaker_xk_TRTExtensionCfg(flags, name='TRT_DetElementsRoadMaker_TRTExtension', **kwargs)
Definition: TRT_DetElementsRoadToolConfig.py:33
python.MagFieldServicesConfig.AtlasFieldCacheCondAlgCfg
def AtlasFieldCacheCondAlgCfg(flags, **kwargs)
Definition: MagFieldServicesConfig.py:8
python.TRT_DetElementsRoadToolConfig.TRT_DetElementsRoadMaker_xkCfg
def TRT_DetElementsRoadMaker_xkCfg(flags, name='TRT_DetElementsRoadMaker', **kwargs)
Definition: TRT_DetElementsRoadToolConfig.py:13