-
Notifications
You must be signed in to change notification settings - Fork 88
/
F1F2IN21_v1.0.f
3203 lines (2373 loc) · 93.3 KB
/
F1F2IN21_v1.0.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
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
CCC CCC
CCC F1F221 version 1.0 prerelease 1 - April 4, 2022 CCC
CCC Collection of subroutines to calculate inclusive cross sections CCC
CCC for range of nuclei. For A > 2 the parameterization is based on CCC
CCC by M. E. Christy, T. Gautam, and A Bodek to 12C, 27Al, 56Fe and CCC
CCC 64Cu. However, the fit scales relatively well with 'A' and CCC
CCC should be good for all nuclei with 10 < A < 80. CCC
CCC Also included is the proton cross section fit and a preliminary CCC
CCC deuteron/neutron fit by M. E. Christy, N. Kalantarians, J. Either CCC
CCC and W. Melnitchouk (to be published) based on both inclusive CCC
CCC deuteron and tagged deuteron data on n/d from BONuS. CCC
CCC Range of validity is W^2 < 32, Q^2 < 32.0 CCC
CCC New data included in deuteron fit, including photoproduction at CCC
CCC Q^2 = 0. CCC
CCC CCC
CCC CCC
CCC A > 2 nuclei fit are only 12C for this pre release version. CCC
CCC Do Not use for other nuclei! These will be added prior to CCC
CCC final reselease. CCC
CCC CCC
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
SUBROUTINE F1F2IN21(Z, A, QSQ, WSQ, F1, F2)
!--------------------------------------------------------------------
! Fit to inelastic cross sections for A(e,e')X
! valid for all W^<20 GeV2 and all Q2<30 GeV2
!
! Inputs: Z, A (real*8) are Z and A of nucleus
! (use Z=0., A=1. to get free neutron)
c Qsq (real*8) is 4-vector momentum transfer squared (positive in
c chosen metric)
c Wsq (real*8) is invarinat mass squared of final state calculated
c assuming electron scattered from a free proton
c
c Outputs: F1, F2 (real*8) are structure functions per nucleus
! Version of 02/20/2021 E. Christy
! Made to be consistent with calling F1F2IN09 from P. Bosted
! with much code borrowed.
!--------------------------------------------------------------------
implicit none
real*8 Z,A,QSQ,WSQ
real*8 avgn,F1,F2,FL,F1p,F1n,F2p,F2n,FLp,FLn
real*8 sigm,sigl,sigt,eps
integer IA,IZ,wfn,opt
logical off,doqe/.false./
off = .true.
IA = int(A)
IZ = int(Z)
avgN = A-z
if(IA.LT.2) then
call sf(WSQ,QSQ,F1p,FLp,F2p,F1n,FLn,F2n)
if(IZ.LT.1) then !!! Neutron
F1 = F1n
F2 = F2n
else !!! Proton
F1 = F1p
F2 = F2p
endif
elseif(IA.EQ.2.AND.IZ.EQ.1) then !!! Deuteron
eps = 0.5 !!! pass 0 < eps < 1
wfn = 2 !!! CD-Bonn, default
doqe = .false. !!! don't include QE !!!
f1 = 0.0
f2 = 0.0
fL = 0.0
call rescsd(WSQ,QSQ,eps,doqe,F1,F2,FL,wfn,sigm)
c write(6,*) "rescsd inel: ", wsq,qsq,eps,wfn,f1,f2
c call smearsub(WSQ,QSQ,wfn,off,F2,F1,FL)
c write(6,*) "smearsub: ", wsq,qsq,eps,wfn,f1,f2
c write(6,*) "in f1f2in21: ", wsq,qsq,eps,wfn,f1,f2
elseif(IA.GT.2) then !!! A>2 nuclei
opt = 3 !!! inelastic only
call SFCROSS(WSQ,QSQ,A,Z,opt,sigt,sigl,F1,F2,FL)
endif
return
end
CCC-----------------
SUBROUTINE F1F2QE21(Z, A, QSQ, WSQ, F1qe, F2qe)
!--------------------------------------------------------------------
! Fit to QE cross sections for A(e,e')X
! valid for all W^<30 GeV2 and all Q2<30 GeV2
!
! Inputs: Z, A (real*8) are Z and A of nucleus
! (use Z=0., A=1. to get free neutron)
c Qsq (real*8) is 4-vector momentum transfer squared (positive in
c chosen metric)
c Wsq (real*8) is invarinat mass squared of final state calculated
c assuming electron scattered from a free proton
c
c Outputs: F1, F2 (real*8) are structure functions per nucleus
! Version of 02/20/2021 E. Christy
!
! Note: This is a calling routine in order to be consistent with
! calling of F1F2QE09 from P. Bosted. For the deuteron the
! QE distribution is calculated by smearing with a realistic
! wavefunction in the weak-binding approximation. For A>2
! a superscaling model is used for the fit.
!--------------------------------------------------------------------
IMPLICIT none
real*8 wsq,qsq,A,Z,sigt,sigl,F1qe,F2qe,FLqe
integer opt/5/ !!! QE + MEC !!!
integer wfn/2/
logical first/.false./
if(A.EQ.2.0) then
call SQESUB(wsq,qsq,wfn,f2qe,f1qe,fLqe,first)
elseif(A.GT.2.0) then
call sfcross(wsq,qsq,A,Z,opt,sigt,sigl,F1qe,F2qe,FLqe)
endif
c write(6,*) wsq,qsq,a,z,f1qe,f2qe,fLqe
end
CCC-----------------
C=======================================================================
Subroutine FORMFACTS(q2,gmp,gep,gmn,gen)
CCC Returns proton and neutron form factors based on new proton fit CCC
CCC by M.E. Christy including GMp12 data. Neutron starts with CCC
CCC Kelly fit, but includes correction factors extracted from fit to CCC
CCC inclusive deuteron data. Version from July 22, 2020 CCC
!--------------------------------------------------------------------
IMPLICIT NONE
REAL*8 q2,tau,gd,gmp,gep,gmn,gen,mcor,ecor
REAL*8 mu_p/ 2.792782/ ,mu_n/ -1.913148 /
REAL*8 mp/ 0.9382727 /, mp2
mp2 = mp*mp
tau = q2 / 4.0 / mp2
CCC 2021 Christy fit to GMp and GEp including GMp12 data CCC
GMP = mu_p*(1.+0.099481*tau)/
& (1.0+11.089*tau+19.374*tau*tau+5.7798*tau**3)
GEP = (1.+0.24482*tau**2)/
& (1.0+11.715*tau+11.964*tau*tau+27.407*tau**3)
GD = (1./(1 + q2/0.71))**2
CCC 2021 fit to deuteron inclusive data CCC
c GMn = mu_n*(1.0+0.12417E-04*tau)/
c & (1.000+11.404*tau+17.014*tau*tau+31.219*tau**3)
c GEn = (1.5972*tau / (1.0+0.19655*tau)) * GD
GMn = mu_n !!! Kelly Fit
& * (1.D0 + 2.330D0*tau)
& / (1.D0 + 14.720D0*tau + 24.200D0*tau**2 + 84.100D0*tau**3)
GEn = (1.700D0*tau/(1+ 3.300D0*tau))*GD
GEn = GEn*((q2+1189.4)/1189.4)**219.73
GMn = GMn/((q2+0.35590 )/0.35590 )**0.93020E-01
return
end
CCC Version 120521 - Author: M.E. Christy, christy@jlab.org CCC
CCC This fit version includes data from a number of JLab Hall experiments CCC
CCC as well as DIS data from SLAC (L. Whitlow) and photoproduction data CCC
CCC from DAPHNE and older data sets. CCC
CCC Subroutine to get Transverse and Longitudinal eP cross sections CCC
CCC from fits cross sections over a range of epsilon. The subroutine CCC
CCC resmod.f is required. Units are in ub/Sr/Gev. CCC
CCC
CCC Region of applicability has been extended to cover the full JLab CCC
CCC 11 GeV kinematic range of Q^2 < 30 GeV^2 and W^2 < 20 CCC
SUBROUTINE rescsp(W2,Q2,sigT,sigL)
IMPLICIT NONE
real*8 w2,q2,xval1(50),xvall(50),xval(100)
real*8 mp,mp2,pi,alpha,xb,sigT,sigL,F1,FL,F2,R
integer i,npts,sf
mp = .9382727
mp2 = mp*mp
pi = 3.141593
alpha = 1./137.036
data xval/
& 0.12291E+01,0.15173E+01,0.15044E+01,0.17100E+01,0.16801E+01,
& 0.14312E+01,0.12616E+00,0.23000E+00,0.92594E-01,0.90606E-01,
& 0.75000E-01,0.35067E+00,0.75729E+01,0.56091E+01,0.94606E+01,
& 0.20156E+01,0.66190E+01,0.41732E+00,0.23980E-01,0.53136E+01,
& 0.63752E+00,0.11484E+02,0.69949E-01,0.26191E+01,0.53603E-01,
& 0.65000E+02,0.15351E+00,0.20624E+01,0.23408E+01,0.16100E+02,
& 0.62414E+02,0.17201E+01,0.23261E+00,0.65000E+02,0.23292E+01,
& 0.14980E+01,0.23000E+00,0.63385E+00,0.19093E-01,0.61061E-01,
& 0.29146E-02,0.54388E+00,0.77997E+00,0.28783E+00,0.10605E+01,
& 0.69793E+00,0.20009E+01,0.57000E+00,0.41632E+01,0.38427E+00,
& 0.10000E+01,0.99842E+00,0.98719E+00,0.10168E+01,0.98945E+00,
& 0.99594E+00,0.98799E+00,0.10271E+01,0.10650E+01,0.97920E+00,
& 0.10152E+01,0.99622E+00,0.81011E+01,0.10070E-02,0.14857E+01,
& 0.33445E+01,0.31641E-09,0.69755E+02,0.55228E+01,0.14438E+00,
& 0.60474E+01,0.65395E-07,0.14129E+01,0.58609E+00,0.36220E+01,
& 0.92699E+00,0.14418E+01,0.86403E-02,0.10001E-03,0.75106E+00,
& 0.76077E+00,0.42272E+00,0.55511E-11,0.52486E+00,0.58153E+00,
& 0.15798E+01,0.50105E+00,0.89149E+02,0.72789E+00,0.24813E-01,
& -.61906E+00,0.10000E+01,0.00000E+00,0.00000E+00,0.68158E+03,
& 0.12429E+01,0.00000E+00,0.00000E+00,0.00000E+00,0.10000E-05 /
do i=1,50
xval1(i) = xval(i)
xvalL(i) = xval(50+i)
if(i.LE.12) xvalL(i) = xval1(i)
if(i.EQ.47.OR.i.EQ.48) xvalL(i) = xval1(i)
enddo
xb = q2/(w2+q2-mp2)
call resmodp(1,w2,q2,xval1,sigT)
call resmodp(2,w2,q2,xvalL,sigL)
F1 = sigT*(w2-mp2)/8./pi/pi/alpha/0.3894e3
FL = sigL*2.*xb*(w2-mp2)/8./pi/pi/alpha/0.3894e3
R = sigL/sigT
c write(6,*) w2,q2,F1,FL,R
end
SUBROUTINE RESCSD(w2,q2,eps,doqe,f1d,f2d,fLd,wfn,sigm)
CCCC Calcultes deuteron cross sections from smeared p+n. CCCC
CCCC Requires SQESUB be called first to read in smearing functions. CCCC
CCCC This should be one at the lowest level to keep from reading CCCC
CCCC multiple times.
IMPLICIT none
real*8 w2,q2,eps,t1,x,gamma2,q2min,q2t
real*8 sigtp,sigtn,siglp,sigln,sigt,sigl,sigm,m
real*8 m2,pi2,alpha,f1d,f2d,fLd,f1dqe,f2dqe,fLdqe
real*8 off_mKP_fit,delta,xfr,xfl
integer i,j,k,ntssot,wfn,drn
logical doqe,off
c INCLUDE 'parm.cmn'
external off_mKP_fit
f1dqe = f1d
f2dqe = f2d
fLdqe = fLd
off = .false. !! off-shell corrections
c off = .true.
q2min = 4.0E-5
drn = 5
xfr = 0.95
xfl = 1.0E-3
alpha = 1./137.036
m = (0.938272+0.939565)/2.0d0 !!! average p,n
m2 = m*m
pi2 = 3.14158*3.14159
q2t = q2
c if(q2.LT.q2min) q2t = q2min !!! Hack to fix photoproduction
x = q2t/(w2-m2+q2t)
c gamma2 = 1.+4.*m2*x*x/q2t
gamma2 = 1.0+q2t*4.0*m2/(w2+q2t-m2)**2.0
t1 = gamma2*f2dqe-2.*x*f1dqe
if(f2dqe.LT.0.0.OR.f1dqe.LT.0.0.OR.fLdqe.LT.0.0)
& write(34,*) w2,q2,f2dqe,f1dqe,fLdqe
if(q2.LT.0.05) then
call SMEARSUBLOWQ(w2,q2t,wfn,off,f2d,f1d,fLd)
else
call SMEARSUB(w2,q2t,wfn,off,f2d,f1d,fLd)
endif
c write(6,*) w2,q2t,f2d,f1d,fLd
if(doqe) then
f1d = f1d+f1dqe
f2d = f2d+f2dqe
fLd = fLd+fLdqe
endif
sigt = 0.3894e3*f1d*pi2*alpha*8.0/abs(w2-m2)
sigl = 0.3894e3*fLd*pi2*alpha*8.0/abs(w2-m2)/2.*abs(w2-m2+q2t)/q2t
if(q2t.EQ.0) sigl = 0.0
sigm = sigt+eps*sigl
c write(6,*) w2,q2t,sigt,sigl,sigm
return
end
SUBROUTINE RESCSN(w2,q2,sigtn,sigln)
CCCC Returns neutron transverse and longitudinal cross sections CCCC
CCCC November 16, 2021 version CCCC
IMPLICIT none
real*8 w2,q2,sigtn,sigln
real*8 xvaln(100),xval1(50),xvalL(50)
integer i
data xvaln /
& 0.12291E+01,0.15173E+01,0.15044E+01,0.17100E+01,0.16801E+01,
& 0.14312E+01,0.12616E+00,0.23000E+00,0.92594E-01,0.90606E-01,
& 0.75000E-01,0.35067E+00,0.69500E+01,0.86633E+01,0.11557E+02,
& 0.22138E+01,0.44886E+01,0.20500E+03,0.84433E+03,0.31167E+01,
& 0.96301E+00,0.14956E+00,0.20761E-07,0.10440E+01,0.40143E-03,
& 0.90028E+02,0.75248E-01,0.20532E+00,0.12444E-01,0.34469E+03,
& 0.19948E+00,0.26925E+01,0.48635E+01,0.86000E+02,0.67813E+04,
& 0.44281E+02,0.29548E+00,0.65421E+00,0.23787E-09,0.51967E-01,
& 0.39926E-08,0.29960E+00,0.97516E+00,0.46934E-01,0.14246E+03,
& 0.55801E+00,0.19349E+01,0.27400E+00,0.38891E+00,0.40000E-02,
& 0.10108E+01,0.97020E+00,0.98248E+00,0.97768E+00,0.10425E+01,
& 0.10198E+01,0.97822E+00,0.98239E+00,0.10103E+01,0.10076E+01,
& 0.10044E+01,0.99687E+00,0.16696E+01,0.10721E-06,0.54114E+00,
& 0.11923E+04,0.55938E+02,0.95000E+03,0.39840E+02,0.22026E+03,
& 0.30498E+01,0.24459E+00,0.95574E+00,0.35596E+00,0.21228E-05,
& 0.96696E+01,0.27563E+01,0.93027E-01,0.33559E+02,0.31207E-01,
& 0.29020E+02,0.86417E+00,0.36471E-08,0.99167E+00,0.68124E+00,
& 0.10000E-01,0.90227E-01,0.40115E+01,0.29915E+01,0.45929E-01,
& -.16758E+01,0.78493E+01,0.78184E+01,0.42074E+01,0.41179E-05,
& 0.80597E+00,0.00000E+00,0.00000E+00,0.10045E+01,0.62364E+00 /
do i=1,50
xval1(i) = xvaln(i)
xvalL(i) = xvaln(50+i)
if(i.LE.12) xvalL(i) = xval1(i) !!! use same masses for L as T !!!
if(i.EQ.47.OR.i.EQ.48) xvalL(i) = xval1(i)
enddo
call resmodn(1,w2,q2,xval1,sigtn)
call resmodn(2,w2,q2,xvalL,sigLn)
return
end
CCC-----------------
SUBROUTINE RESMODP(sf,w2,q2,xval,sig)
CCC Returns proton transverse (sf=1) and longitudinal (sf=2 Cross sections CCC
CCC Version from July 1, 2021 - Author: M.E. Christy CCC
CCC This routine returns proton photo-absorbtion cross sections CCC
CCC for either transverse or longitudinal photons in units of ub/Sr/Gev. CCC
CCC CCC
CCC Fit form is empirical. Interpret physics from it at your own risk. CCC
CCC replaced 2-pi threshold with eta CCC
IMPLICIT NONE
REAL*8 W,w2,q2,mp,mp2,mpi2,xb,sig,xval(50),mass(7),width(7)
REAL*8 height(7),rescoef(6,4)
REAL*8 nr_coef(3,4),sigr(7),wdif(2),sig_nr,pi2,alpha
REAL*8 mpi,meta,intwidth(7),k,kcm,kr(7),kcmr(7),ppicm,ppi2cm
REAL*8 petacm,ppicmr(7),ppi2cmr(7),petacmr(7),epicmr(7),epi2cmr(7)
REAL*8 eetacmr(7),epicm,epi2cm,eetacm,br(7,3),ang(7)
REAL*8 pgam(7),pwid(7,3),x0(7),dip,mon,q20,A0
REAL*8 sig_res,xpr(2),t1,t2
INTEGER i,j,num,sf
mp = 0.9382727
mpi = 0.134977
mpi2 = mpi*mpi
meta = 0.547862
mp2 = mp*mp
alpha = 1./137.036
W = sqrt(w2)
wdif(1) = w - (mp + mpi)
wdif(2) = w - (mp + meta)
q20 = 0.05
q20= xval(50)
CCCC single pion branching ratios CCCC
br(1,1) = 1.00 !!! P33(1232)
br(2,1) = 0.45 !!! S11(1535)
br(3,1) = 0.60 !!! D13(1520)
br(4,1) = 0.65 !!! F15(1680)
br(5,1) = 0.60 !!! S11(1650)
br(6,1) = 0.65 !!! P11(1440) roper
br(7,1) = 0.60 !!! F37(1950)
CCCC eta branching ratios CCCC
br(1,3) = 0.0 !!! P33(1232)
br(2,3) = 0.40 !!! S11(1535)
br(3,3) = 0.08 !!! D13(1520)
br(4,3) = 0.0 !!! F15(1680)
br(5,3) = 0.20 !!! S11(1650)
br(6,3) = 0.0 !!! P11(1440) roper
br(7,3) = 0.0 !!! F37(1950)
CCCC 2-pion branching ratios CCCC
do i=1,7
br(i,2) = 1.-br(i,1)-br(i,3)
enddo
CCCC Meson angular momentum CCCC
ang(1) = 1. !!! P33(1232)
ang(2) = 0. !!! S11(1535)
ang(3) = 2. !!! D13(1520)
ang(4) = 3. !!! F15(1680)
ang(5) = 0. !!! S15(1650)
ang(6) = 1. !!! P11(1440) roper
ang(7) = 3. !!! F37(1950)
do i=1,7 !!! resonance damping parameter !!!
x0(i) = 0.160 !!!
c x0(i) = 0.14
enddo
c x0(1) = 0.155
c if(sf.EQ.2) x0(1) = 0.08 !!! different Delta mass for sigL
if(sf.EQ.2) x0(1) = 0.07 !!! different Delta mass for sigL
do i=1,7
br(i,2) = 1.-br(i,1)-br(i,3)
enddo
dip = 1./(1.+q2/1.15)**2. !!! Dipole parameterization !!!
c mon = 1./(1.+q2/1.5)**1.
mon = 1./(1.+q2/1.5)**1.
xb = q2/(q2+w2-mp2)
xpr(1) = 1.00+(w2-(mp+mpi)**2)/(q2+q20)
xpr(1) = 1./xpr(1)
xpr(2) = 1.+(w2-(mp+meta)**2)/(q2+q20)
xpr(2) = 1./xpr(2)
if(w.LE.(mp+mpi)) xpr(1) = 1.0
if(w.LE.(mp+meta)) xpr(2) = 1.0
CCC Calculate kinematics needed for threshold Relativistic B-W CCC
k = (w2 - mp2)/2./mp
kcm = (w2-mp2)/2./w
epicm = (W2 + mpi**2 -mp2 )/2./w
ppicm = SQRT(MAX(0.0,(epicm**2 - mpi**2)))
epi2cm = (W2 + (2.*mpi)**2 -mp2 )/2./w
ppi2cm = SQRT(MAX(0.0,(epi2cm**2 - (2.*mpi)**2)))
eetacm = (W2 + meta*meta -mp2 )/2./w
petacm = SQRT(MAX(0.0,(eetacm**2 - meta**2)))
num = 0
do i=1,6 !!! Read in resonance masses !!!
num = num + 1
mass(i) = xval(i)
enddo
do i=1,6 !!! Read in resonance widths !!!
num = num + 1
intwidth(i) = xval(num)
width(i) = intwidth(i)
enddo
mass(7) = xval(47)
intwidth(7) = xval(48)
width(7) = intwidth(7)
do i=1,7
kr(i) = (mass(i)**2-mp2)/2./mp
kcmr(i) = (mass(i)**2.-mp2)/2./mass(i)
epicmr(i) = (mass(i)**2 + mpi**2 -mp2 )/2./mass(i)
ppicmr(i) = SQRT(MAX(0.0,(epicmr(i)**2 - mpi**2)))
epi2cmr(i) = (mass(i)**2 + (2.*mpi)**2 -mp2 )/2./mass(i)
ppi2cmr(i) = SQRT(MAX(0.0,(epi2cmr(i)**2 - (2.*mpi)**2)))
eetacmr(i) = (mass(i)**2 + meta*meta -mp2 )/2./mass(i)
petacmr(i) = SQRT(MAX(0.0,(eetacmr(i)**2 - meta**2)))
CCC Calculate partial widths CCC
pwid(i,1) = intwidth(i)*(ppicm/ppicmr(i))**(2.*ang(i)+1.)
& *((ppicmr(i)**2+x0(i)**2)/(ppicm**2+x0(i)**2))**ang(i)
c !!! 1-pion decay mode
pwid(i,2) = intwidth(i)*(ppi2cm/ppi2cmr(i))**(2.*ang(i)+4.)
& *((ppi2cmr(i)**2+x0(i)**2)/(ppi2cm**2+x0(i)**2))
& **(ang(i)+2) !!! 2-pion decay mode
pwid(i,2) = W/mass(i)*pwid(i,2)
pwid(i,3) = 0. !!! eta decay mode
if(i.EQ.2.OR.i.EQ.5) then
pwid(i,3) = intwidth(i)*(petacm/petacmr(i))**(2.*ang(i)+1.)
& *((petacmr(i)**2+x0(i)**2)/(petacm**2+x0(i)**2))**ang(i)
c !!! eta decay only for S11's
endif
pgam(i) = (kcm/kcmr(i))**2*
& (kcmr(i)**2+x0(i)**2)/(kcm**2+x0(i)**2)
pgam(i) = intwidth(i)*pgam(i)
width(i) = br(i,1)*pwid(i,1)+br(i,2)*pwid(i,2)+br(i,3)*pwid(i,3)
enddo
CCC End resonance kinematics and Widths calculations CCC
CCC Begin resonance Q^2 dependence calculations CCC
do i=1,6
do j=1,4
num = num + 1
rescoef(i,j)=xval(num)
enddo
if(sf.EQ.1) then
height(i) = rescoef(i,1)*
& (1.+rescoef(i,2)*q2/(1.+rescoef(i,3)*q2))*
& mon**rescoef(i,4)
else
height(i) = (rescoef(i,1)+rescoef(i,2)*q2)
& *exp(-1.*rescoef(i,3)*q2)
endif
height(i) = height(i)*height(i)
enddo
if(sf.EQ.2) then !!! 4th resonance region !!!
height(7) = (xval(16)+xval(20)*q2)*exp(-1.0*xval(24)*q2)
else
height(7) = xval(49)*mon**xval(45)
endif
height(7) = height(7)*height(7)
CCC End resonance Q^2 dependence calculations CCC
do i=1,3 !!! Non-Res coefficients !!!
do j=1,4
num = num + 1
nr_coef(i,j)=xval(num)
enddo
enddo
CCC Calculate Breit-Wigners for all resonances CCC
sig_res = 0.0
do i=1,7
sigr(i) = width(i)*pgam(i)/((W2 - mass(i)**2.)**2.
& + (mass(i)*width(i))**2.)
sigr(i) = height(i)*kr(i)/k*kcmr(i)/kcm*sigr(i)/intwidth(i)
sig_res = sig_res + sigr(i)
enddo
sig_res = sig_res*w
if(sf.EQ.2) sig_res = sig_res*q2
CCC Finish resonances / start non-res background calculation CCC
sig_nr = 0.
if(sf.EQ.1.and.xpr(1).LT.1.0) then
A0 = xval(37)/(1.0+q2/xval(42))**xval(43)
c t1 = xval(38)*log(2.1+q2/xval(39)) !!! exponent of (1-xpr
c t2 = xval(40)*log(2.1+q2/xval(41)) !!! exponent of xpr
c t1 = xval(38)*log(1.5+q2/xval(39))
t1 = xval(38)*log(1.06+q2)+xval(39)/log(1.06+q2)
c t2 = xval(40) + xval(41)*log(1.1+q2)
t2 = xval(40)*(1.0+q2/xval(41))**xval(44)
c t2 = xval(40)*log(1.1+q2)+xval(41)/log(1.0+q2)
c t2 = xval(40)*log(1.1+q2)+xval(41)/log(1.1+q2)
if(xpr(1).LE.1.0) then !!! 1-pi threshold
sig_nr = 389.4*A0*(1.-xpr(1))**t1*xpr(1)**t2
endif
if(xpr(2).LE.1.0) then !!! eta threshold
sig_nr = sig_nr+xval(46)*389.4*A0*(1.-xpr(2))**t1*xpr(2)**t2
endif
c write(6,*) q2,sf,t1,t2
elseif(sf.EQ.2.and.xpr(1).LT.1.0) then
A0 = xval(37)/(1.0+q2/xval(39))**2.0
t1 = xval(38)/(1.0+q2/(xval(40)))+xval(32)*log(q2+xval(36))
c t2 = xval(41)/(1.00+q2/xval(42))**xval(43) !!! exponent of xpr
t2 = xval(41)
if(xpr(1).LE.1.0) then
sig_nr = sig_nr + 389.4*A0*
& xb*(1.-xpr(1))**t1*xpr(1)**t2
endif
endif
sig = sig_res + sig_nr
if((w-mp).LT.wdif(1)) sig = 0.0
1000 format(8f12.5)
1001 format(7f12.3)
RETURN
END
SUBROUTINE RESMODN(sf,w2,q2,xval,sig)
CCC Returns proton transverse (sf=1) and longitudinal (sf=2 Cross sections CCC
CCC Version from July 15, 2021 - Author: M.E. Christy CCC
CCC This routine returns proton photo-absorbtion cross sections CCC
CCC for either transverse or longitudinal photons in units of ub/Sr/Gev. CCC
CCC CCC
CCC Fit form is empirical. Interpret physics from it at your own risk. CCC
CCC replaced 2-pi threshold with eta CCC
IMPLICIT NONE
REAL*8 W,w2,q2,mp,mp2,mpi2,xb,sig,xval(50),mass(7),width(7)
REAL*8 height(7),rescoef(6,4)
REAL*8 nr_coef(3,4),sigr(7),wdif(2),sig_nr,pi2,alpha
REAL*8 mpi,meta,intwidth(7),k,kcm,kr(7),kcmr(7),ppicm,ppi2cm
REAL*8 petacm,ppicmr(7),ppi2cmr(7),petacmr(7),epicmr(7),epi2cmr(7)
REAL*8 eetacmr(7),epicm,epi2cm,eetacm,br(7,3),ang(7)
REAL*8 pgam(7),pwid(7,3),x0(7),dip,mon,q20,A0
REAL*8 sig_res,xpr(2),t1,t2
INTEGER i,j,num,sf
mp = 0.939565
mpi = 0.134977
mpi2 = mpi*mpi
meta = 0.547862
mp2 = mp*mp
alpha = 1./137.036
W = sqrt(w2)
wdif(1) = w - (mp + mpi)
wdif(2) = w - (mp + meta)
q20 = 0.05
q20= xval(50)
CCCC single pion branching ratios CCCC
br(1,1) = 1.00 !!! P33(1232)
br(2,1) = 0.45 !!! S11(1535)
br(3,1) = 0.60 !!! D13(1520)
br(4,1) = 0.65 !!! F15(1680)
br(5,1) = 0.60 !!! S11(1650)
br(6,1) = 0.65 !!! P11(1440) roper
br(7,1) = 0.60 !!! F37(1950)
CCCC eta branching ratios CCCC
br(1,3) = 0.0 !!! P33(1232)
br(2,3) = 0.40 !!! S11(1535)
br(3,3) = 0.08 !!! D13(1520)
br(4,3) = 0.0 !!! F15(1680)
br(5,3) = 0.20 !!! S11(1650)
br(6,3) = 0.0 !!! P11(1440) roper
br(7,3) = 0.0 !!! F37(1950)
CCCC 2-pion branching ratios CCCC
do i=1,7
br(i,2) = 1.-br(i,1)-br(i,3)
enddo
CCCC Meson angular momentum CCCC
ang(1) = 1. !!! P33(1232)
ang(2) = 0. !!! S11(1535)
ang(3) = 2. !!! D13(1520)
ang(4) = 3. !!! F15(1680)
ang(5) = 0. !!! S15(1650)
ang(6) = 1. !!! P11(1440) roper
ang(7) = 3. !!! F37(1950)
do i=1,7 !!! resonance damping parameter !!!
x0(i) = 0.16 !!!
enddo
if(sf.EQ.2) x0(1) = 0.07 !!! different Delta mass for sigL
do i=1,7
br(i,2) = 1.-br(i,1)-br(i,3)
enddo
dip = 1./(1.+q2/1.15)**2. !!! Dipole parameterization !!!
mon = 1./(1.+q2/1.5)**1.
xb = q2/(q2+w2-mp2)
xpr(1) = 1.00+(w2-(mp+mpi)**2)/(q2+q20)
xpr(1) = 1./xpr(1)
xpr(2) = 1.+(w2-(mp+meta)**2)/(q2+q20)
xpr(2) = 1./xpr(2)
if(w.LE.(mp+mpi)) xpr(1) = 1.0
if(w.LE.(mp+meta)) xpr(2) = 1.0
CCC Calculate kinematics needed for threshold Relativistic B-W CCC
k = (w2 - mp2)/2./mp
kcm = (w2-mp2)/2./w
epicm = (W2 + mpi**2 -mp2 )/2./w
ppicm = SQRT(MAX(0.0,(epicm**2 - mpi**2)))
epi2cm = (W2 + (2.*mpi)**2 -mp2 )/2./w
ppi2cm = SQRT(MAX(0.0,(epi2cm**2 - (2.*mpi)**2)))
eetacm = (W2 + meta*meta -mp2 )/2./w
petacm = SQRT(MAX(0.0,(eetacm**2 - meta**2)))
num = 0
do i=1,6 !!! Read in resonance masses !!!
num = num + 1
mass(i) = xval(i)
enddo
do i=1,6 !!! Read in resonance widths !!!
num = num + 1
intwidth(i) = xval(num)
width(i) = intwidth(i)
enddo
mass(7) = xval(47)
intwidth(7) = xval(48)
width(7) = intwidth(7)
do i=1,7
kr(i) = (mass(i)**2-mp2)/2./mp
kcmr(i) = (mass(i)**2.-mp2)/2./mass(i)
epicmr(i) = (mass(i)**2 + mpi**2 -mp2 )/2./mass(i)
ppicmr(i) = SQRT(MAX(0.0,(epicmr(i)**2 - mpi**2)))
epi2cmr(i) = (mass(i)**2 + (2.*mpi)**2 -mp2 )/2./mass(i)
ppi2cmr(i) = SQRT(MAX(0.0,(epi2cmr(i)**2 - (2.*mpi)**2)))
eetacmr(i) = (mass(i)**2 + meta*meta -mp2 )/2./mass(i)
petacmr(i) = SQRT(MAX(0.0,(eetacmr(i)**2 - meta**2)))
CCC Calculate partial widths CCC
pwid(i,1) = intwidth(i)*(ppicm/ppicmr(i))**(2.*ang(i)+1.)
& *((ppicmr(i)**2+x0(i)**2)/(ppicm**2+x0(i)**2))**ang(i)
c !!! 1-pion decay mode
pwid(i,2) = intwidth(i)*(ppi2cm/ppi2cmr(i))**(2.*ang(i)+4.)
& *((ppi2cmr(i)**2+x0(i)**2)/(ppi2cm**2+x0(i)**2))
& **(ang(i)+2) !!! 2-pion decay mode
pwid(i,2) = W/mass(i)*pwid(i,2)
pwid(i,3) = 0. !!! eta decay mode
if(i.EQ.2.OR.i.EQ.5) then
pwid(i,3) = intwidth(i)*(petacm/petacmr(i))**(2.*ang(i)+1.)
& *((petacmr(i)**2+x0(i)**2)/(petacm**2+x0(i)**2))**ang(i)
c !!! eta decay only for S11's
endif
pgam(i) = (kcm/kcmr(i))**2*
& (kcmr(i)**2+x0(i)**2)/(kcm**2+x0(i)**2)
pgam(i) = intwidth(i)*pgam(i)
width(i) = br(i,1)*pwid(i,1)+br(i,2)*pwid(i,2)+br(i,3)*pwid(i,3)
enddo
CCC End resonance kinematics and Widths calculations CCC
CCC Begin resonance Q^2 dependence calculations CCC
do i=1,6
do j=1,4
num = num + 1
rescoef(i,j)=xval(num)
enddo
if(sf.EQ.1) then
height(i) = rescoef(i,1)*
& (1.+rescoef(i,2)*q2/(1.+rescoef(i,3)*q2))*
& mon**rescoef(i,4)
else
height(i) = (rescoef(i,1)+rescoef(i,2)*q2)
& *exp(-1.*rescoef(i,3)*q2)
endif
height(i) = height(i)*height(i)
enddo
if(sf.EQ.2) then !!! 4th resonance region !!!
height(7) = (xval(44)+xval(45)*q2)*exp(-1.0*xval(46)*q2)
else
height(7) = xval(49)*mon
endif
height(7) = height(7)*height(7)
CCC End resonance Q^2 dependence calculations CCC
do i=1,3 !!! Non-Res coefficients !!!
do j=1,4
num = num + 1
nr_coef(i,j)=xval(num)
enddo
enddo
CCC Calculate Breit-Wigners for all resonances CCC
sig_res = 0.0
do i=1,7
sigr(i) = width(i)*pgam(i)/((W2 - mass(i)**2.)**2.
& + (mass(i)*width(i))**2.)
sigr(i) = height(i)*kr(i)/k*kcmr(i)/kcm*sigr(i)/intwidth(i)
sig_res = sig_res + sigr(i)
enddo
sig_res = sig_res*w
if(sf.EQ.2) sig_res = sig_res*q2
CCC Finish resonances / start non-res background calculation CCC
sig_nr = 0.
if(sf.EQ.1.and.xpr(1).LT.1.0) then
c A0 = xval(37)*(1.0+xval(44)*q2)/(1.+q2/xval(42))**xval(43) !!! overall amplitude
A0 = xval(37)/(1.0+q2/xval(42))**xval(43)
t1 = xval(38)*log(1.05+q2)+xval(39)/(1.05+q2) !!! exponent of (1-xpr)
c t2 = xval(40)*log(2.0+q2/xval(41))+xval(45) !!! exponent of xpr
t2 = xval(40)*(1.0+q2/xval(41))**xval(44)
if(xpr(1).LE.1.0) then !!! 1-pi threshold
sig_nr = 389.4*A0*(1.-xpr(1))**t1*xpr(1)**t2
endif
if(xpr(2).LE.1.0) then !!! eta threshold
sig_nr = sig_nr+xval(46)*389.4*A0*(1.-xpr(2))**t1*xpr(2)**t2
endif
c write(6,*) q2,sf,t1,t2
elseif(sf.EQ.2.and.xpr(1).LT.1.0) then
A0 = xval(37)/(1.0+q2/xval(39))**2.0
t1 = xval(38)/(1.0+q2/(xval(40)))+xval(32)*log(q2+xval(36)) !!! exponent of (1-xpr)
t2 = xval(41)/(1.00+q2/xval(42))**xval(43) !!! exponent of xpr
c write(6,*) q2,a0,t1,t2
if(xpr(1).LE.1.0) then
sig_nr = sig_nr + 389.4*A0*
& xb*(1.-xpr(1))**t1*xpr(1)**t2
endif
endif
sig = sig_res + sig_nr
if((w-mp).LT.wdif(1)) sig = 0.0
1000 format(8f12.5)
1001 format(7f12.3)
RETURN
END
SUBROUTINE SMEARSUB(w2,q2,wfn,off,f2s,f1s,fLs)
CCCC Fermi smears structure functions. Requires subroutne GETFY CCCC
CCCC to be initialized first. CCCC
IMPLICIT none
real*8 w2,q2,mp,mp2,x,z,wwz,alpha,alpha2,gamma,gamma2
real*8 y,fy11,fy12,fy2,inc,f2s,f1s,fLs,f2pi,f2ni,xvaln(100)
real*8 sigtp,sigtn,siglp,sigln,f1pi,f1ni,fLpi,fLni
real*8 f1i(1000),f2i(1000),vfact1(1000),vfact2(1000)
real*8 vfact1off(1000),vfact2off(1000),fy11off,fy12off
real*8 fy2off,f1soff,f2soff,fLsoff
real*8 ymin,ymax,pi,pi2,epsd
real*8 c0,c1,c2,delta(1000)
integer i,j,nbins,wfn
c logical first/.true./
logical firsty/.false./
logical off
real*8 dsimps
external dsimps
C *****Off-shell parameters*****
if(wfn.eq.1) then
c0=-3.6735d0
c1=0.057717d0
c2=0.36419d0
elseif(wfn.eq.2) then
c0=-7.2061d0
c1=0.062022d0
c2=0.38018d0
elseif(wfn.eq.3) then
c0=1.7204d0
c1=0.050923d0
c2=0.34360d0
elseif(wfn.eq.4) then
c0=-1.7690d0
c1=0.058321d0
c2=0.36976d0
else
c0=0.d0