8 SUBROUTINE py4frm(ATOTSQ,A1SQ,A2SQ,ISTRAT,IRAD,ITAU,ICOM)
11 IMPLICIT DOUBLE PRECISION(a-
h, o-
z)
16 common/
pydat1/mstu(200),paru(200),mstj(200),parj(200)
21 dimension ijoin(2),intau(4)
35 IF(
k(
i,1).LE.0.OR.
k(
i,1).GT.10) goto 100
37 IF((kfa.GE.1.AND.kfa.LE.6).OR.(kfa.GE.11.AND.kfa.LE.16))
THEN
44 CALL
pyerrm(16,
'(PY4FRM:) more than two fermions')
52 CALL
pyerrm(16,
'(PY4FRM:) more than two antifermions')
59 IF(
i3.EQ.0.OR.
i4.EQ.0)
THEN
60 CALL
pyerrm(16,
'(PY4FRM:) event contains too few fermions')
63 CALL
pyerrm(6,
'(PY4FRM:) fermions arranged in wrong order')
67 IF(iabs(
k(
i1,2)).LT.10.AND.iabs(
k(
i2,2)).LT.10)
THEN
69 ELSEIF(iabs(
k(
i1,2)).GT.10.AND.iabs(
k(
i2,2)).GT.10)
THEN
72 CALL
pyerrm(16,
'(PY4FRM:) first fermion pair inconsistent')
74 IF(iabs(
k(
i3,2)).LT.10.AND.iabs(
k(
i4,2)).LT.10)
THEN
76 ELSEIF(iabs(
k(
i3,2)).GT.10.AND.iabs(
k(
i4,2)).GT.10)
THEN
79 CALL
pyerrm(16,
'(PY4FRM:) second fermion pair inconsistent')
84 IF(irad.EQ.0) mstj(41)=1
91 IF(iql12.EQ.iql34)
THEN
94 delta=atotsq-a1sq-a2sq
96 IF(delta.GT.0d0) r1sq=r1sq+delta
97 IF(delta.LT.0d0) r2sq=
max(0d0,r2sq+delta)
98 ELSEIF(istrat.EQ.2)
THEN
99 IF(delta.GT.0d0) r2sq=r2sq+delta
100 IF(delta.LT.0d0) r1sq=
max(0d0,r1sq+delta)
102 IF(r2sq.GT.
pyr(0)*(r1sq+r2sq))
THEN
110 IF(
mstp(115).GE.1.AND.iql12.EQ.1.AND.iql34.EQ.1)
THEN
119 IF(
k(ip1,2)+
k(ip2,2).EQ.0)
THEN
123 ELSEIF(
pychge(
k(ip1,2)).GT.0)
THEN
150 p(
n+1,5)=sqrt(
max(0d0,
p(
n+1,4)**2-
p(
n+1,1)**2-
p(
n+1,2)**2-
152 p(
n+2,5)=sqrt(
max(0d0,
p(
n+2,4)**2-
p(
n+2,1)**2-
p(
n+2,2)**2-
179 IF(iql12.EQ.1.OR.irad.EQ.1)
THEN
180 pm12s=(
p(ip1,4)+
p(ip2,4))**2-(
p(ip1,1)+
p(ip2,1))**2-
181 & (
p(ip1,2)+
p(ip2,2))**2-(
p(ip1,3)+
p(ip2,3))**2
182 CALL
pyshow(ip1,ip2,sqrt(
max(0d0,pm12s)))
190 IF(iql34.EQ.1.OR.irad.EQ.1)
THEN
191 pm34s=(
p(ip3,4)+
p(ip4,4))**2-(
p(ip3,1)+
p(ip4,1))**2-
192 & (
p(ip3,2)+
p(ip4,2))**2-(
p(ip3,3)+
p(ip4,3))**2
193 CALL
pyshow(ip3,ip4,sqrt(
max(0d0,pm34s)))
199 IF(
mstp(115).GE.1.AND.iql12.EQ.1.AND.iql34.EQ.1)
THEN
200 CALL
pyreco(iw1,iw2,nsd1,naft1)
208 IF(iabs(
k(
i,2)).EQ.15.AND.
k(
i,1).EQ.1)
THEN