ATLAS Offline Software
Loading...
Searching...
No Matches
MuonBucketDumpConfig.py
Go to the documentation of this file.
1#Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
6
7def MuonHitDumperCfg(flags, name="MuonHitDumper", **kwargs):
8 result = ComponentAccumulator()
9 spCont = []
10 if flags.Detector.GeometryMDT or flags.Detector.GeometryRPC or flags.Detector.GeometryTGC:
11 spCont+=["MuonSpacePoints"]
12 if flags.Detector.GeometryMM or flags.Detector.GeometrysTGC:
13 spCont+=["NswSpacePoints"]
14 kwargs.setdefault("SpacePointKeys", spCont)
15 result.addEventAlgo(CompFactory.MuonR4.MlHitDumperAlg(name, **kwargs))
16 return result
17
18def MuonBucketDumpCfg(flags, name="MuonBucketDumper", **kwargs):
19 result = ComponentAccumulator()
20 from MuonSpacePointFormation.SpacePointFormationConfig import MuonSpacePointFormationCfg
21 result.merge(MuonSpacePointFormationCfg(flags))
22 kwargs.setdefault("isMC", flags.Input.isMC)
23 from RngComps.RngCompsConfig import AthRNGSvcCfg
24 kwargs.setdefault("RndmSvc", result.getPrimaryAndMerge(AthRNGSvcCfg(flags)))
25 spCont = []
26 if flags.Detector.GeometryMDT or flags.Detector.GeometryRPC or flags.Detector.GeometryTGC:
27 spCont+=["MuonSpacePoints"]
28 if flags.Detector.GeometryMM or flags.Detector.GeometrysTGC:
29 spCont+=["NswSpacePoints"]
30
31 kwargs.setdefault("SpacePointKeys", spCont)
32
33
34 the_alg = CompFactory.MuonR4.BucketDumperAlg(name=name, **kwargs)
35 result.addEventAlgo(the_alg, primary = True)
36 return result
37
38def MuonSegmentDumpCfg(flags, name="MuonSegmentDumper", **kwargs):
39 result = ComponentAccumulator()
40 from MuonSpacePointFormation.SpacePointFormationConfig import MuonSpacePointFormationCfg
41 result.merge(MuonSpacePointFormationCfg(flags))
42
43 spCont = []
44 if flags.Detector.GeometryMDT or flags.Detector.GeometryRPC or flags.Detector.GeometryTGC:
45 spCont+=["MuonSpacePoints"]
46 if flags.Detector.GeometryMM or flags.Detector.GeometrysTGC:
47 spCont+=["NswSpacePoints"]
48
49 segCont = ""
50 if flags.Detector.GeometryMDT or flags.Detector.GeometryRPC or flags.Detector.GeometryTGC:
51 segCont = "MuonSegmentsFromR4"
52
53 kwargs.setdefault("SpacePointKeys", spCont)
54 kwargs.setdefault("SegmentKeys", segCont)
55
56 the_alg = CompFactory.MuonR4.SegmentDumperAlg(name=name, **kwargs)
57 result.addEventAlgo(the_alg, primary = True)
58 return result
MuonSegmentDumpCfg(flags, name="MuonSegmentDumper", **kwargs)
MuonHitDumperCfg(flags, name="MuonHitDumper", **kwargs)
MuonBucketDumpCfg(flags, name="MuonBucketDumper", **kwargs)