1 | DOUBLE PRECISION FUNCTION PCL( A,B )
|
---|
2 |
|
---|
3 | C-----------------------------------------------------------------------
|
---|
4 | C P (MOMENTUM) C(ENTER OF MASS) L(ONGITUDINAL)
|
---|
5 | C
|
---|
6 | C RANDOM SELECTION OF LONGITUDINAL MOMENTUM IN CENTER OF MASS
|
---|
7 | C EXPONENTIAL DISTRIBUTION PCL(X) = EXP(-X/A)
|
---|
8 | C THIS FUNCTION IS CALLED FORM HMESON, ISOBAR, AND VHMESO
|
---|
9 | C ARGUMENTS:
|
---|
10 | C A = MEAN VALUE OF DISTRIBUTION
|
---|
11 | C B = CUT FOR LIMITING MOMENTUM
|
---|
12 | C
|
---|
13 | C CHANGES : J. KNAPP IK1 FZK KARLSRUHE
|
---|
14 | C-----------------------------------------------------------------------
|
---|
15 |
|
---|
16 | IMPLICIT DOUBLE PRECISION (A-H,O-Z)
|
---|
17 | *KEEP,RANDPA.
|
---|
18 | COMMON /RANDPA/ FAC,U1,U2,RD,NSEQ,ISEED,KNOR
|
---|
19 | DOUBLE PRECISION FAC,U1,U2
|
---|
20 | REAL RD(3000)
|
---|
21 | INTEGER ISEED(103,10),NSEQ
|
---|
22 | LOGICAL KNOR
|
---|
23 | *KEEP,RUNPAR.
|
---|
24 | COMMON /RUNPAR/ FIXHEI,THICK0,HILOECM,HILOELB,
|
---|
25 | * STEPFC,NRRUN,NSHOW,PATAPE,MONIIN,
|
---|
26 | * MONIOU,MDEBUG,NUCNUC,
|
---|
27 | * CETAPE,
|
---|
28 | * SHOWNO,ISHW,NOPART,NRECS,NBLKS,MAXPRT,NDEBDL,
|
---|
29 | * N1STTR,MDBASE,
|
---|
30 | * DEBDEL,DEBUG,FDECAY,FEGS,FIRSTI,FIXINC,FIXTAR,
|
---|
31 | * FIX1I,FMUADD,FNKG,FPRINT,FDBASE
|
---|
32 | * ,GHEISH,GHESIG
|
---|
33 | COMMON /RUNPAC/ DSN,HOST,USER
|
---|
34 | DOUBLE PRECISION FIXHEI,THICK0,HILOECM,HILOELB
|
---|
35 | REAL STEPFC
|
---|
36 | INTEGER NRRUN,NSHOW,PATAPE,MONIIN,MONIOU,MDEBUG,NUCNUC,
|
---|
37 | * SHOWNO,ISHW,NOPART,NRECS,NBLKS,MAXPRT,NDEBDL,
|
---|
38 | * N1STTR,MDBASE
|
---|
39 | INTEGER CETAPE
|
---|
40 | CHARACTER*79 DSN
|
---|
41 | CHARACTER*20 HOST,USER
|
---|
42 |
|
---|
43 | LOGICAL DEBDEL,DEBUG,FDECAY,FEGS,FIRSTI,FIXINC,FIXTAR,
|
---|
44 | * FIX1I,FMUADD,FNKG,FPRINT,FDBASE
|
---|
45 | * ,GHEISH,GHESIG
|
---|
46 | *KEND.
|
---|
47 |
|
---|
48 | C-----------------------------------------------------------------------
|
---|
49 |
|
---|
50 | C IF ( DEBUG ) WRITE(MDEBUG,*) 'PCL : A,B=',SNGL(A),SNGL(B)
|
---|
51 |
|
---|
52 | 1 CONTINUE
|
---|
53 | CALL RMMAR( RD,1,1 )
|
---|
54 | PCL = -A * LOG ( RD(1) )
|
---|
55 | IF ( PCL .GT. B ) GOTO 1
|
---|
56 | IF ( DEBUG ) WRITE(MDEBUG,*) 'PCL : PCL =',SNGL(PCL)
|
---|
57 |
|
---|
58 | RETURN
|
---|
59 | END
|
---|