ATLAS Offline Software
Loading...
Searching...
No Matches
dumpR4ToyCablings.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2from AthenaConfiguration.ComponentFactory import CompFactory
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4
5def RpcToyCablingJsonDumpAlgCfg(flags, name="RpcToyCablingJsonDumpAlg", **kwargs):
6 result = ComponentAccumulator()
7 the_alg = CompFactory.Muon.RpcToyCablingJsonDumpAlg(name, **kwargs)
8 result.addEventAlgo(the_alg, primary = True)
9 return result
10
11def 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
16if __name__=="__main__":
17 from MuonGeoModelTestR4.testGeoModel import setupGeoR4TestCfg, SetupArgParser
18 from MuonConfig.MuonConfigUtils import executeTest
19 parser = SetupArgParser()
20 parser.set_defaults(nEvents = 1)
21 parser.set_defaults(noMM=True)
22 parser.set_defaults(noSTGC=True)
23 parser.set_defaults(noTgc=True)
24
25 args = parser.parse_args()
26 flags, cfg = setupGeoR4TestCfg(args)
27
28 cfg.merge(RpcToyCablingJsonDumpAlgCfg(flags))
29 cfg.merge(MdtToyCablingJsonDumpAlgCfg(flags))
30 executeTest(cfg)
31
RpcToyCablingJsonDumpAlgCfg(flags, name="RpcToyCablingJsonDumpAlg", **kwargs)
MdtToyCablingJsonDumpAlgCfg(flags, name="MdtToyCablingJsonDumpAlg", **kwargs)