Warning, /RecoEgamma/Configuration/test/electronBsub is written in an unsupported language. File is not indexed.
0001 #!/usr/bin/env sh
0002
0003 export MYQUEUE=$1
0004 shift
0005
0006 export CURRENT_DIR=`pwd`
0007 export JOB_SCRIPT=bsub.${MY_ENV_NAME}.sh
0008 export JOB_DIR=electronBsub.${MY_ENV_NAME}.$$
0009 export JOB_CASTOR=${MY_OUTPUT_CASTOR_DIR}
0010 mkdir -p ${JOB_DIR}
0011 nsmkdir -p ${JOB_CASTOR}
0012
0013 cat << EOF > ${JOB_DIR}/${JOB_SCRIPT}
0014 scram project CMSSW ${MY_CMSSW_RELEASE}
0015 cd ${MY_CMSSW_RELEASE}/src
0016 eval \`scram runtime -sh\`
0017 cp -r ${CURRENT_DIR}/../../../RecoEgamma .
0018 scram b
0019 cd RecoEgamma/Configuration/test
0020 $* && rfcp *.root ${JOB_CASTOR}
0021 EOF
0022
0023 cd ${JOB_DIR}
0024 chmod a+x ${JOB_SCRIPT}
0025 bsub -q ${MYQUEUE} ${JOB_SCRIPT}
0026