Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-11-19 00:43:23

0001 #!/bin/tcsh
0002 
0003 eval `scram runtime -csh`
0004 
0005 echo
0006 date +%F\ %a\ %T
0007 echo
0008 echo "Existing cfg files:"
0009 ls -l OnLine*.py
0010 
0011 echo
0012 echo "Creating offline cfg files with cmsDriver"
0013 echo "./cmsDriver.csh "$1
0014 time  ./cmsDriver.csh $1
0015 
0016 echo
0017 date +%F\ %a\ %T
0018 echo
0019 echo "Running selected cfg files from:"
0020 pwd
0021 
0022 rm -f                           ./runOne.log 
0023 time ./runOne.csh DATA    $1 >& ./runOne.log &
0024 time ./runOne.csh MC      $1
0025 
0026   set N = 0
0027   cp -f ./runOne.log ./runOne.tmp  
0028   grep -q Finished   ./runOne.tmp
0029   set F = $?
0030 
0031 while ( $F )
0032   awk "{if (NR>$N) {print}}"  ./runOne.tmp
0033   set N = `cat ./runOne.tmp | wc -l`
0034   sleep 13
0035   cp -f ./runOne.log ./runOne.tmp  
0036   grep -q Finished   ./runOne.tmp
0037   set F = $?
0038 end
0039 
0040 wait
0041 
0042   awk "{if (NR>$N) {print}}"  ./runOne.log
0043   rm -f ./runOne.{log,tmp}
0044 
0045 echo
0046 echo "Resulting log files:"
0047 ls -l *.log
0048 echo
0049 date +%F\ %a\ %T