File indexing completed on 2026-05-23 08:12:15
0001
0002
0003 export USER="$(id -u -n)"
0004 export LOGNAME=${USER}
0005 export HOME=/sphenix/u/${LOGNAME}/macros/detectors/sPHENIX/
0006 export MYINSTALL=/sphenix/user/bkimelman/sPHENIX/install/
0007
0008 source /opt/sphenix/core/bin/sphenix_setup.sh -n
0009 source /opt/sphenix/core/bin/setup_local.sh $MYINSTALL
0010
0011 DIR=/sphenix/tg/tg01/jets/bkimelman/VandyDSTs_wEEC_3D_unfolding_kinematics_Apr27_2026/
0012
0013 pids=()
0014 for i in 12 20 30 40 50 60; do
0015 ../run_hadd_unfold.sh $i $DIR response kFull &
0016 pids+=($!)
0017 ../run_hadd_unfold.sh $i $DIR response kHalf &
0018 pids+=($!)
0019 done
0020
0021
0022 failed=0
0023 for pid in "${pids[@]}"; do
0024 if ! wait "$pid"; then
0025 echo "ERROR: job $pid failed" >&2
0026 failed=1
0027 fi
0028 done
0029 if (( failed )); then
0030 echo "One or more hadd jobs failed — aborting" >&2
0031 exit 1
0032 fi
0033
0034
0035
0036
0037
0038
0039
0040 hadd -f $DIR/response-all-fullClosure.root $DIR/response_Jet*-fullClosure.root
0041 rm $DIR/response_Jet*-fullClosure.root
0042
0043 hadd -f $DIR/response-all-halfClosure.root $DIR/response_Jet*-halfClosure.root
0044 rm $DIR/response_Jet*-halfClosure.root
0045
0046 hadd -f -j 8 -n 100 $DIR/data_measured-all.root $DIR/Data/data_measured_*.root
0047
0048 echo "done with all hadds"