* $Id$
C*********************************************************************
-
+
+ FUNCTION PAWT(A,B,C)
+ IF(((A**2-(B+C)**2)*(A**2-(B-C)**2)).GT.0) THEN
+ PAWT = SQRT((A**2-(B+C)**2)*(A**2-(B-C)**2))/(2.*A)
+ ELSE
+ PAWT = 0
+ ENDIF
+ RETURN
+ END
+
SUBROUTINE LUDECY_HIJING(IP)
C...Purpose: to handle the decay of unstable particles.
C...Functions: momentum in two-particle decays, four-product and
C...matrix element times phase space in weak decays.
- PAWT(A,B,C)=SQRT((A**2-(B+C)**2)*(A**2-(B-C)**2))/(2.*A)
+
FOUR(I,J)=P(I,4)*P(J,4)-P(I,1)*P(J,1)-P(I,2)*P(J,2)-P(I,3)*P(J,3)
HMEPS(HA)=((1.-HRQ-HA)**2+3.*HA*(1.+HRQ-HA))*
&SQRT((1.-HRQ-HA)**2-4.*HRQ*HA)