ATLAS Offline Software
MuonBucketDumpConfig.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 MuonBucketDumpCfg(flags, name="MuonBucketDumper", **kwargs):
7  result = ComponentAccumulator()
8  from MuonSpacePointFormation.SpacePointFormationConfig import MuonSpacePointFormationCfg
9  result.merge(MuonSpacePointFormationCfg(flags))
10  kwargs.setdefault("isMC", flags.Input.isMC)
11  from RngComps.RngCompsConfig import AthRNGSvcCfg
12  acc = ComponentAccumulator()
13  kwargs.setdefault("RndmSvc", acc.getPrimaryAndMerge(AthRNGSvcCfg(flags)))
14  the_alg = CompFactory.MuonR4.BucketDumperAlg(name=name, **kwargs)
15  result.addEventAlgo(the_alg, primary = True)
16  return result
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
MuonBucketDumpConfig.MuonBucketDumpCfg
def MuonBucketDumpCfg(flags, name="MuonBucketDumper", **kwargs)
Definition: MuonBucketDumpConfig.py:6
SpacePointFormationConfig.MuonSpacePointFormationCfg
def MuonSpacePointFormationCfg(flags)
Definition: SpacePointFormationConfig.py:20
RngCompsConfig.AthRNGSvcCfg
def AthRNGSvcCfg(flags, name="AthRNGSvc")
Definition: RngCompsConfig.py:51