ATLAS Offline Software
dumpR4ToyCablings.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 from AthenaConfiguration.ComponentFactory import CompFactory
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 
5 def RpcToyCablingJsonDumpAlgCfg(flags, name="RpcToyCablingJsonDumpAlg", **kwargs):
6  result = ComponentAccumulator()
7  the_alg = CompFactory.RpcToyCablingJsonDumpAlg(name, **kwargs)
8  result.addEventAlgo(the_alg, primary = True)
9  return result
10 
11 def MdtToyCablingJsonDumpAlgCfg(flags, name="MdtToyCablingJsonDumpAlg", **kwargs):
12  result = ComponentAccumulator()
13  the_alg = CompFactory.MdtToyCablingJsonDumpAlg(name, **kwargs)
14  result.addEventAlgo(the_alg, primary = True)
15  return result
16 if __name__=="__main__":
17  from MuonGeoModelTestR4.testGeoModel import setupGeoR4TestCfg, SetupArgParser, executeTest, geoModelFileDefault
18  parser = SetupArgParser()
19  parser.set_defaults(nEvents = 1)
20  parser.set_defaults(noMM=True)
21  parser.set_defaults(noSTGC=True)
22  parser.set_defaults(noTgc=True)
23  parser.add_argument("--setupRun4", default=False, action="store_true")
24 
25  args = parser.parse_args()
26  args.geoModelFile = geoModelFileDefault(args.setupRun4)
27  flags, cfg = setupGeoR4TestCfg(args)
28 
29  cfg.merge(RpcToyCablingJsonDumpAlgCfg(flags))
30  cfg.merge(MdtToyCablingJsonDumpAlgCfg(flags))
31  executeTest(cfg)
32 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
dumpR4ToyCablings.MdtToyCablingJsonDumpAlgCfg
def MdtToyCablingJsonDumpAlgCfg(flags, name="MdtToyCablingJsonDumpAlg", **kwargs)
Definition: dumpR4ToyCablings.py:11
python.MdtCablingTester.SetupArgParser
def SetupArgParser()
Definition: MdtCablingTester.py:3
python.testGeoModel.geoModelFileDefault
def geoModelFileDefault(useR4Layout=False)
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/python/testGeoModel.py:5
python.testGeoModel.executeTest
def executeTest(cfg)
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/python/testGeoModel.py:193
python.testGeoModel.setupGeoR4TestCfg
def setupGeoR4TestCfg(args, flags=None)
Definition: MuonPhaseII/MuonDetDescr/MuonGeoModelTestR4/python/testGeoModel.py:103
dumpR4ToyCablings.RpcToyCablingJsonDumpAlgCfg
def RpcToyCablingJsonDumpAlgCfg(flags, name="RpcToyCablingJsonDumpAlg", **kwargs)
Definition: dumpR4ToyCablings.py:5