ATLAS Offline Software
ObjectMarkerConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
3 from AthenaConfiguration.ComponentFactory import CompFactory
4 
5 def SegmentMarkerAlgCfg(flags, name = "SegmentMarkerAlg", **kwargs):
6  result = ComponentAccumulator()
7  the_alg = CompFactory.MuonR4.SegmentMarkerAlg(name, **kwargs)
8  result.addEventAlgo(the_alg)
9  return result
10 
11 def MeasurementMarkerAlgCfg(flags, name = "MeasurementMarkerAlg", **kwargs) :
12  result = ComponentAccumulator()
13  from MuonConfig.MuonDataPrepConfig import PrimaryMeasContNamesCfg
14  kwargs.setdefault("PrdContainer", PrimaryMeasContNamesCfg(flags))
15  the_alg = CompFactory.MuonR4.MeasurementMarkerAlg(name, **kwargs)
16  result.addEventAlgo(the_alg, primary = True)
17  return result
18 
19 def TruthMeasMarkerAlgCfg(flags, name = "TruthMeasMarkerAlg", **kwargs):
20  result = ComponentAccumulator()
21  from MuonConfig.MuonDataPrepConfig import PrimaryMeasContNamesCfg
22  kwargs.setdefault("PrdContainer", PrimaryMeasContNamesCfg(flags))
23  kwargs.setdefault("SegmentLinkKey", "truthSegLinks")
24  the_alg = CompFactory.MuonR4.TruthMeasMarkerAlg(name, **kwargs)
25  result.addEventAlgo(the_alg, primary = True)
26  return result
27 
28 def MuonSegmentFitParDecorAlgCfg(flags,name = "MuonSegmentFitParDecorAlg", **kwargs):
29  result = ComponentAccumulator()
30 
31  from ActsAlignmentAlgs.AlignmentAlgsConfig import ActsGeometryContextAlgCfg
32  result.merge(ActsGeometryContextAlgCfg(flags))
33 
34  if not flags.Detector.GeometryMDT: kwargs.setdefault("MdtKey" ,"")
35  if not flags.Detector.GeometryRPC: kwargs.setdefault("RpcKey" ,"")
36  if not flags.Detector.GeometryTGC: kwargs.setdefault("TgcKey" ,"")
37  if not flags.Detector.GeometryMM: kwargs.setdefault("MmKey" ,"")
38  if not flags.Detector.GeometrysTGC: kwargs.setdefault("sTgcKey" ,"")
39  the_alg = CompFactory.MuonR4.SegmentFitParDecorAlg(name, **kwargs)
40  result.addEventAlgo(the_alg, primary = True)
41  return result
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
ObjectMarkerConfig.TruthMeasMarkerAlgCfg
def TruthMeasMarkerAlgCfg(flags, name="TruthMeasMarkerAlg", **kwargs)
Definition: ObjectMarkerConfig.py:19
ObjectMarkerConfig.MuonSegmentFitParDecorAlgCfg
def MuonSegmentFitParDecorAlgCfg(flags, name="MuonSegmentFitParDecorAlg", **kwargs)
Definition: ObjectMarkerConfig.py:28
ObjectMarkerConfig.SegmentMarkerAlgCfg
def SegmentMarkerAlgCfg(flags, name="SegmentMarkerAlg", **kwargs)
Definition: ObjectMarkerConfig.py:5
AlignmentAlgsConfig.ActsGeometryContextAlgCfg
def ActsGeometryContextAlgCfg(flags, name="GeometryContextAlg", **kwargs)
Setup the Geometry context algorithm.
Definition: AlignmentAlgsConfig.py:125
ObjectMarkerConfig.MeasurementMarkerAlgCfg
def MeasurementMarkerAlgCfg(flags, name="MeasurementMarkerAlg", **kwargs)
Definition: ObjectMarkerConfig.py:11
python.MuonDataPrepConfig.PrimaryMeasContNamesCfg
def PrimaryMeasContNamesCfg(flags)
Definition: MuonDataPrepConfig.py:6