data analysis scripts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.3 KiB

  1. HOME=/work/leverington/beamprofilemonitor/hitdata/Scripts/Scripts_20161201
  2. mkdir -p $HOME/jobs #make the directory if it doesn't exist
  3. JOB_HOME=$HOME/jobs
  4. rm -rf $JOB_HOME/* #clean up the directory if it does exist
  5. cd $JOB_HOME
  6. for i in {1..46}
  7. do
  8. if [ $i -gt 19 -a $i -lt 29 ]; then
  9. continue
  10. fi
  11. touch $JOB_HOME/runjob$i.sh
  12. echo "#!/bin/bash" >> $JOB_HOME/runjob$i.sh
  13. echo ". /local/env.sh" >> $JOB_HOME/runjob$i.sh
  14. echo ". /cvmfs/lhcb.cern.ch/lib/lhcb/LBSCRIPTS/LBSCRIPTS_v9r2p2/InstallArea/scripts/LbLogin.sh -c x86_64-slc6-gcc49-opt" >> $JOB_HOME/runjob$i.sh
  15. # echo ". SetupProject.sh Geant4" >> $JOB_HOME/runjob$i.sh
  16. echo "source /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/4.9.3/x86_64-slc6/setup.sh" >> $JOB_HOME/runjob$i.sh
  17. #point to the correct CERN ROOT
  18. echo "source /cvmfs/lhcb.cern.ch/lib/lcg/releases/LCG_84/ROOT/6.06.02/x86_64-slc6-gcc49-opt/bin/thisroot.sh " >> $JOB_HOME/runjob$i.sh
  19. #include the gsl libraries
  20. echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/work/leverington/gsl-2.4/lib " >> $JOB_HOME/runjob$i.sh
  21. #execute this command
  22. echo "/work/leverington/beamprofilemonitor/hitdata/Scripts/Scripts_20161201/analyse2 PiN_run$i.root" >> $JOB_HOME/runjob$i.sh
  23. qsub -l os=slc6 -l ujl=20 -cwd -j yes $JOB_HOME/runjob$i.sh
  24. sleep 1
  25. done