ATLAS Offline Software
MuonSegmentToCalibSegmentConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 
7 
8 def MuonSegmentToCalibSegmentCfg(flags, name = "MuonSegmentToCalibSegmentAlg", **kwargs):
9  """Set up to create the MuonCalibSegment from MuonSegment
10 
11  Args:
12  flags: Job configuration flags
13 
14  Services:
15  #Muon::MdtDriftCircleOnTrackCreator
16  MdtCalibrationTool
17  MuonIdHelper
18 
19  Returns:
20  A component accumulator fragment containing the components required to read
21  from Muon calibration stream bytestream data. Should be merged into main job configuration.
22  """
23  result = ComponentAccumulator()
24 
25  #setup the tools
26  from MuonConfig.MuonGeometryConfig import MuonIdHelperSvcCfg
27  from MuonConfig.MuonRecToolsConfig import MuonEDMHelperSvcCfg
28  from MuonConfig.MuonCalibrationConfig import MdtCalibrationToolCfg, MdtCalibrationDbToolCfg
29 
30  result.merge(MuonIdHelperSvcCfg(configFlags))
31  result.merge(MuonEDMHelperSvcCfg(configFlags))
32 
33  muonSegmentToCalibSegment = CompFactory.MuonCalib.MuonSegmentToCalibSegment(**kwargs, CalibrationTool=result.popToolsAndMerge(MdtCalibrationToolCfg(configFlags, TimeWindowSetting = 2)))
34  #muonSegmentToCalibSegment.MdtCalibrationTool
35  result.addEventAlgo(muonSegmentToCalibSegment)
36 
37  return result
38 
39  #Muon::MdtDriftCircleOnTrackCreator
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
MuonSegmentToCalibSegmentConfig.MuonSegmentToCalibSegmentCfg
def MuonSegmentToCalibSegmentCfg(flags, name="MuonSegmentToCalibSegmentAlg", **kwargs)
Definition: MuonSegmentToCalibSegmentConfig.py:8
python.MuonGeometryConfig.MuonIdHelperSvcCfg
def MuonIdHelperSvcCfg(flags)
Definition: MuonGeometryConfig.py:15
python.MuonCalibrationConfig.MdtCalibrationToolCfg
def MdtCalibrationToolCfg(flags, name="MdtCalibrationTool", **kwargs)
Definition: MuonCalibrationConfig.py:82
python.MuonRecToolsConfig.MuonEDMHelperSvcCfg
def MuonEDMHelperSvcCfg(flags, name="MuonEDMHelperSvc", **kwargs)
Definition: MuonRecToolsConfig.py:29