4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from MuonCondTest.MdtCablingTester
import setupServicesCfg
7 from MuonConfig.MuonCablingConfig
import MDTCablingConfigCfg
9 event_algo = CompFactory.MdtCablingJsonDumpAlg(name,**kwargs)
10 result.addEventAlgo(event_algo, primary =
True)
13 if __name__ ==
"__main__":
14 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
15 from MuonCondTest.MdtCablingTester
import SetupArgParser
17 parser.set_defaults(output=
"SummaryFile.txt")
18 parser.set_defaults(mezzMap=
"MezzMapping.json")
19 parser.set_defaults(cablingMap=
"MdtCabling.json")
21 args = parser.parse_args()
23 flags.Concurrency.NumThreads = args.threads
24 flags.Concurrency.NumConcurrentEvents = args.threads
25 flags.Output.ESDFileName = args.output
26 flags.Input.Files = args.inputFile
27 flags.GeoModel.AtlasVersion = args.geometry
28 flags.IOVDb.GlobalTag = args.conditionsTag
32 SummaryFile=args.output,
33 OutMezzanineJSON=args.mezzMap,
34 OutCablingJSON=args.cablingMap)
35 cfg.printConfig(withDetails=
True, summariseProps=
True)
39 if not sc.isSuccess():
41 sys.exit(
"Execution failed")