4 from argparse
import ArgumentParser
6 parser = ArgumentParser()
7 parser.add_argument(
"-o",
"--output", dest=
"output", default=
'', help=
"Text file containing each cabling channel", metavar=
"FILE")
8 parser.add_argument(
"--inputFile",
"-i", default=[
"/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/MuonRecRTT/UnitTestInput/Run3MC.ESD.pool.root"],
9 help=
"Input file to run on ", nargs=
"+")
13 if __name__ ==
"__main__":
14 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
18 flags.Concurrency.NumThreads = 1
19 flags.Concurrency.NumConcurrentEvents = 1
21 flags.Scheduler.CheckDependencies =
True
22 flags.Scheduler.ShowDataDeps =
True
23 flags.Scheduler.ShowDataFlow =
True
24 flags.Scheduler.ShowControlFlow =
True
25 flags.Scheduler.EnableVerboseViews =
True
26 flags.Scheduler.AutoLoadUnmetDependencies =
True
29 flags.Output.ESDFileName = args.output
30 flags.Input.Files = args.inputFile
33 from MuonCondTest.MdtCablingTester
import setupServicesCfg
35 from MuonConfig.MuonSegmentFindingConfig
import MuonLayerHoughAlgCfg, MuonLayerHoughToolCfg
37 MuonLayerScanTool=cfg.popToolsAndMerge(
41 from MuonHoughDataNtuple.MuonHoughDataNtuple
import MakeMuonHoughDataNtuple
43 cfg.printConfig(withDetails=
True, summariseProps=
True)
47 if not sc.isSuccess():
49 sys.exit(
"Execution failed")