Angular analysis of B+->K*+(K+pi0)mumu
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.

31 lines
1.5 KiB

  1. #!/bin/bash
  2. ProcID="$1"
  3. ClusterID="$2"
  4. # More or less gneric PI LHCb HTCondor script, to run something within singularity
  5. #
  6. # Where we should work
  7. working_dir=/home/lhcb/kopecna/B2KstarMuMu/code/ewp-Bplus2Kstmumu-AngAna/FCNCfitter/condor
  8. # What start in singularity (current directory will be current in singularity as well)
  9. to_run="/home/lhcb/kopecna/B2KstarMuMu/code/ewp-Bplus2Kstmumu-AngAna/FCNCfitter/condor/job.sh"
  10. # Singularity image to use (can point to CERN CVMFS...)
  11. # Can be constructer by yourself... like
  12. # OS_IMAGE=/work/zhelezov/singularity/CentOS7.simg
  13. # Taken from "generic" CERN, unfortunately without graphic libraries...
  14. #OS_IMAGE=/cvmfs/unpacked.cern.ch/registry.hub.docker.com/library/centos\:centos7
  15. # That seems like work for the perpose at the moment... Not perfect, I know.
  16. OS_IMAGE=/cvmfs/unpacked.cern.ch/registry.hub.docker.com/cmssw/cc7\:amd64
  17. # We will work here. Local Condor has no "shared filesystem" (yet, unclear if it should/will),
  18. # so jobs start in a dedicated local directory on working nodes.
  19. cd $working_dir || exit 1
  20. # That defines where is singularity
  21. export PATH=/work/software/singularity/latest/`/work/software/os_version`/bin:$PATH
  22. # Just for info under which OS we are running
  23. echo "Batch execution OS: `/work/software/os_version`"
  24. #In case cvmfs is not available for whatever reason
  25. while [ ! -e "$OS_IMAGE" ]; do echo "Waiting for image..." >&1; /bin/sleep 300; done
  26. # That starts singularity with image and final script
  27. exec singularity exec --bind /cvmfs,/auto,/auto/home:/home,/auto/work:/work $OS_IMAGE $to_run "$@"