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

feat: eicrecon for track_finding, track_fitting, ecal

parent c339777c
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !275. Comments created here will be created in the context of that merge request.
...@@ -99,12 +99,12 @@ if 'rec' in procs: ...@@ -99,12 +99,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