ATLAS Offline Software
Loading...
Searching...
No Matches
MuonHitCsvDumpConfig.py
Go to the documentation of this file.
1#Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
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
22def CsvMuonTruthSegmentDumpCfg(flags, name="CsvMuonTruthSegmentDumper", **kwargs):
23 result = ComponentAccumulator()
24 the_alg = CompFactory.MuonR4.TruthSegmentCsvDumperAlg(name = name, **kwargs)
25 result.addEventAlgo(the_alg, primary = True)
26 return result
CsvSpacePointDumpCfg(flags, name="CsvDriftCircleDumper", **kwargs)
CsvMuonTruthSegmentDumpCfg(flags, name="CsvMuonTruthSegmentDumper", **kwargs)