]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HIJING/hijing1_36/hifun.F
Corrected compilation options
[u/mrichter/AliRoot.git] / HIJING / hijing1_36 / hifun.F
CommitLineData
e74335a4 1* $Id$
2C
3C
4C The next three subroutines are for Monte Carlo generation
5C according to a given function FHB. One calls first HIFUN
6C with assigned channel number I, low and up limits. Then to
7C generate the distribution one can call HIRND(I) which gives
8C you a random number generated according to the given function.
9C
10 SUBROUTINE HIFUN(I,XMIN,XMAX,FHB)
11#include "hijhb.inc"
12 EXTERNAL FHB
13 FNORM=GAUSS1(FHB,XMIN,XMAX,0.001)
14 DO 100 J=1,201
15 XX(I,J)=XMIN+(XMAX-XMIN)*(J-1)/200.0
16 XDD=XX(I,J)
17 RR(I,J)=GAUSS1(FHB,XMIN,XDD,0.001)/FNORM
18100 CONTINUE
19 RETURN
20 END