Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:11:10

0001 #!/usr/bin/env bash
0002 export USER="$(id -u -n)"
0003 export LOGNAME=${USER}
0004 export HOME=/sphenix/u/${LOGNAME}
0005 export MYINSTALL="$HOME/Documents/sPHENIX/install"
0006 
0007 source /opt/sphenix/core/bin/sphenix_setup.sh -n new
0008 source /opt/sphenix/core/bin/setup_local.sh $MYINSTALL
0009 
0010 exe=${1}
0011 input=${2}
0012 submitDir=${3}
0013 
0014 if [[ ! -z "$_CONDOR_SCRATCH_DIR" && -d $_CONDOR_SCRATCH_DIR ]]
0015  then
0016    cd $_CONDOR_SCRATCH_DIR
0017  else
0018    echo "condor scratch NOT set"
0019    exit -1
0020 fi
0021 
0022 # print the environment - needed for debugging
0023 printenv
0024 
0025 $exe $input
0026 
0027 echo "All Done and Transferring Files Back"
0028 cp -rv output/* $submitDir
0029 
0030 echo "Finished"