8 parser = argparse.ArgumentParser(description=
'')
9 parser.add_argument(
'--test',dest=
'test', action=
'store_true')
10 parser.add_argument(
'inname', metavar=
'inputfile', type=str, nargs=
'+',
11 help=
'input file name (extrapolator files or directory')
12 parser.add_argument(
'--outfilelabel', action=
'store', type=str,
13 help=
'label to start outfile with', default=
"Unlabeled")
16 args = parser.parse_args()
19 retv=os.system(command)
24 keylayers=[
"pixel,barrel,0",
30 configs=[
"--nslices 6",
33 for keylayer,config
in itertools.product(keylayers,configs):
34 logname = args.outfilelabel+
"_"+keylayer.replace(
",",
"_")+
"_"+config.replace(
"--",
"").
replace(
" ",
"")+
".log"
35 runAbortIfFails(
"python module_driven_slicing.py --keylayer %s %s --outfilelabel %s --trim 0.01 %s > %s" %
36 (keylayer,config,args.outfilelabel,
" ".
join(args.inname),logname))