#!/bin/tcsh if ( ! $?JOB_ID ) setenv JOB_ID 1234 setenv JOB_ID `basename $JOB_ID .farmpbs.jlab.org` set workroot=/work/halld/home/davidl/CDC/2008_08_20_wire_align1.1/option-2 source ${workroot}/set_env.csh set workdisk=${workroot}/set1 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 rm -f control.in cat ${workroot}/farm/control.in.tmpl | sed -e s/XXX/${JOB_ID}/g > control.in echo "hdgeant output redirected to log file: ${workdisk}/hdgeant_${JOB_ID}.log" ${bindir}/hdgeant >& ${workdisk}/hdgeant_${JOB_ID}.log cp hdgeant*.hddm $workdisk cp control.in ${workdisk}/control.in.${JOB_ID} # Run hd_root ln -s /group/halld/WWW/datatables/hd_res_charged.root . echo "hd_root output redirected to log file: ${workdisk}/hd_root_${JOB_ID}.log" setenv JANA_PLUGIN_PATH ${libdir} ${bindir}/hd_root --plugin=trackeff_hists2 -PDEFTAG:DTrack=ALT1 -PDEFTAG:DTrackCandidate=CDC hdgeant*.hddm -o hd_root_${JOB_ID}.root >& ${workdisk}/hd_root_${JOB_ID}.log cp hd_root*.root $workdisk