]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HIJING/hipyset1_35/luptdi_hijing.F
Fix for FMD DA
[u/mrichter/AliRoot.git] / HIJING / hipyset1_35 / luptdi_hijing.F
CommitLineData
e74335a4 1* $Id$
2
3C*********************************************************************
4
5 SUBROUTINE LUPTDI_HIJING(KFL,PX,PY)
6
7C...Purpose: to generate transverse momentum according to a Gaussian.
8#include "ludat1_hijing.inc"
9
10C...Generate p_T and azimuthal angle, gives p_x and p_y.
11 KFLA=IABS(KFL)
12 PT=PARJ(21)*SQRT(-LOG(MAX(1E-10,RLU_HIJING(0))))
13 IF(MSTJ(91).EQ.1) PT=PARJ(22)*PT
14 IF(KFLA.EQ.0.AND.MSTJ(13).LE.0) PT=0.
15 PHI=PARU(2)*RLU_HIJING(0)
16 PX=PT*COS(PHI)
17 PY=PT*SIN(PHI)
18
19 RETURN
20 END