Skip to content
Snippets Groups Projects
Commit 1803de0a authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

feat: eicrecon for track_finding, track_fitting, ecal

parent 53f6d4a6
No related branches found
No related tags found
1 merge request!275feat: gaudirun to eicrecon for tracking benchmarks
This commit is part of merge request !275. Comments created here will be created in the context of that merge request.
...@@ -104,12 +104,12 @@ if 'rec' in procs: ...@@ -104,12 +104,12 @@ if 'rec' in procs:
os.environ['JUGGLER_COMPACT_PATH'] = args.compact os.environ['JUGGLER_COMPACT_PATH'] = args.compact
os.environ['JUGGLER_N_EVENTS'] = '{}'.format(args.nev) os.environ['JUGGLER_N_EVENTS'] = '{}'.format(args.nev)
for opt in opt_scripts: os.environ['JANA_HOME'] = '/usr/local/lib/EICrecon'
rec_cmd = ['gaudirun.py', os.path.join(sdir, 'options', opt)] rec_cmd = ['eicrecon', f'-Ppodio:output_file={rec_file}']
return_code = subprocess.run(rec_cmd).returncode return_code = subprocess.run(rec_cmd).returncode
if return_code is not None and return_code < 0: if return_code is not None and return_code < 0:
print('ERROR running juggler ({})!'.format(opt)) print('ERROR running eicrecon ({})!'.format(opt))
exit(1) exit(1)
process = subprocess.run(['rootls', '-t', rec_file]) process = subprocess.run(['rootls', '-t', rec_file])
......
...@@ -80,10 +80,9 @@ rootls -t ${JUGGLER_SIM_FILE} ...@@ -80,10 +80,9 @@ rootls -t ${JUGGLER_SIM_FILE}
if [[ -z "${ANALYSIS_ONLY}" ]] ; if [[ -z "${ANALYSIS_ONLY}" ]] ;
then then
# Need to figure out how to pass file name to juggler from the commandline JANA_HOME=/usr/local/lib/EICrecon eicrecon -Ppodio:output_file=${JUGGLER_REC_FILE} ${JUGGLER_SIM_FILE}
gaudirun.py benchmarks/track_finding/options/track_reconstruction.py if [ "$?" -ne "0" ] ; then
if [[ "$?" -ne "0" ]] ; then echo "ERROR running eicrecon"
echo "ERROR running juggler"
exit 1 exit 1
fi fi
fi fi
......
...@@ -83,10 +83,9 @@ rootls -t ${JUGGLER_SIM_FILE} ...@@ -83,10 +83,9 @@ rootls -t ${JUGGLER_SIM_FILE}
if [[ -z "${ANALYSIS_ONLY}" ]] ; if [[ -z "${ANALYSIS_ONLY}" ]] ;
then then
# Need to figure out how to pass file name to juggler from the commandline JANA_HOME=/usr/local/lib/EICrecon eicrecon -Ppodio:output_file=${JUGGLER_REC_FILE} ${JUGGLER_SIM_FILE}
gaudirun.py benchmarks/track_fitting/options/track_reconstruction.py if [ "$?" -ne "0" ] ; then
if [[ "$?" -ne "0" ]] ; then echo "ERROR running eicrecon"
echo "ERROR running juggler"
exit 1 exit 1
fi fi
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment