Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyth_xsec.f
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file pyth_xsec.f
1  DOUBLE PRECISION FUNCTION pyth_xsec(dy,dx,dQ2,dF1,dF2)
2 
3  implicit none
4  include "mc_set.inc"
5 
6 *-----deklaration----------------------
7 
8  DOUBLE PRECISION dx, dq2,dy,debea ! kinematic variables
9  DOUBLE PRECISION dbrack ! intermed. factor
10  double precision emass2,alpha2,pi
11  double precision df1,df2
12 ! Load up some convenient variables
13  pi=3.1415926d0
14  alpha2=0.729735d-2**2
15  emass2=masse**2
16  debea = dble(mcset_enebeam)
17 ! Check that the kinematics are reasonable
18  if (dx.eq.0d0) then
19  goto 999
20  endif
21  IF(dx.LE.0.d0.OR.dx.GE.1.d0.OR.
22  1 dy.LE.0.d0.OR.dy.GE.1.d0.OR.dq2.le.0) then
23  goto 999
24  endif
25 ! Determine the UNPOLARIZED xsec
26 
27  dbrack = (4.d0*pi*alpha2)/dq2**2
28 ! ........ that's dSigma/dlogQ2/dlogy
29 
30  pyth_xsec = dbrack*(dy**2*(1-2d0*emass2/dq2)*df1+
31  1 (1-dy-dq2/(4d0*debea**2))*df2/dx)*dx*dq2
32 
33 ! Leave by the front door
34 
35  RETURN
36 
37 ! Leave by the back door
38 
39 999 continue
40  pyth_xsec = 0.0d0
41  return
42  end
43