run_all.sh 523 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env bash
  2. config="./config.yaml"
  3. release="build"
  4. cmshome="/cvmfs/cms.cern.ch/slc6_amd64_gcc530/cms/cmssw/CMSSW_9_2_8/src/"
  5. output_dir="."
  6. echo "starting run. Current time: " $(date)
  7. echo "running @ " $(pwd) "in " $(hostname)
  8. echo "Initial Directory Contents:"
  9. ls -la
  10. source /cvmfs/cms.cern.ch/cmsset_default.sh
  11. cd $cmshome
  12. eval `scramv1 runtime -sh`
  13. cd -
  14. mkdir -p $output_dir
  15. ./tracking_eff -b -c $config source-file-key=${1} output-dir=$output_dir
  16. echo "Run Finished"
  17. echo "Final Directory Contents:"
  18. ls -la