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