1 *CMZ : 17/07/95 11.08.55 by Jonathan Butterworth
2 *-- Author : J. M. Butterworth
3 SUBROUTINE JMPN( PROBS, ZDUB, K )
4 C --------------------------------------------------------------------------
5 C Purpose: Returns the probabilities of N scatters at a given z, by
6 C interpolating between the points stored during initialisation.
7 C Returned arg. J is the lower edge of the s bin we are in.
8 C --------------------------------------------------------------------------
9 #include "herwig65.inc"
14 DOUBLE PRECISION Z, PROBS( MAXMS )
15 DOUBLE PRECISION JMSC1, JMSC2, Z1, Z2, SCSIG, M, C
23 IF (IERROR.NE.0) RETURN
25 IF (ZDUB.LT.-0.5D0) THEN
27 PROBS(J)=JMARRY(4+J,1)
34 IF (Z.LE.JMARRY( 1, I )) GOTO 2
38 WRITE(JMOUT,*) 'JMPN: ILLEGAL Z INPUT! ',Z
42 C We are interpolating between JMARRY(J,I-1) and JMARRY(J,I)
43 C Linear interpolation.
50 IF (JMARRY(4+J,I-1).GT.0.0) THEN
51 JMSC1 = JMARRY(4+J,I-1)
54 IF (JMARRY(4+J,I).GT.0.D0) THEN
61 M = (JMSC2-JMSC1)/(Z2-Z1)