4 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6 from AthenaConfiguration.ComponentFactory
import CompFactory
7 from RngComps.RngCompsConfig
import AthRNGSvcCfg
8 kwargs.setdefault(
"RndmSvc", result.getPrimaryAndMerge(
AthRNGSvcCfg(flags)))
9 the_alg = CompFactory.TgcDigtJitterTestAlg(name, **kwargs)
10 result.addEventAlgo(the_alg, primary =
True)
12 if __name__ ==
"__main__":
13 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
14 from MuonCondTest.MdtCablingTester
import SetupArgParser, setupServicesCfg
17 parser.add_argument(
"--jsonFile", default=
"TGC_Digitization_timejitter.json",
18 help=
"If the test is run multiple times to ensure reproducibility, then the dump of the test can be resteered")
19 parser.set_defaults(inputFile=[
"/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/MuonRecRTT/UnitTestInput/Run2MC.ESD.pool.root"])
20 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
30 cfg.getService(
'MessageSvc').setVerbose = [
"TgcDigitJitterData"]
31 from MuonConfig.MuonCondAlgConfig
import TgcDigitJitterCondAlgCfg
33 from MuonConfig.MuonGeometryConfig
import MuonIdHelperSvcCfg
36 cfg.printConfig(withDetails=
True, summariseProps=
True)
39 if not sc.isSuccess():
41 sys.exit(
"Execution failed")