1
integer function eepdf_n_components(partonid,beamid)
3
integer partonid,beamid
6
if (beamid .eq. 11) then
7
c other partons are zero
8
if (partonid .ne. 11) then
13
else if (beamid .eq. -11) then
14
if (partonid .ne. -11) then
20
eepdf_n_components=ncom
24
c This function return the power of (1-x)
25
real*8 function eepdf_tilde_power(Q2,n,partonid,beamid)
32
data alphaem/0.007562397d0/
34
integer n,partonid,beamid
38
beta = alphaem/PI * (dlog(Q2/me/me)-1d0)
42
if (beamid .eq. 11) then
43
c other partons are zero
44
if (partonid .ne. 11) then
49
else if (n .eq. 2) then
51
else if (n .eq. 3) then
53
else if (n .eq. 4) then
59
else if (beamid .eq. -11) then
60
if (partonid .ne. -11) then
65
else if (n .eq. 2) then
67
else if (n .eq. 3) then
69
else if (n .eq. 4) then
79
c This function return the type of this component
80
integer function eepdf_tilde_type(n,partonid,beamid)
82
integer n,partonid,beamid
86
if (beamid .eq. 11) then
87
c other partons are zero
88
if (partonid .ne. 11) then
93
else if (n .eq. 2) then
95
else if (n .eq. 3) then
97
else if (n .eq. 4) then
103
else if (beamid .eq. -11) then
104
if (partonid .ne. -11) then
109
else if (n .eq. 2) then
111
else if (n .eq. 3) then
113
else if (n .eq. 4) then
120
eepdf_tilde_type = res
123
c This is to calculate the factor for grid implementation
124
real*8 function eepdf_tilde_factor(x,Q2,n,partonid,beamid)
132
data alphaem/0.007562397d0/
134
integer n,partonid,beamid
138
beta = alphaem/PI * (dlog(Q2/me/me)-1d0)
141
if (beamid .eq. 11) then
142
c other partons are zero
143
if (partonid .ne. 11) then
148
else if (n .eq. 2) then
150
else if (n .eq. 3) then
152
else if (n .eq. 4) then
158
else if (beamid .eq. -11) then
159
if (partonid .ne. -11) then
164
else if (n .eq. 2) then
166
else if (n .eq. 3) then
168
else if (n .eq. 4) then
175
eepdf_tilde_factor = res