ATLAS Offline Software
MuonHitCsvDumpConfig.py
Go to the documentation of this file.
1 #Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 def CsvSpacePointDumpCfg(flags, name="CsvDriftCircleDumper", **kwargs):
7  result = ComponentAccumulator()
8  from MuonSpacePointFormation.SpacePointFormationConfig import MuonSpacePointFormationCfg
9  result.merge(MuonSpacePointFormationCfg(flags))
10  the_alg = CompFactory.MuonR4.SpacePointCsvDumperAlg(name=name, **kwargs)
11  result.addEventAlgo(the_alg, primary = True)
12  return result
13 
14 def CsvMuonSimHitDumpCfg(flags, name="CsvMuonSimHitDumper", **kwargs):
15  result = ComponentAccumulator()
16  truthContainers = []
17  if flags.Detector.GeometryMDT: truthContainers += ["xMdtSimHits"]
18  if flags.Detector.GeometryRPC: truthContainers += ["xMdtSimHits"]
19  if flags.Detector.GeometryTGC: truthContainers += ["xTgcSimHits"]
20  if flags.Detector.GeometrysTGC: truthContainers += ["xStgcSimHits"]
21  if flags.Detector.GeometryMM: truthContainers += ["xMmSimHits"]
22  kwargs.setdefault("MuonSimHitKey", truthContainers)
23  the_alg = CompFactory.MuonR4.SimHitCsvDumperAlg(name = name, **kwargs)
24  result.addEventAlgo(the_alg, primary = True)
25  return result
26 
27 def CsvMuonTruthSegmentDumpCfg(flags, name="CsvMuonTruthSegmentDumper", **kwargs):
28  result = ComponentAccumulator()
29  the_alg = CompFactory.MuonR4.TruthSegmentCsvDumperAlg(name = name, **kwargs)
30  result.addEventAlgo(the_alg, primary = True)
31  return result
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
MuonHitCsvDumpConfig.CsvMuonTruthSegmentDumpCfg
def CsvMuonTruthSegmentDumpCfg(flags, name="CsvMuonTruthSegmentDumper", **kwargs)
Definition: MuonHitCsvDumpConfig.py:27
MuonHitCsvDumpConfig.CsvMuonSimHitDumpCfg
def CsvMuonSimHitDumpCfg(flags, name="CsvMuonSimHitDumper", **kwargs)
Definition: MuonHitCsvDumpConfig.py:14
SpacePointFormationConfig.MuonSpacePointFormationCfg
def MuonSpacePointFormationCfg(flags)
Definition: SpacePointFormationConfig.py:20
MuonHitCsvDumpConfig.CsvSpacePointDumpCfg
def CsvSpacePointDumpCfg(flags, name="CsvDriftCircleDumper", **kwargs)
Definition: MuonHitCsvDumpConfig.py:6