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