ATLAS Offline Software
CalibrationConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 def MuonSpacePointCalibratorCfg(flags,name="MuonSpacePointCalibrator",**kwargs):
7  result = ComponentAccumulator()
8  kwargs.setdefault("MdtPropagationTimeUncert", False)
9  if flags.Detector.GeometryMDT:
10  from MuonConfig.MuonCalibrationConfig import MdtCalibrationToolCfg
11  kwargs.setdefault("MdtCalibrationTool", result.popToolsAndMerge(MdtCalibrationToolCfg(flags,DoPropagationTimeUncert=kwargs["MdtPropagationTimeUncert"])))
12  the_tool = CompFactory.MuonR4.SpacePointCalibrator(name, **kwargs)
13  result.setPrivateTools(the_tool)
14  return result
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.MuonCalibrationConfig.MdtCalibrationToolCfg
def MdtCalibrationToolCfg(flags, name="MdtCalibrationTool", **kwargs)
Definition: MuonCalibrationConfig.py:82
CalibrationConfig.MuonSpacePointCalibratorCfg
def MuonSpacePointCalibratorCfg(flags, name="MuonSpacePointCalibrator", **kwargs)
Definition: CalibrationConfig.py:6