ATLAS Offline Software
Loading...
Searching...
No Matches
ObjectMarkerConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
3from AthenaConfiguration.ComponentFactory import CompFactory
4
5def 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
11def 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
19def TruthMeasMarkerAlgCfg(flags, name = "TruthMeasMarkerAlg", **kwargs):
20 result = ComponentAccumulator()
21 from MuonConfig.MuonDataPrepConfig import PrimaryMeasContNamesCfg
22 kwargs.setdefault("PrdContainer", PrimaryMeasContNamesCfg(flags))
23 kwargs.setdefault("SegmentLinkKey", "truthSegmentLinks")
24 the_alg = CompFactory.MuonR4.TruthMeasMarkerAlg(name, **kwargs)
25 result.addEventAlgo(the_alg, primary = True)
26 return result
27
28def 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
MuonSegmentFitParDecorAlgCfg(flags, name="MuonSegmentFitParDecorAlg", **kwargs)
TruthMeasMarkerAlgCfg(flags, name="TruthMeasMarkerAlg", **kwargs)
SegmentMarkerAlgCfg(flags, name="SegmentMarkerAlg", **kwargs)
MeasurementMarkerAlgCfg(flags, name="MeasurementMarkerAlg", **kwargs)