ATLAS Offline Software
Loading...
Searching...
No Matches
CalibrationConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
6def MuonSpacePointCalibratorCfg(flags,name="MuonSpacePointCalibrator", **kwargs):
7 result = ComponentAccumulator()
8 if flags.Detector.GeometryMDT:
9 from MuonConfig.MuonCalibrationConfig import MdtCalibrationToolCfg
10 kwargs.setdefault("MdtCalibrationTool", result.popToolsAndMerge(MdtCalibrationToolCfg(flags)))
11 if flags.Detector.GeometryMM:
12 from MuonConfig.MuonCalibrationConfig import NSWCalibToolCfg
13 kwargs.setdefault("NSWCalibTool", result.popToolsAndMerge(NSWCalibToolCfg(flags)))
14 from MuonConfig.MuonRecToolsConfig import SimpleMMClusterBuilderToolCfg
15 kwargs.setdefault("MMClusterBuilder", result.popToolsAndMerge(SimpleMMClusterBuilderToolCfg(flags)))
16
17
18 the_tool = CompFactory.MuonR4.SpacePointCalibrator(name, **kwargs)
19 result.setPrivateTools(the_tool)
20 return result
MuonSpacePointCalibratorCfg(flags, name="MuonSpacePointCalibrator", **kwargs)