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  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 
22 def 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
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
MuonHitCsvDumpConfig.CsvMuonTruthSegmentDumpCfg
def CsvMuonTruthSegmentDumpCfg(flags, name="CsvMuonTruthSegmentDumper", **kwargs)
Definition: MuonHitCsvDumpConfig.py:22
SpacePointFormationConfig.MuonSpacePointFormationCfg
def MuonSpacePointFormationCfg(flags)
Definition: SpacePointFormationConfig.py:20
MuonHitCsvDumpConfig.CsvSpacePointDumpCfg
def CsvSpacePointDumpCfg(flags, name="CsvDriftCircleDumper", **kwargs)
Definition: MuonHitCsvDumpConfig.py:6