run_all.sh 462 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env bash
  2. echo "starting run at " $(date)
  3. pwd
  4. ls -la
  5. config="analysis/config.yaml"
  6. release="build"
  7. cmshome="/home/dominguez/cfangmeier/EGamma/CMSSW_9_2_8/src/"
  8. job_dir="job_${1}"
  9. mkdir -p $job_dir
  10. source /cvmfs/cms.cern.ch/cmsset_default.sh
  11. cd $cmshome
  12. pwd
  13. # cmsenv
  14. eval `scramv1 runtime -sh`
  15. cd -
  16. cp ./$release/tracking_eff $job_dir
  17. cp ${config} ${job_dir}/config.yaml
  18. ./${job_dir}/tracking_eff -b -c ${job_dir}/config.yaml source-file-key=${1}