13def CommonTestArgumentParser(prog):
14 """Common overlay test argument parser"""
15 parser = ArgumentParser(prog=prog)
16 parser.add_argument("-d", "--data", default=False,
17 action="store_true", help="Run data overlay")
18 parser.add_argument("-n", "--maxEvents", default=3, type=int,
19 help="The number of events to run. 0 skips execution")
20 parser.add_argument("-t", "--threads", default=1, type=int,
21 help="The number of concurrent threads to run. 0 uses serial Athena.")
22 parser.add_argument("-p", "--processes", default=0, type=int,
23 help="The number of concurrent processes to run. 0 uses serial Athena.")
24 parser.add_argument("-c", "--concurrent", default=0, type=int,
25 help="The number of concurrent events to run. 0 uses the same as number of threads.")
26 parser.add_argument("-V", "--verboseAccumulators", default=False, action="store_true",
27 help="Print full details of the AlgSequence for each accumulator")
28 parser.add_argument("-S", "--verboseStoreGate", default=False, action="store_true",
29 help="Dump the StoreGate(s) each event iteration")
30 parser.add_argument("-o", "--output", default='', type=str,
31 help="Output RDO file")
32 parser.add_argument("-s", "--outputSig", default='', type=str,
33 help="Output RDO_SGNL file")
34 parser.add_argument("-r", "--run", default=LHCPeriod.Run2,
35 type=LHCPeriod, choices=list(LHCPeriod))
36 parser.add_argument("--disableTruth", default=False, action="store_true",
37 help="Disable truth overlay")
38 parser.add_argument("--debug", default='', type=str,
39 choices=DbgStage.allowed_values,
40 help="Debugging flag: " + ','.join (DbgStage.allowed_values))
41 return parser
42
43