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
......@@ -99,12 +99,12 @@ if 'rec' in procs:
os.environ['JUGGLER_COMPACT_PATH'] = args.compact
os.environ['JUGGLER_N_EVENTS'] = '{}'.format(args.nev)
for opt in opt_scripts:
rec_cmd = ['gaudirun.py', os.path.join(sdir, 'options', opt)]
return_code = subprocess.run(rec_cmd).returncode
if return_code is not None and return_code < 0:
print('ERROR running juggler ({})!'.format(opt))
exit(1)
os.environ['JANA_HOME'] = '/usr/local/lib/EICrecon'
rec_cmd = ['eicrecon', f'-Ppodio:output_file={rec_file}']
return_code = subprocess.run(rec_cmd).returncode
if return_code is not None and return_code < 0:
print('ERROR running eicrecon ({})!'.format(opt))
exit(1)
process = subprocess.run(['rootls', '-t', rec_file])
......
......@@ -80,10 +80,9 @@ rootls -t ${JUGGLER_SIM_FILE}
if [[ -z "${ANALYSIS_ONLY}" ]] ;
then
# Need to figure out how to pass file name to juggler from the commandline
gaudirun.py benchmarks/track_finding/options/track_reconstruction.py
if [[ "$?" -ne "0" ]] ; then
echo "ERROR running juggler"
JANA_HOME=/usr/local/lib/EICrecon eicrecon -Ppodio:output_file=${JUGGLER_REC_FILE} ${JUGGLER_SIM_FILE}
if [ "$?" -ne "0" ] ; then
echo "ERROR running eicrecon"
exit 1
fi
fi
......
......@@ -83,10 +83,9 @@ rootls -t ${JUGGLER_SIM_FILE}
if [[ -z "${ANALYSIS_ONLY}" ]] ;
then
# Need to figure out how to pass file name to juggler from the commandline
gaudirun.py benchmarks/track_fitting/options/track_reconstruction.py
if [[ "$?" -ne "0" ]] ; then
echo "ERROR running juggler"
JANA_HOME=/usr/local/lib/EICrecon eicrecon -Ppodio:output_file=${JUGGLER_REC_FILE} ${JUGGLER_SIM_FILE}
if [ "$?" -ne "0" ] ; then
echo "ERROR running eicrecon"
exit 1
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment