#!/bin/sh # Time-stamp: <2003-07-28 22:15:07 yuji> # execute TopFind from production output exe=${HOME}/spool/spin/herwig/workrel/bin/Linux2-KCC_4_0/TopFind #scriptdir=${HOME}/spool/cdfsim/myscripts scriptdir=${HOME}/spool/spin/herwig/scripts # # # export scriptdir tcl=${scriptdir}/topevent_4111.tcl pdir="p$1" if [ ! -d ${pdir} ]; then echo "Dir ${pdir} doesn't exist. Abort." exit fi cd ${pdir} for idx in *.remake; do export topfind_output_file=${idx%.*}.topfind export topfind_output_root=${idx%.*}_ntuple.root export topfind_input_file=${idx} /bin/nice -n 19 ${exe} ${tcl} > topfind.$1.log 2>&1 done touch ../Done.topfind.$1 #EOF