4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from MuonCondTest.MdtCablingTester
import setupServicesCfg
7 from MuonConfig.MuonCablingConfig
import NswCablingCfg
9 result.merge(
NswCablingCfg(flags, JSONFile =
"MMGZebraShift.json", OutputLevel = DEBUG ))
10 event_algo = CompFactory.MMCablingTestAlg(name, OutputLevel = DEBUG)
11 result.addEventAlgo(event_algo, primary =
True)
14 if __name__ ==
"__main__":
15 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
16 from MuonCondTest.MdtCablingTester
import SetupArgParser
18 parser.set_defaults(inputFile=[
"/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/MuonRecRTT/UnitTestInput/Run3Data.ESD.pool.root"])
19 args = parser.parse_args()
22 os.system(
"python -m MuonMM_Cabling.zebraShift")
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 cfg.printConfig(withDetails=
True, summariseProps=
True)
36 if not sc.isSuccess():
38 sys.exit(
"Execution failed")