ATLAS Offline Software
MuonHoughTransformAlgConfig.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 
7 def MuonPhiHoughTransformAlgCfg(flags, name = "MuonPhiHoughTransformAlg", **kwargs):
8  result = ComponentAccumulator()
9  kwargs.setdefault("downWeightPrdMultiplicity", True)
10  theAlg = CompFactory.MuonR4.PhiHoughTransformAlg(name, **kwargs)
11  result.addEventAlgo(theAlg, primary=True)
12  return result
13 
14 def MuonEtaHoughTransformAlgCfg(flags, name = "MuonEtaHoughTransformAlg", **kwargs):
15  result = ComponentAccumulator()
16  kwargs.setdefault("downWeightPrdMultiplicity", True)
17  theAlg = CompFactory.MuonR4.EtaHoughTransformAlg(name, **kwargs)
18  result.addEventAlgo(theAlg, primary=True)
19  return result
20 
21 def MuonSegmentFittingAlgCfg(flags, name = "MuonSegmentFittingAlg", **kwargs):
22  result = ComponentAccumulator()
23  from MuonSpacePointCalibrator.CalibrationConfig import MuonSpacePointCalibratorCfg
24  kwargs.setdefault("Calibrator", result.popToolsAndMerge(MuonSpacePointCalibratorCfg(flags, mdtErrorScaleFactor=2.0, MdtPropagationTimeUncert=True)))
25  kwargs.setdefault("ResoSeedHitAssoc", 5. )
26  kwargs.setdefault("RecoveryPull", 3.)
27  kwargs.setdefault("fitSegmentT0", False)
28  kwargs.setdefault("SeedRefine", False)
29  kwargs.setdefault("doBeamspotConstraint", True)
30 
31  theAlg = CompFactory.MuonR4.SegmentFittingAlg(name, **kwargs)
32  result.addEventAlgo(theAlg, primary=True)
33  return result
34 
36  result = ComponentAccumulator()
37  from ActsAlignmentAlgs.AlignmentAlgsConfig import ActsGeometryContextAlgCfg
38  result.merge(ActsGeometryContextAlgCfg(flags))
39  result.merge(MuonEtaHoughTransformAlgCfg(flags))
40  result.merge(MuonPhiHoughTransformAlgCfg(flags))
41  return result
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
MuonHoughTransformAlgConfig.MuonSegmentFittingAlgCfg
def MuonSegmentFittingAlgCfg(flags, name="MuonSegmentFittingAlg", **kwargs)
Definition: MuonHoughTransformAlgConfig.py:21
AlignmentAlgsConfig.ActsGeometryContextAlgCfg
def ActsGeometryContextAlgCfg(flags, name="GeometryContextAlg", **kwargs)
Setup the Geometry context algorithm.
Definition: AlignmentAlgsConfig.py:125
MuonHoughTransformAlgConfig.MuonPhiHoughTransformAlgCfg
def MuonPhiHoughTransformAlgCfg(flags, name="MuonPhiHoughTransformAlg", **kwargs)
Definition: MuonHoughTransformAlgConfig.py:7
MuonHoughTransformAlgConfig.MuonPatternRecognitionCfg
def MuonPatternRecognitionCfg(flags)
Definition: MuonHoughTransformAlgConfig.py:35
CalibrationConfig.MuonSpacePointCalibratorCfg
def MuonSpacePointCalibratorCfg(flags, name="MuonSpacePointCalibrator", **kwargs)
Definition: CalibrationConfig.py:6
MuonHoughTransformAlgConfig.MuonEtaHoughTransformAlgCfg
def MuonEtaHoughTransformAlgCfg(flags, name="MuonEtaHoughTransformAlg", **kwargs)
Definition: MuonHoughTransformAlgConfig.py:14