Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:44:58

0001 #!/bin/tcsh
0002 
0003 # working dir
0004 set workdir = $1
0005 
0006 # The batch job directory (will vanish after job end):
0007 set curdir = `pwd`
0008 
0009 cp <ODIR>/../main/IOIteration*.root $curdir/
0010 cp <ODIR>/../main/IOAlignedPositions*.root $curdir/
0011 
0012 # printing
0013 echo Setting up CMSSW environment in $workdir
0014 echo Running in $curdir...
0015 echo $curdir contains:
0016 ls
0017 
0018 # set up the CMS environment (choose your release and working area):
0019 cd $workdir
0020 eval `scramv1 runtime -csh`
0021 setenv STAGE_SVCCLASS cmscaf
0022 rehash
0023 
0024 if (<PROXYREDIRECT> == 1) then
0025   setenv X509_USER_PROXY <ODIR>/../.user_proxy
0026 endif
0027 
0028 cd $curdir
0029 # Execute
0030 time cmsRun <ODIR>/<JOBTYPE>
0031 echo  $? >  <ODIR>/DONE
0032 
0033 if(`cat <ODIR>/DONE | cut -b1` == 0) then 
0034 exit 0
0035 else
0036 exit 1
0037 endif