1 DOUBLE PRECISION FUNCTION QCDRES( Z )
2 C ---------------------------------------------------------------------
3 C Purpose: To calculate the inclusive hadron(or photon)+hadron(or
5 C ---------------------------------------------------------------------
6 #include "herwig65.inc"
9 INTEGER I, MINPTS, NDIM, MAXPTS, LENWRK
11 C Set parameters for integration
12 PARAMETER(NDIM=3,MAXPTS=10000*NDIM,
13 * LENWRK=(NDIM+2)*(1+MAXPTS/(2**NDIM+2*NDIM*NDIM+2*NDIM+1)))
14 DOUBLE PRECISION Z, EPS
19 C INITIALISE INTEGRATION LIMITS (ALL 0 TO 1)
27 C Store the current z value
31 CALL PARTN( NDIM, A, B, 1.0, 10000 )
32 CALL INTGRL( NDIM, 0, 200, RESULT, ERROR )
35 C Re-include the PHAD factor (JMKERN divides out the probability of the
36 C photon becoming a hadronic = 1/phad)