4 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6 from AthenaConfiguration.ComponentFactory
import CompFactory
7 from MuonConfig.MuonCondAlgConfig
import MdtCondDbAlgCfg
9 from MuonConfig.MuonGeometryConfig
import MuonIdHelperSvcCfg
11 the_alg = CompFactory.MdtConditionsTestAlg(name, **kwargs)
12 result.addEventAlgo(the_alg, primary =
True)
14 if __name__ ==
"__main__":
15 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
16 from MuonCondTest.MdtCablingTester
import SetupArgParser, setupServicesCfg
19 parser.add_argument(
"--LogName", default=
"LogFile",
20 help=
"If the test is run multiple times to ensure reproducibility, then the dump of the test can be resteered")
21 parser.set_defaults(inputFile=[
"/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/MuonRecRTT/UnitTestInput/Run3MC.ESD.pool.root"])
22 args = parser.parse_args()
25 flags.Concurrency.NumThreads = args.threads
26 flags.Concurrency.NumConcurrentEvents = args.threads
27 flags.Output.ESDFileName = args.output
28 flags.Input.Files = args.inputFile
32 msgService = cfg.getService(
'MessageSvc')
33 msgService.Format =
"S:%s E:%e % F%128W%S%7W%R%T %0W%M"
36 cfg.printConfig(withDetails=
True, summariseProps=
True)
41 if not sc.isSuccess():
43 sys.exit(
"Execution failed")