6def CsvSpacePointDumpCfg(flags, name="CsvDriftCircleDumper", **kwargs):
7 result = ComponentAccumulator()
8 from MuonSpacePointFormation.SpacePointFormationConfig import MuonSpacePointFormationCfg
9 result.merge(MuonSpacePointFormationCfg(flags))
10 spCont = []
11 if flags.Detector.GeometryMDT or flags.Detector.GeometryRPC or flags.Detector.GeometryTGC:
12 spCont+=["MuonSpacePoints"]
13 if flags.Detector.GeometryMM or flags.Detector.GeometrysTGC:
14 spCont+=["NswSpacePoints"]
15
16 kwargs.setdefault("SpacePointKeys", spCont)
17 the_alg = CompFactory.MuonR4.SpacePointCsvDumperAlg(name=name, **kwargs)
18 result.addEventAlgo(the_alg, primary = True)
19 return result
20
21