Z->BB Strip

CAF script for 4.9.1_skim: run.caf

#!/bin/tcsh -f
#######################################
# CAF script for running/testing MC   #
#######################################

unsetenv USESHLIBS
source ~cdfsoft/cdf2.cshrc
# this is done in mapfset since it knows the cdfsoft version
#setup cdfsoft2 4.9.1

setenv SECTIONNUM $1
# map the fielset based on the section number
if ( -e ${PWD}/mapfset.csh ) then
    source ${PWD}/mapfset.csh
else 
    echo "Did not find section to fileset script, bailing"
    exit 0
endif

# set the input and output file
setenv OUTFILE er${FSET}_${SECTIONNUM}zbb1
if ( $HOST == "harv11.fnal.gov" ) then
    setenv LUMIFILE /data/harv12/c/lmiller/zbb/skim/lumi_files/er${FSET}_${SECTIONNUM}zbb1.runs
else
    setenv LUMIFILE er${FSET}_${SECTIONNUM}zbb1.runs
endif

#run
./StripZbbExe tcl/StripZbbExe.tcl >& ${OUTFILE}.log
set RETC=$status

if ( $HOST == "harv11.fnal.gov" ) then
    echo "Done with test."
else
    rm ./StripZbbExe
    rm -r ./tcl ./mapfset.csh ./run.caf
    rcp ${OUTFILE} cdfdata@fcdfdata029.fnal.gov:/cdf/scratch/cdfdata/Zbb/Raw/
    rm ./${OUTFILE}
#    rm ./${OUTFILE}.log
endif

exit $RETC


Maintained by Lester Miller lmiller@fnal.gov