Z->BB Strip

CAF script for 4.9.1hpt1: 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

# setup rcp
setenv $HOME $PWD
#rcp_init_personal
setenv RCP_DATABASE_PATH level3/FileSystemDB:official/FileSystemDB:personal/FileSystemDB
setenv RCP_FILESYSTEMDB_WRITABLE_DIR ./rcpdb
rcp_init_writable

# set the input and output file
setenv PRODFILE prod${FSET}_${SECTIONNUM}zbb1
setenv INFILE root://fcdfdata029.fnal.gov//cdf/scratch/cdfdata/Zbb/Raw/er${FSET}_${SECTIONNUM}zbb1

#run
./ProductionExe tcl/ProductionExe.tcl >& ${PRODFILE}.log
set RETC=$status

rm ./ProductionExe
rm -r ./tcl ./mapfset.csh ./run.caf
rcp ${PRODFILE} cdfdata@fcdfdata029.fnal.gov:/cdf/scratch/cdfdata/Zbb/Production4.9.1/
rcp ${PRODFILE}.log cdfdata@fcdfdata029.fnal.gov:/cdf/scratch/cdfdata/Zbb/Production4.9.1/
rm ./${PRODFILE}
#    rm ./${PRODFILE}.log
endif

exit $RETC


Maintained by Lester Miller lmiller@fnal.gov