4 FUNCTION lqmcut(XP,ZP,AM1,AM2,AM3)
13 COMMON /leptou/ cut(14),lst(40),parl(30),
15 REAL cut,parl,
x,
y,w2,q2,u
19 COMMON /linter/ pari(50),ewqc(2,2,8),qc(8),zl(2,4),zq(2,8),pq(17)
20 REAL pari,ewqc,qc,zl,zq,pq
25 REAL xp,zp,am1,am2,am3,s12,s23,s13
26 REAL w,x1,
x2,
x3,pa1,pa2,pa3
27 DATA s12,s23,s13/3*0./
31 s23=q2*(xp-
x)*(1.-zp)/
x/xp+am2**2+am3**2
32 s13=q2*(xp-
x)*zp/
x/xp+am1**2+am3**2
33 ELSEIF(lst(24).EQ.3)
THEN
35 s23=q2*(xp-
x)*(1.-zp)/
x/xp+am2**2+am3**2
36 s12=q2*(xp-
x)*zp/
x/xp+am1**2+am2**2
37 IF(s13.LT.(am1+am3)**2) goto 900
48 IF(x1.GT.1..OR.
x2.GT.1..OR.
x3.GT.1.) goto 900
49 IF(x1*w/2..LT.am1.OR.
x2*w/2..LT.am2.OR.
x3*w/2..LT.am3) goto 900
50 pa1=sqrt((0.5*x1*w)**2-am1**2)
51 pa2=sqrt((0.5*
x2*w)**2-am2**2)
52 pa3=sqrt((0.5*
x3*w)**2-am3**2)
53 IF(abs((pa3**2-pa1**2-pa2**2)/(2.*pa1*pa2)).GE.1.) goto 900
54 IF(abs((pa2**2-pa1**2-pa3**2)/(2.*pa1*pa3)).GE.1.) goto 900