2 from AthenaConfiguration.ComponentFactory
import CompFactory
3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
7 event_algo = CompFactory.NSWGeoPlottingAlg(name, **kwargs)
8 result.addEventAlgo(event_algo, primary =
True)
13 event_algo = CompFactory.sTgcPadPlottingAlg(name, **kwargs)
14 result.addEventAlgo(event_algo, primary =
True)
18 if __name__ ==
"__main__":
19 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
20 from MuonCondTest.MdtCablingTester
import SetupArgParser
22 parser.set_defaults(inputFile=[
"/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/MuonRecRTT/EVGEN_ParticleGun_FourMuon_Pt10to500.root"])
23 args = parser.parse_args()
26 flags.Concurrency.NumThreads = args.threads
27 flags.Concurrency.NumConcurrentEvents = args.threads
28 flags.Output.ESDFileName = args.output
29 flags.Input.Files = args.inputFile
30 flags.Muon.applyMMPassivation =
True
31 from AthenaConfiguration.TestDefaults
import defaultConditionsTags, defaultGeometryTags
32 flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN3
33 flags.IOVDb.GlobalTag = defaultConditionsTags.RUN3_MC
36 from MuonCondTest.MdtCablingTester
import setupServicesCfg
42 msgService = cfg.getService(
'MessageSvc')
43 msgService.Format =
"S:%s E:%e % F%128W%S%7W%R%T %0W%M"
45 cfg.printConfig(withDetails=
True, summariseProps=
True)
50 if not sc.isSuccess():
52 sys.exit(
"Execution failed")