Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pygdir.f
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file pygdir.f
1 
2 C*********************************************************************
3 
4 C...PYGDIR
5 C...Evaluates the direct contribution, i.e. the C^gamma term,
6 C...as needed in MSbar parametrizations.
7 C...Adapted from SaSgam library, authors G.A. Schuler and T. Sjostrand.
8 
9  SUBROUTINE pygdir(X,Q2,P2,Q02,XPGA)
10 
11 C...Double precision and integer declarations.
12  IMPLICIT DOUBLE PRECISION(a-h, o-z)
13  IMPLICIT INTEGER(i-n)
14  INTEGER pyk,pychge,pycomp
15 C...Local array and data.
16  dimension xpga(-6:6)
17  DATA pmc/1.3d0/, pmb/4.6d0/, aem2pi/0.0011614d0/
18 
19 C...Reset output.
20  DO 100 kfl=-6,6
21  xpga(kfl)=0d0
22  100 CONTINUE
23 
24 C...Evaluate common x-dependent expression.
25  xtmp = (x**2+(1d0-x)**2) * (-log(x)) - 1d0
26  cgam = 3d0*aem2pi*x * (xtmp*(1d0+p2/(p2+q02)) + 6d0*x*(1d0-x))
27 
28 C...d, u, s part by simple charge factor.
29  xpga(1)=(1d0/9d0)*cgam
30  xpga(2)=(4d0/9d0)*cgam
31  xpga(3)=(1d0/9d0)*cgam
32 
33 C...Also fill for antiquarks.
34  DO 110 kf=1,5
35  xpga(-kf)=xpga(kf)
36  110 CONTINUE
37 
38  RETURN
39  END