Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:31:19

0001 #!/bin/csh -f
0002 
0003 set cfgFile = $1
0004 set runNum = $2
0005 echo CFG FILE: ${cfgFile}
0006 setenv outDir /castor/cern.ch/user/j/jbrooke/trigger/CRAFT/Calo
0007 setenv runDir ${LS_SUBCWD}
0008 setenv tmpDir /tmp
0009 echo TEMPORARY DIRECTORY: ${tmpDir}
0010 echo RUN DIRECTORY: ${runDir}
0011 
0012 
0013 # setup
0014 cd ${runDir}
0015 eval `scramv1 runtime -csh`
0016 
0017 # move to tmp dir and copy job config
0018 cd ${tmpDir}
0019 cp ${runDir}/${cfgFile} .
0020 
0021 # run job
0022 cmsRun ${cfgFile} >& ${runNum}.log
0023 
0024 # copy output to CASTOR
0025 rfcp ${runNum}.root ${outDir}/.
0026 rfcp ${cfgFile} ${outDir}/.
0027 rfcp ${runNum}.log ${outDir}/.
0028 
0029 # cleanup
0030 rm -f ${runNum}.root
0031 rm -f ${runNum}.log
0032 rm -f ${cfgFile}
0033 rm -f core.*