#!/bin/tcsh if ( ! $?JOB_ID ) setenv JOB_ID 1234 setenv JOB_ID `basename $JOB_ID .farmpbs.jlab.org` set workroot=/work/halld/home/davidl/2009.08.07.track_resolutions source ${workroot}/setenv.csh set workdisk=${workroot}/set1_proton set bindir=${workroot}/bin/Linux_Fedora8-i686-gcc4.1.2 set libdir=${workroot}/lib/Linux_Fedora8-i686-gcc4.1.2 mkdir -p $workdisk env > $workdisk/env.${JOB_ID} mkdir tmp${JOB_ID} cd tmp${JOB_ID} ####################### Run hdgeant ########################## # Run hdgeant rm -f control.in cat ${workroot}/farm/control.in.proton | sed -e s/XXX/${JOB_ID}/g > ${workdisk}/control.in.${JOB_ID} ln -s ${workdisk}/control.in.${JOB_ID} control.in echo "hdgeant output redirected to log file: ${workdisk}/hdgeant_${JOB_ID}.log" ${bindir}/hdgeant >& ${workdisk}/hdgeant_${JOB_ID}.log # Smear drift chamber hits ${bindir}/mcsmear -n hdgeant*.hddm # copy output file to work disk cp hdgeant*smeared.hddm $workdisk ####################### ALT1 no truth ######################## # Run hd_root without truth information echo "hd_root output redirected to log file: ${workdisk}/ALT1_proton_no_truth${JOB_ID}.log" ${bindir}/hd_root --nthreads=1 --config=${workroot}/farm/ALT1_proton_no_truth.conf hdgeant*smeared.hddm -o ALT1_proton_no_truth${JOB_ID}.root >& ${workdisk}/ALT1_proton_no_truth${JOB_ID}.log cp ALT1_proton_no_truth${JOB_ID}.root $workdisk ####################### ALT1 with truth ######################## # Run hd_root with truth information echo "hd_root output redirected to log file: ${workdisk}/ALT1_proton_with_truth${JOB_ID}.log" ${bindir}/hd_root --nthreads=1 --config=${workroot}/farm/ALT1_proton_with_truth.conf hdgeant*smeared.hddm -o ALT1_proton_with_truth${JOB_ID}.root >& ${workdisk}/ALT1_proton_with_truth${JOB_ID}.log cp ALT1_proton_with_truth${JOB_ID}.root $workdisk ####################### Kalman ######################## # Run hd_root with Kalman fitter #echo "hd_root output redirected to log file: ${workdisk}/Kalman_proton${JOB_ID}.log" #${bindir}/hd_root --nthreads=1 --config=${workroot}/farm/Kalman_proton.conf hdgeant*smeared.hddm -o Kalman_proton${JOB_ID}.root >& ${workdisk}/Kalman_proton${JOB_ID}.log #cp Kalman_proton${JOB_ID}.root $workdisk