2 from AthenaConfiguration.ComponentFactory
import CompFactory
3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
7 event_algo = CompFactory.MuonGM.NSWGeoPlottingAlg(name, **kwargs)
8 result.addEventAlgo(event_algo, primary =
True)
11 if __name__ ==
"__main__":
12 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
13 from MuonCondTest.MdtCablingTester
import SetupArgParser
15 parser.set_defaults(inputFile=[
"/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/MuonRecRTT/EVGEN_ParticleGun_FourMuon_Pt10to500.root"])
16 args = parser.parse_args()
19 flags.Concurrency.NumThreads = args.threads
20 flags.Concurrency.NumConcurrentEvents = args.threads
21 flags.Output.ESDFileName = args.output
22 flags.Input.Files = args.inputFile
23 flags.Muon.applyMMPassivation =
True
24 from AthenaConfiguration.TestDefaults
import defaultConditionsTags, defaultGeometryTags
25 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN3
26 flags.IOVDb.GlobalTag = defaultConditionsTags.RUN3_MC
29 from MuonCondTest.MdtCablingTester
import setupServicesCfg
34 msgService = cfg.getService(
'MessageSvc')
36 cfg.printConfig(withDetails=
True, summariseProps=
True)
41 if not sc.isSuccess():
43 sys.exit(
"Execution failed")