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, executeTest
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
24 args = parser.parse_args()
25 flags, cfg = setupGeoR4TestCfg(args)
26
27 cfg.merge(RpcToyCablingJsonDumpAlgCfg(flags))
28 cfg.merge(MdtToyCablingJsonDumpAlgCfg(flags))
29 executeTest(cfg)
30
RpcToyCablingJsonDumpAlgCfg(flags, name="RpcToyCablingJsonDumpAlg", **kwargs)
MdtToyCablingJsonDumpAlgCfg(flags, name="MdtToyCablingJsonDumpAlg", **kwargs)