4 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory
import CompFactory
6 from MuonConfig.MuonCablingConfig
import NRPCCablingConfigCfg
10 event_algo = CompFactory.Muon.RpcCablingTestAlg(name, OutputLevel = DEBUG, **kwargs)
11 result.addEventAlgo(event_algo, primary =
True)
14 if __name__ ==
"__main__":
15 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
16 from MuonCondTest.MdtCablingTester
import SetupArgParser
18 parser.set_defaults(inputFile=[
"/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/MuonRecRTT/UnitTestInput/Run3MC.ESD.pool.root"])
19 args = parser.parse_args()
22 flags.Muon.enableNRPC =
True
23 flags.Concurrency.NumThreads = args.threads
24 flags.Concurrency.NumConcurrentEvents = args.threads
25 flags.Output.ESDFileName = args.output
26 flags.Input.Files = args.inputFile
29 from MuonCondTest.MdtCablingTester
import setupServicesCfg
33 if len(args.cablingMap):
34 cfg.getCondAlgo(
"MuonNRPC_CablingAlg").JSONFile = args.cablingMap
35 cfg.getService(
"MessageSvc").debugLimit = 2147483647
36 cfg.getService(
"MessageSvc").verboseLimit = 2147483647
37 cfg.getService(
"MessageSvc").infoLimit = 2147483647
39 cfg.printConfig(withDetails=
True, summariseProps=
True)
43 if not sc.isSuccess():
45 sys.exit(
"Execution failed")