7 |
|
|
8 |
|
savedir="standard" |
9 |
|
location=`pwd` |
10 |
+ |
executable="./Selective_Plot_Generator_"$$".exec" |
11 |
|
|
12 |
|
function set_savedir { |
13 |
|
procstring=${1/\"/+} |
33 |
|
errloc=`pwd`/Plots/$savedir/Official_Log_errors.txt |
34 |
|
logloc=`pwd`/Plots/$savedir/Official_Log.txt |
35 |
|
thisscript=`basename $0` |
36 |
< |
cmd="qsub -e $errloc -o $logloc -q long.q -N aCBAF $thisscript $currloc" |
36 |
> |
cmd="qsub -e $errloc -o $logloc -q short.q -N $savedir $thisscript $currloc" |
37 |
|
eval $cmd |
38 |
|
echo -e "Job has been sent in using the following command: \n $cmd" |
39 |
|
} |
40 |
|
function runjob { |
41 |
|
source /swshare/ROOT/thisroot.sh |
42 |
|
cd $location |
43 |
< |
./Selective_Plot_Generator.exec --all --paper |
43 |
> |
cp -v ./Selective_Plot_Generator.exec $executable |
44 |
> |
# $executable --region --kin --pred --jzb --results |
45 |
> |
#$executable --kin --jzb --ttbar |
46 |
> |
$executable --all --paper |
47 |
> |
rm -v $executable |
48 |
|
} |
49 |
|
|
50 |
|
compname=`hostname` |
61 |
|
else |
62 |
|
echo "We're neither on a user interface nor on a workernode. Confused. Leaving." |
63 |
|
fi |
64 |
< |
fi |
64 |
> |
fi |