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)))
25  kwargs.setdefault("ResoSeedHitAssoc", 5. )
26  kwargs.setdefault("RecoveryPull", 3.)
27  kwargs.setdefault("useMinuit", False)
28  kwargs.setdefault("fitSegmentT0", False)
29  kwargs.setdefault("doBeamspotConstraint", True)
30 
31  if not flags.Input.isMC:
32  kwargs.setdefault("TruthSegKey", "")
33 
34  theAlg = CompFactory.MuonR4.SegmentFittingAlg(name, **kwargs)
35  result.addEventAlgo(theAlg, primary=True)
36  return result
37 
39  result = ComponentAccumulator()
40  from ActsAlignmentAlgs.AlignmentAlgsConfig import ActsGeometryContextAlgCfg
41  result.merge(ActsGeometryContextAlgCfg(flags))
42  result.merge(MuonEtaHoughTransformAlgCfg(flags))
43  result.merge(MuonPhiHoughTransformAlgCfg(flags))
44  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:38
CalibrationConfig.MuonSpacePointCalibratorCfg
def MuonSpacePointCalibratorCfg(flags, name="MuonSpacePointCalibrator", **kwargs)
Definition: CalibrationConfig.py:6
MuonHoughTransformAlgConfig.MuonEtaHoughTransformAlgCfg
def MuonEtaHoughTransformAlgCfg(flags, name="MuonEtaHoughTransformAlg", **kwargs)
Definition: MuonHoughTransformAlgConfig.py:14