-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmaid_lee.F
376 lines (374 loc) · 14.8 KB
/
maid_lee.F
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
subroutine maid_lee(a1,a2,a3,a4,a5,theory_opt,channel_opt,
1 resonance_opt,sigma0,sigu,sigt,sigl,sigi,sigip,
1 asym_p,ehel)
c
implicit none
c
real a1,a2,a3,a4,a5
c
include 'mpintp.inc'
include 'spp.inc'
c
integer theory_opt, channel_opt, resonance_opt, n_call
real E_pi_cm
real m_pi, alpi
real sigma0,sigu,sigt,sigl,sigi,sigip,asym_p
integer ehel
c
data n_call /0/
c
m_pi = m_pip
if (channel_opt.eq.1) m_pi = m_pi0
c
q2 = a1
w = a2
epsilon = a3
csthcm = a4
phicm = a5
c
if (n_call.ne.0) goto 100
c
method_helicity = 1
c
if (theory_opt.eq.3) then
call revinm('CLAS_PARMS',
1 'spp_tbl/hlee_pi0.tbl',data_file)
endif
if (theory_opt.eq.4) then
if (channel_opt.eq.1) then
if (resonance_opt.eq.0) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98-PPpi.tbl',data_file)
elseif (resonance_opt.eq.1) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_p33_on-PPpi.tbl',data_file)
elseif (resonance_opt.eq.2) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_p11_on-PPpi.tbl',data_file)
elseif (resonance_opt.eq.3) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_d13_on-PPpi.tbl',data_file)
elseif (resonance_opt.eq.4) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_s11_1535_on-PPpi.tbl',data_file)
elseif (resonance_opt.eq.5) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_s11_1635_on-PPpi.tbl',data_file)
elseif (resonance_opt.eq.6) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_f15_on-PPpi.tbl',data_file)
elseif (resonance_opt.eq.7) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_d33_on-PPpi.tbl',data_file)
elseif (resonance_opt.eq.8) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_born_on-PPpi.tbl',data_file)
elseif (resonance_opt.eq.9) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_rho_on-PPpi.tbl',data_file)
elseif (resonance_opt.eq.10) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_omega_on-PPpi.tbl',data_file)
elseif (resonance_opt.eq.11) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_p11_off-PPpi.tbl',data_file)
elseif (resonance_opt.eq.12) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_d13_off-PPpi.tbl',data_file)
elseif (resonance_opt.eq.13) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_s11_1535_off-PPpi.tbl',data_file)
elseif (resonance_opt.eq.14) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_all_res_off-PPpi.tbl',data_file)
endif
endif
if (channel_opt.eq.2) then
if (resonance_opt.eq.0) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98-NPpi.tbl',data_file)
elseif (resonance_opt.eq.1) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_p33_on-NPpi.tbl',data_file)
elseif (resonance_opt.eq.2) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_p11_on-NPpi.tbl',data_file)
elseif (resonance_opt.eq.3) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_d13_on-NPpi.tbl',data_file)
elseif (resonance_opt.eq.4) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_s11_1535_on-NPpi.tbl',data_file)
elseif (resonance_opt.eq.5) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_s11_1635_on-NPpi.tbl',data_file)
elseif (resonance_opt.eq.6) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_f15_on-NPpi.tbl',data_file)
elseif (resonance_opt.eq.7) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_d33_on-NPpi.tbl',data_file)
elseif (resonance_opt.eq.8) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_born_on-NPpi.tbl',data_file)
elseif (resonance_opt.eq.9) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_rho_on-NPpi.tbl',data_file)
elseif (resonance_opt.eq.10) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_omega_on-NPpi.tbl',data_file)
elseif (resonance_opt.eq.11) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_p11_off-NPpi.tbl',data_file)
elseif (resonance_opt.eq.12) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_d13_off-NPpi.tbl',data_file)
elseif (resonance_opt.eq.13) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_s11_1535_off-NPpi.tbl',data_file)
elseif (resonance_opt.eq.14) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_all_res_off-NPpi.tbl',data_file)
endif
endif
if (channel_opt.eq.3) then
if (resonance_opt.eq.0) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98-PNpi.tbl',data_file)
elseif (resonance_opt.eq.1) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_p33_on-PNpi.tbl',data_file)
elseif (resonance_opt.eq.2) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_p11_on-PNpi.tbl',data_file)
elseif (resonance_opt.eq.3) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_d13_on-PNpi.tbl',data_file)
elseif (resonance_opt.eq.4) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_s11_1535_on-PNpi.tbl',data_file)
elseif (resonance_opt.eq.5) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_s11_1635_on-PNpi.tbl',data_file)
elseif (resonance_opt.eq.6) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_f15_on-PNpi.tbl',data_file)
elseif (resonance_opt.eq.7) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_d33_on-PNpi.tbl',data_file)
elseif (resonance_opt.eq.8) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_born_on-PNpi.tbl',data_file)
elseif (resonance_opt.eq.9) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_rho_on-PNpi.tbl',data_file)
elseif (resonance_opt.eq.10) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_omega_on-PNpi.tbl',data_file)
elseif (resonance_opt.eq.11) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_p11_off-PNpi.tbl',data_file)
elseif (resonance_opt.eq.12) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_d13_off-PNpi.tbl',data_file)
elseif (resonance_opt.eq.13) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_s11_1535_off-PNpi.tbl',data_file)
elseif (resonance_opt.eq.14) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid98_all_res_off-PNpi.tbl',data_file)
endif
endif
endif
c
if (theory_opt.eq.5) then
if (channel_opt.eq.1) then
if (resonance_opt.eq.0) then
data_file = '/group/clas/parms/spp_tbl/maid07-PPpi.tbl';
c call revinm('CLAS_PARMS',
c 1 'spp_tbl/maid2000-PPpi.tbl',data_file)
elseif (resonance_opt.eq.1) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_p33_on-PPpi.tbl',data_file)
elseif (resonance_opt.eq.2) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_p11_on-PPpi.tbl',data_file)
elseif (resonance_opt.eq.3) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_d13_on-PPpi.tbl',data_file)
elseif (resonance_opt.eq.4) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_s11_1535_on-PPpi.tbl',data_file)
elseif (resonance_opt.eq.5) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_s11_1635_on-PPpi.tbl',data_file)
elseif (resonance_opt.eq.6) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_f15_on-PPpi.tbl',data_file)
elseif (resonance_opt.eq.7) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_d33_on-PPpi.tbl',data_file)
elseif (resonance_opt.eq.8) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_born_on-PPpi.tbl',data_file)
elseif (resonance_opt.eq.9) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_rho_on-PPpi.tbl',data_file)
elseif (resonance_opt.eq.10) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_omega_on-PPpi.tbl',data_file)
elseif (resonance_opt.eq.11) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_p11_off-PPpi.tbl',data_file)
elseif (resonance_opt.eq.12) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_d13_off-PPpi.tbl',data_file)
elseif (resonance_opt.eq.13) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_s11_1535_off-PPpi.tbl',data_file)
elseif (resonance_opt.eq.14) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_all_res_off-PPpi.tbl',data_file)
endif
endif
if (channel_opt.eq.2) then
if (resonance_opt.eq.0) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000-NPpi.tbl',data_file)
elseif (resonance_opt.eq.1) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_p33_on-NPpi.tbl',data_file)
elseif (resonance_opt.eq.2) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_p11_on-NPpi.tbl',data_file)
elseif (resonance_opt.eq.3) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_d13_on-NPpi.tbl',data_file)
elseif (resonance_opt.eq.4) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_s11_1535_on-NPpi.tbl',data_file)
elseif (resonance_opt.eq.5) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_s11_1635_on-NPpi.tbl',data_file)
elseif (resonance_opt.eq.6) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_f15_on-NPpi.tbl',data_file)
elseif (resonance_opt.eq.7) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_d33_on-NPpi.tbl',data_file)
elseif (resonance_opt.eq.8) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_born_on-NPpi.tbl',data_file)
elseif (resonance_opt.eq.9) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_rho_on-NPpi.tbl',data_file)
elseif (resonance_opt.eq.10) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_omega_on-NPpi.tbl',data_file)
elseif (resonance_opt.eq.11) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_p11_off-NPpi.tbl',data_file)
elseif (resonance_opt.eq.12) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_d13_off-NPpi.tbl',data_file)
elseif (resonance_opt.eq.13) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_s11_1535_off-NPpi.tbl',data_file)
elseif (resonance_opt.eq.14) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_all_res_off-NPpi.tbl',data_file)
endif
endif
if (channel_opt.eq.3) then
if (resonance_opt.eq.0) then
data_file = '/group/clas/parms/spp_tbl/maid07-PNpi.tbl';
c call revinm('CLAS_PARMS',
c 1 'spp_tbl/maid2000-PNpi.tbl',data_file)
elseif (resonance_opt.eq.1) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_p33_on-PNpi.tbl',data_file)
elseif (resonance_opt.eq.2) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_p11_on-PNpi.tbl',data_file)
elseif (resonance_opt.eq.3) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_d13_on-PNpi.tbl',data_file)
elseif (resonance_opt.eq.4) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_s11_1535_on-PNpi.tbl',data_file)
elseif (resonance_opt.eq.5) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_s11_1635_on-PNpi.tbl',data_file)
elseif (resonance_opt.eq.6) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_f15_on-PNpi.tbl',data_file)
elseif (resonance_opt.eq.7) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_d33_on-PNpi.tbl',data_file)
elseif (resonance_opt.eq.8) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_born_on-PNpi.tbl',data_file)
elseif (resonance_opt.eq.9) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_rho_on-PNpi.tbl',data_file)
elseif (resonance_opt.eq.10) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_omega_on-PNpi.tbl',data_file)
elseif (resonance_opt.eq.11) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_p11_off-PNpi.tbl',data_file)
elseif (resonance_opt.eq.12) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_d13_off-PNpi.tbl',data_file)
elseif (resonance_opt.eq.13) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_s11_1535_off-PNpi.tbl',data_file)
elseif (resonance_opt.eq.14) then
call revinm('CLAS_PARMS',
1 'spp_tbl/maid2000_all_res_off-PNpi.tbl',data_file)
endif
endif
endif
c
c write(6,*) 'Enter max pi-N angular momentum (0-5): '
c
c read(5,*) mwave_L
mwave_L = 5
c
write(6,*) 'Reading multipoles from ',data_file
c
call read_sf_file(data_file,2)
c
n_call = n_call + 1
100 E_pi_cm = 0.5*(W*W+m_pi**2-m_p**2)/W
ppi_mag_cm = E_pi_cm**2 - m_pi**2
ppi_mag_cm = sqrt(ppi_mag_cm)
qv_mag_cm = ((W*W+Q2+m_p**2)/2.0/W)**2-m_p**2
qv_mag_cm = sqrt(qv_mag_cm)
c nu_cm = sqrt(qv_mag_cm**2-Q2)
c this is the right calculation for nu_cm
ccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
nu_cm = (W*W-m_p**2-Q2)/(2*W)
ccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
fkt = 2.0*W*ppi_mag_cm/(W**2 - m_p**2)
e_hel = ehel
c
call xsection
c
sigma0 = sigma_0
sigu = sigma_t
sigl = sigma_l
sigt = sigma_tt
sigi = sigma_lt
sigip = sigma_ltp
if (e_hel.gt.-0.5.and.e_hel.lt.0.5) then
asym_p = 0.0
else
asym_p = asym_ltp
endif
return
end
subroutine revinm(A,B,C)
Character A*(*),B*(*),C*(*)
return
end