11 IMPLICIT DOUBLE PRECISION(a-
h, o-
z)
15 parameter(ksusy1=1000000,ksusy2=2000000,ktechn=3000000,
16 &kexcit=4000000,kdimen=5000000)
19 common/
pydat1/mstu(200),paru(200),mstj(200),parj(200)
20 common/
pydat2/kchg(500,4),pmas(500,4),parf(2000),vckm(4,4)
23 dimension sm(3,3),sax(3),
ps(3,5)
40 IF(
k(
i,1).LE.0.OR.
k(
i,1).GT.10) goto 170
41 IF(mstu(41).GE.2)
THEN
43 IF(kc.EQ.0.OR.kc.EQ.12.OR.kc.EQ.14.OR.kc.EQ.16.OR.
44 & kc.EQ.18.OR.
k(
i,2).EQ.ksusy1+22.OR.
k(
i,2).EQ.39.OR.
45 &
k(
i,2).EQ.ksusy1+39) goto 170
46 IF(mstu(41).GE.3.AND.kchg(kc,2).EQ.0.AND.
pychge(
k(
i,2)).EQ.0)
49 IF(
n+
np+1.GE.mstu(4)-mstu(32)-5)
THEN
50 CALL
pyerrm(11,
'(PYJMAS:) no more memory left in PYJETS')
59 IF(mstu(42).EQ.0)
p(
n+
np,5)=0d0
60 IF(mstu(42).EQ.1.AND.
k(
i,2).NE.22)
p(
n+
np,5)=pimass
66 sm(j1,j2)=sm(j1,j2)+
p(
i,j1)*
p(
i,j2)
69 pss=pss+(
p(
i,1)**2+
p(
i,2)**2+
p(
i,3)**2)
77 CALL
pyerrm(8,
'(PYJMAS:) too few particles for analysis')
82 paru(61)=sqrt(
max(0d0,
ps(3,4)**2-
ps(3,1)**2-
ps(3,2)**2-
88 sm(j1,j2)=sm(j1,j2)/pss
91 sq=(sm(1,1)*sm(2,2)+sm(1,1)*sm(3,3)+sm(2,2)*sm(3,3)-
92 &sm(1,2)**2-sm(1,3)**2-sm(2,3)**2)/3d0-1d0/9d0
93 sr=-0.5d0*(sq+1d0/9d0+sm(1,1)*sm(2,3)**2+sm(2,2)*sm(1,3)**2+
94 &sm(3,3)*sm(1,2)**2-sm(1,1)*sm(2,2)*sm(3,3))+
95 &sm(1,2)*sm(1,3)*sm(2,3)+1d0/27d0
96 sp=cos(acos(
max(min(sr/sqrt(-sq**3),1d0),-1d0))/3d0)
97 sma=1d0/3d0+sqrt(-sq)*
max(2d0*
sp,sqrt(3d0*(1d0-
sp**2))-
sp)
101 sm(j1,j1)=sm(j1,j1)-sma
109 IF(abs(sm(j1,j2)).LE.smax) goto 220
118 rl=sm(j1,jb)/sm(ja,jb)
120 sm(j1,j2)=sm(j1,j2)-rl*sm(ja,j2)
121 IF(abs(sm(j1,j2)).LE.smax) goto 240
127 jb2=jb+2-3*((jb+1)/3)
130 sax(jb)=-(sm(ja,jb1)*sax(jb1)+sm(ja,jb2)*sax(jb2))/sm(ja,jb)
134 psax=
p(
i,1)*sax(1)+
p(
i,2)*sax(2)+
p(
i,3)*sax(3)
142 pms=
max(1d-10,
ps(1,4)**2-
ps(1,1)**2-
ps(1,2)**2-
ps(1,3)**2)+
143 &
max(1d-10,
ps(2,4)**2-
ps(2,1)**2-
ps(2,2)**2-
ps(2,3)**2)
153 IF(
k(
i,3).EQ.1) pmdi=2d0*(
p(
i,5)**2-pps)
154 IF(
k(
i,3).EQ.2) pmdi=2d0*(
p(
i,5)**2+pps)
162 IF(pmd.LT.-paru(48)*pms)
THEN
176 ps(1,5)=sqrt(
max(0d0,
ps(1,4)**2-
ps(1,1)**2-
ps(1,2)**2-
ps(1,3)**2))
177 ps(2,5)=sqrt(
max(0d0,
ps(2,4)**2-
ps(2,1)**2-
ps(2,2)**2-
ps(2,3)**2))
179 pml=min(
ps(1,5),
ps(2,5))