ATLAS Offline Software
MuonSegmentCnvConfig.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 MuonR4SegmentCnvAlgCfg(flags, name="MuonR4SegmentCnvAlg", **kwargs):
7  result = ComponentAccumulator()
8 
9  from ActsAlignmentAlgs.AlignmentAlgsConfig import ActsGeometryContextAlgCfg
10  result.merge(ActsGeometryContextAlgCfg(flags))
11 
12  if not flags.Detector.GeometryMDT: kwargs.setdefault("MdtKey" ,"")
13  if not flags.Detector.GeometryRPC: kwargs.setdefault("RpcKey" ,"")
14  if not flags.Detector.GeometryTGC: kwargs.setdefault("TgcKey" ,"")
15  if not flags.Detector.GeometryMM: kwargs.setdefault("MmKey" ,"")
16  if not flags.Detector.GeometrysTGC: kwargs.setdefault("sTgcKey" ,"")
17 
18  from MuonConfig.MuonRIO_OnTrackCreatorToolConfig import MuonClusterOnTrackCreatorCfg, MdtDriftCircleOnTrackCreatorCfg
19  kwargs.setdefault("MdtRotCreator", result.popToolsAndMerge(MdtDriftCircleOnTrackCreatorCfg(flags)))
20  kwargs.setdefault("ClusterRotCreator", result.popToolsAndMerge(MuonClusterOnTrackCreatorCfg(flags)))
21  from MuonConfig.MuonRecToolsConfig import MuonEDMPrinterToolCfg
22  kwargs.setdefault("printerTool", result.getPrimaryAndMerge(MuonEDMPrinterToolCfg(flags)))
23  the_alg = CompFactory.MuonR4.SegmentCnvAlg(name, **kwargs)
24  result.addEventAlgo(the_alg, primary = True)
25  return result
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
MuonSegmentCnvConfig.MuonR4SegmentCnvAlgCfg
def MuonR4SegmentCnvAlgCfg(flags, name="MuonR4SegmentCnvAlg", **kwargs)
Definition: MuonSegmentCnvConfig.py:6
python.MuonRecToolsConfig.MuonEDMPrinterToolCfg
def MuonEDMPrinterToolCfg(flags, name="MuonEDMPrinterTool", **kwargs)
Definition: MuonRecToolsConfig.py:10
AlignmentAlgsConfig.ActsGeometryContextAlgCfg
def ActsGeometryContextAlgCfg(flags, name="GeometryContextAlg", **kwargs)
Setup the Geometry context algorithm.
Definition: AlignmentAlgsConfig.py:125
python.MuonRIO_OnTrackCreatorToolConfig.MuonClusterOnTrackCreatorCfg
def MuonClusterOnTrackCreatorCfg(flags, name="MuonClusterOnTrackCreator", **kwargs)
Definition: MuonRIO_OnTrackCreatorToolConfig.py:96
python.MuonRIO_OnTrackCreatorToolConfig.MdtDriftCircleOnTrackCreatorCfg
def MdtDriftCircleOnTrackCreatorCfg(flags, name="MdtDriftCircleOnTrackCreator", **kwargs)
Definition: MuonRIO_OnTrackCreatorToolConfig.py:73