#!/bin/csh

rm -f Eupp_R*.gif
rm -f Eupp_R*.ps
rm -f Eupp_R*.sm
/home/colin/research/analysis/RUN/pot_two_exp_fit_run << END
/home1/REFINED_DATA/su3_lgt4/B250_AR5/B25_AR5_REFBINS
fits_Eupp.log
y
/home1/REFINED_DATA/su3_lgt4/B250_AR5/B25_AR5_effmass
0
10
3
2
1
4
1

2
7
3
12
1
1024
n
n
y
4
Eupp_R1
n

2
2
4
1

2
7
3
12
1
1024
n
n
y
4
Eupp_R2
n

2
3
4
1

2
7
3
12
1
1024
n
n
y
4
Eupp_R3
n

2
4
4
1

2
7
3
12
1
1024
n
n
y
4
Eupp_R4
n

2
5
4
1

2
7
3
12
1
1024
n
n
y
4
Eupp_R5
n

2
6
4
1

2
7
2
12
1
1024
n
n
y
4
Eupp_R6
n

2
7
4
1

2
7
2
12
1
1024
n
n
y
4
Eupp_R7
n

2
8
4
1

2
7
2
12
1
1024
n
n
y
4
Eupp_R8
n

2
9
4
1

2
7
2
12
1
1024
n
n
y
4
Eupp_R9
n

2
10
4
1

2
7
2
12
1
1024
n
n
y
4
Eupp_R10
n

9
END
/usr/local/bin/ps2gif Eupp_R1
/usr/local/bin/ps2gif Eupp_R2
/usr/local/bin/ps2gif Eupp_R3
/usr/local/bin/ps2gif Eupp_R4
/usr/local/bin/ps2gif Eupp_R5
/usr/local/bin/ps2gif Eupp_R6
/usr/local/bin/ps2gif Eupp_R7
/usr/local/bin/ps2gif Eupp_R8
/usr/local/bin/ps2gif Eupp_R9
/usr/local/bin/ps2gif Eupp_R10
grep "R=" Eupp_R1.sm >! Eupp_res.dat
grep "E=" Eupp_R1.sm >> Eupp_res.dat
grep "Q=" Eupp_R1.sm >> Eupp_res.dat
grep "R=" Eupp_R2.sm >> Eupp_res.dat
grep "E=" Eupp_R2.sm >> Eupp_res.dat
grep "Q=" Eupp_R2.sm >> Eupp_res.dat
grep "R=" Eupp_R3.sm >> Eupp_res.dat
grep "E=" Eupp_R3.sm >> Eupp_res.dat
grep "Q=" Eupp_R3.sm >> Eupp_res.dat
grep "R=" Eupp_R4.sm >> Eupp_res.dat
grep "E=" Eupp_R4.sm >> Eupp_res.dat
grep "Q=" Eupp_R4.sm >> Eupp_res.dat
grep "R=" Eupp_R5.sm >> Eupp_res.dat
grep "E=" Eupp_R5.sm >> Eupp_res.dat
grep "Q=" Eupp_R5.sm >> Eupp_res.dat
grep "R=" Eupp_R6.sm >> Eupp_res.dat
grep "E=" Eupp_R6.sm >> Eupp_res.dat
grep "Q=" Eupp_R6.sm >> Eupp_res.dat
grep "R=" Eupp_R7.sm >> Eupp_res.dat
grep "E=" Eupp_R7.sm >> Eupp_res.dat
grep "Q=" Eupp_R7.sm >> Eupp_res.dat
grep "R=" Eupp_R8.sm >> Eupp_res.dat
grep "E=" Eupp_R8.sm >> Eupp_res.dat
grep "Q=" Eupp_R8.sm >> Eupp_res.dat
grep "R=" Eupp_R9.sm >> Eupp_res.dat
grep "E=" Eupp_R9.sm >> Eupp_res.dat
grep "Q=" Eupp_R9.sm >> Eupp_res.dat
grep "R=" Eupp_R10.sm >> Eupp_res.dat
grep "E=" Eupp_R10.sm >> Eupp_res.dat
grep "Q=" Eupp_R10.sm >> Eupp_res.dat
echo " " >> Eupp_res.dat
grep "*** Final fit result" fits_Eupp.log >> Eupp_res.dat
