3
if [[ -e MadLoop5_resources.tar && ! -e MadLoop5_resources ]]; then
4
tar -xf MadLoop5_resources.tar
9
grid_directory=%(base_directory)s
11
if [[ ! -e $j ]]; then
13
if [[ -e $grid_directory/ftn26 ]];then
14
cp $grid_directory/ftn26 $j/ftn25
16
if [[ ! -e ../../SubProcesses ]];then
17
if [[ -e ftn26 ]]; then
25
rm -f moffset.dat >& /dev/null
26
echo %(offset)s > moffset.dat
27
if [[ -e ftn26 ]]; then
30
# create the input file
31
echo " %(nevents)s %(maxiter)s %(miniter)s" >& input_sg.txt
32
echo " %(precision)s" >> input_sg.txt
33
if [[ ! -e ftn25 ]]; then
34
echo "2" >> input_sg.txt # grid refinement
35
echo "1" >> input_sg.txt # suppress amplitude
38
echo "%(grid_refinment)s" >> input_sg.txt
39
echo "1" >> input_sg.txt
41
echo "%(nhel)s" >> input_sg.txt
42
echo "%(channel)s" >> input_sg.txt
44
# run the executable. The loop is design to avoid
45
# filesystem problem (executable not found)
46
for((try=1;try<=16;try+=1));
48
../madevent >> $k <input_sg.txt
56
echo "" >> $k; echo "ls status:" >> $k; ls >> $k
59
if [[ -e ftn26 ]]; then