Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starsim bfc tests #570

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
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}\")\'".format(**job._asdict()))
else:
print("root4star -b -q -l \'bfc.C({nevents}, \"{chopts}\", \"{inppath}/{inpfile}\")\'".format(**job._asdict()))
plexoos marked this conversation as resolved.
Show resolved Hide resolved
if args.attribute:
if args.attribute == 'fullpath':
print("{}/{}".format(job.inppath, job.inpfile))
Expand Down
28 changes: 28 additions & 0 deletions tests/joblist.json
Original file line number Diff line number Diff line change
Expand Up @@ -1123,5 +1123,33 @@
"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"
}

plexoos marked this conversation as resolved.
Show resolved Hide resolved
]