EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
rdarrynlo.F
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file rdarrynlo.F
1 
2 
3  subroutine rdarrynlo(x,q2,aux,iflag)
4  implicit real*8(a-h,o-z)
5  implicit integer(i-n)
6  dimension aux(6)
7  common/pdist/arraya(151,20,6)
8 *
9 * to avoid variable conflictions, a second keep element is necessary
10 * with the same common block name (see LEPTO2)
11 *
12 
13  COMMON /leptou/ cut(14),lst(40),parl(30),
14  & xlp,ylp,w2lp,q2lp,ulp
15  REAL cut,parl,xlp,ylp,w2lp,q2lp,ulp
16  INTEGER lst
17  SAVE /leptou/
18 
19 
20  nx=151
21  ndata=nx-1
22  nq2pts=20
23  nq2inv=nq2pts-1
24  q2sta=1.d0
25  q2fin=1.d6
26  ymin=5.d0
27  xmin=10.d0**(-ymin)
28  xmax=1.d0
29 
30  if (q2.lt.q2sta) then
31  q2=q2sta
32  IF(cut(5).lt.q2.and.cut(6).gt.q2.AND.icount.lt.10) THEN
33  icount = icount + 1
34  WRITE(*,*) 'WARNING : MRSEB : Q^2 set to minimal value !',q2
35  ENDIF
36  endif
37  if (q2.gt.q2fin) then
38  q2=q2fin
39  IF(cut(5).lt.q2.and.cut(6).gt.q2.AND.icount.lt.10) THEN
40  icount = icount + 1
41  WRITE(*,*) 'WARNING : MRSEB : Q^2 set to maximal value !',q2
42  ENDIF
43  endif
44  if (x.lt.xmin) then
45  x=xmin
46  IF(cut(1).lt.x.and.cut(2).gt.x.AND.icount.lt.10) THEN
47  icount = icount + 1
48  WRITE(*,*) 'WARNING : MRSEB : X set to minimal value !',x
49  ENDIF
50  endif
51  if (x.gt.xmax) then
52  x=xmax
53  IF(cut(1).lt.x.and.cut(2).gt.x.AND.icount.lt.10) THEN
54  icount = icount + 1
55  WRITE(*,*) 'WARNING : MRSEB : X set to maximal value !',x
56  ENDIF
57  endif
58 
59  y=dlog10(x)
60  ram=(y+ymin)*ndata/ymin+1.d0
61  iram=int(ram)
62  fraci=ram-dble(iram)
63  ram=dlog(q2/q2sta)*nq2inv/dlog(q2fin/q2sta)+1.d0
64  jram=int(ram)
65  fracj=ram-dble(jram)
66 
67  do i=1,6
68  aux(i)=(arraya(iram,jram,i)*(1.d0-fraci)
69  . +arraya(iram+1,jram,i)*fraci)*(1.d0-fracj)+
70  . (arraya(iram,jram+1,i)*(1.d0-fraci)
71  . +arraya(iram+1,jram+1,i)*fraci)*fracj
72  enddo
73 
74  return
75  end