Z->BB Strip

CAF script for 4.9.1hpt1_ucntuple: 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 OUTFILE ucnt${FSET}_${SECTIONNUM}zbb1.root
setenv INFILE root://fcdfdata029.fnal.gov//cdf/scratch/cdfdata/Zbb/Production4.9.1/prod${FSET}_${SECTIONNUM}zbb1
setenv LOGFILE ucnt${FSET}_${SECTIONNUM}zbb1.log

#run
./ucntuple.exe tcl/run.tcl >& ${LOGFILE}
set RETC=$status

rm ./ucntuple.exe
rm -r ./tcl ./mapfset.csh ./run.caf
rcp ${OUTFILE} cdfdata@fcdfdata029.fnal.gov:/cdf/scratch/cdfdata/Zbb/UCNtuple4.9.1_v2/
rcp ${OUTFILE}.log cdfdata@fcdfdata029.fnal.gov:/cdf/scratch/cdfdata/Zbb/UCNtuple4.9.1_v2/
#rm ./${OUTFILE}
#    rm ./${OUTFILE}.log

exit $RETC


Maintained by Lester Miller lmiller@fnal.gov