ATLAS Offline Software
MuonBucketDumpConfig.py
Go to the documentation of this file.
1 #Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 
7 def MuonHitDumperCfg(flags, name="MuonHitDumper", **kwargs):
8  result = ComponentAccumulator()
9  spCont = []
10  if flags.Detector.GeometryMDT or flags.Detector.GeometryRPC or flags.Detector.GeometryTGC:
11  spCont+=["MuonSpacePoints"]
12  if flags.Detector.GeometryMM or flags.Detector.GeometrysTGC:
13  spCont+=["NswSpacePoints"]
14  kwargs.setdefault("SpacePointKeys", spCont)
15  result.addEventAlgo(CompFactory.MuonR4.MlHitDumperAlg(name, **kwargs))
16  return result
17 
18 def 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
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
MuonBucketDumpConfig.MuonBucketDumpCfg
def MuonBucketDumpCfg(flags, name="MuonBucketDumper", **kwargs)
Definition: MuonBucketDumpConfig.py:18
SpacePointFormationConfig.MuonSpacePointFormationCfg
def MuonSpacePointFormationCfg(flags)
Definition: SpacePointFormationConfig.py:20
MuonBucketDumpConfig.MuonHitDumperCfg
def MuonHitDumperCfg(flags, name="MuonHitDumper", **kwargs)
Definition: MuonBucketDumpConfig.py:7
RngCompsConfig.AthRNGSvcCfg
def AthRNGSvcCfg(flags, name="AthRNGSvc")
Definition: RngCompsConfig.py:51