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

feat: DIS: replace gaudirun with eicrecon

parent d27f7830
No related branches found
No related tags found
1 merge request!185feat: DIS: replace gaudirun with eicrecon
...@@ -79,25 +79,12 @@ fi ...@@ -79,25 +79,12 @@ fi
## ============================================================================= ## =============================================================================
## Step 3: Run digitization & reconstruction ## Step 3: Run digitization & reconstruction
echo "Running the digitization and reconstruction" echo "Running the digitization and reconstruction"
## FIXME Need to figure out how to pass file name to juggler from the commandline JANA_HOME=/usr/local/lib/EICrecon eicrecon ${SIM_FILE}
## the tracker_reconstruction.py options file uses the following environment mv eicrecon.root ${REC_FILE}
## variables:
## - JUGGLER_SIM_FILE: input detector simulation
## - JUGGLER_REC_FILE: output reconstructed data
## - JUGGLER_N_EVENTS: number of events to process (part of global environment)
## - DETECTOR: detector package (part of global environment)
export JUGGLER_SIM_FILE=${SIM_FILE}
export JUGGLER_REC_FILE=${REC_FILE}
for rec in options/*.py ; do
unset tag
[[ $(basename ${rec} .py) =~ (.*)\.(.*) ]] && tag=".${BASH_REMATCH[2]}"
JUGGLER_REC_FILE=${JUGGLER_REC_FILE/.root/${tag:-}.root} \
gaudirun.py ${rec}
if [ "$?" -ne "0" ] ; then if [ "$?" -ne "0" ] ; then
echo "ERROR running juggler" echo "ERROR running eicrecon"
exit 1 exit 1
fi fi
done
## ============================================================================= ## =============================================================================
## Step 4: Analysis ## Step 4: Analysis
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment