# example: goscrut.sh "ccbar" 7.53 10000 "all" echo "Using FAIRLIBDIR="$FAIRLIBDIR echo "Press any key to continue, ctrl-c to abort now" read -n 1 -s prefix="test" mom=7.53 nEvts=10000 detopt="12345" pid="All" jobs=20 if test "$1" != ""; then prefix=$1 fi if test "$2" != ""; then mom=$2 fi if test "$3" != ""; then nEvts=$3 fi if test "$4" != ""; then detopt=$4 fi if test "$5" != ""; then pid=$5 fi if test "$6" != ""; then jobs=$6 fi # echo "$prefix (prefix)" # echo "$dec (decay (BOX, DPM or decay file)" # echo "$mom (momentum)" # echo "$nEvts (nEvents)" # echo "$detopt (detector option (12345))" # echo "$dmode (Decay Mode: 0: etac->K+K-pi0, 1: etac->KsK+pi-(+cc.) 2: J/psi->e+e-, 3:J/psi->mu+mu-)" # echo "$rmode (Recoil mode: 0: pi+pi-, 1: pi0pi0, 2: pi0, 3: gam, 4: eta 5: eta eta)" # echo "$pid (PID selection)" echo "Doing: qsub -t $jobs job_dpmscrut_all.sge $prefix $mom $nEvts $detopt $pid" qsub -t 1-$jobs job_dpmscrut_all_mass.sge $prefix $mom $nEvts $detopt $pid