5 C Modified for HIJING program
7 c modification July 22, 1997 In pyremnn put an upper limit
8 c on the total pt kick the parton can accumulate via multiple
9 C scattering. Set the upper limit to be the sqrt(s)/2,
10 c this is fix cronin bug for Pb+Pb events at SPS energy.
13 C Last modification Oct. 1993 to comply with non-vax
17 SUBROUTINE LU1ENT_HIJING(IP,KF,PE,THE,PHI)
19 C...Purpose: to store one parton/particle in commonblock LUJETS.
20 #include "lujets_hijing.inc"
21 #include "ludat1_hijing.inc"
22 #include "ludat2_hijing.inc"
26 IF(MSTU(12).GE.1) CALL LULIST_HIJING(0)
28 IF(IPA.GT.MSTU(4)) CALL LUERRM_HIJING(21,
29 &'(LU1ENT_HIJING:) writing outside LUJETS_HIJING memory')
31 IF(KC.EQ.0) CALL LUERRM_HIJING(12
32 $ ,'(LU1ENT_HIJING:) unknown flavour code')
34 C...Find mass. Reset K, P and V vectors.
36 IF(MSTU(10).EQ.1) PM=P(IPA,5)
37 IF(MSTU(10).GE.2) PM=ULMASS_HIJING(KF)
43 C...Store parton/particle in K and P vectors.
45 IF(IP.LT.0) K(IPA,1)=2
49 PA=SQRT(P(IPA,4)**2-P(IPA,5)**2)
50 P(IPA,1)=PA*SIN(THE)*COS(PHI)
51 P(IPA,2)=PA*SIN(THE)*SIN(PHI)
54 C...Set N. Optionally fragment/decay.
56 IF(IP.EQ.0) CALL LUEXEC_HIJING