Skip to content
Open
6 changes: 5 additions & 1 deletion tests/executest.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ def _json_object_hook(d):
for job in joblist:
if job.jobid != args.jobid: continue
if args.description: print("{descr}".format(**job._asdict()))
if args.command: print("root4star -b -q -l \'bfc.C({nevents}, \"{chopts}\", \"{inppath}/{inpfile}\")\'".format(**job._asdict()))
if args.command:
if job.inpfile:
print("root4star -b -q -l \'bfc.C({nevents}, \"{chopts}\", \"{inppath}/{inpfile}\")\'".format(**job._asdict()))
else:
print("root4star -b -q -l \'bfc.C({nevents}, \"{chopts}\")\'".format(**job._asdict()))
if args.attribute:
if args.attribute == 'fullpath':
print("{}/{}".format(job.inppath, job.inpfile))
Expand Down
27 changes: 27 additions & 0 deletions tests/joblist.json
Original file line number Diff line number Diff line change
Expand Up @@ -1123,5 +1123,32 @@
"inppath": "/star/rcf/test/daq/2023/072/23072022/",
"outpath": "",
"nevents": "200"
},
{
"jobid": "126",
"descr": "2023 simple simulation 80 muons",
"chopts": "sdt20230214 gstar",
"inpfile": "",
"inppath": "",
"outpath": "",
"nevents": "50"
},
{
"jobid": "127",
"descr": "2023 pythia simulation",
"chopts": "sdt20230214 pythia",
"inpfile": "",
"inppath": "",
"outpath": "",
"nevents": "50"
},
{
"jobid": "128",
"descr": "2023 hijing simulation",
"chopts": "sdt20230214 hijing",
"inpfile": "",
"inppath": "",
"outpath": "",
"nevents": "50"
}
]