19 common/lujets/
n,
k(nlupdm,5),
p(nlupdm,nplbuf),
v(nlupdm,5)
28 COMMON /leptou/ cut(14),lst(40),parl(30),
30 REAL cut,parl,
x,
y,w2,q2,u
34 common/ludat1/mstu(200),paru(200),mstj(200),parj(200)
39 common/ludat2/kchg(500,3),pmas(500,4),parf(2000),vckm(4,4)
49 INTEGER i,j,ifirst,i1,i2,iaq,iq,ntry1,ntry2,kfb,kfh1,kfh2
50 INTEGER kiaq,kiq,kdummy,nparton
51 REAL*8 energy,maxenergy,invmass,threshold
53 REAL*8 tot2,m1,m2,rotarg,pabs,costhe,ptemp,
phi,
pi
54 REAL*8 pcps,pc2,pn2,ps2,a,b,
c,eps2,eps1
55 REAL*8 w441,w443,w445,w10441,w20443,w30443,tmp
56 REAL*8 w551,w553,w555,w10551,w20553,w30553
57 LOGICAL first,charmonium,bottonium,diquark
58 DATA pi/3.14159265359d0/
82 psum(1)=psum(1)+
p(i,1)
83 psum(2)=psum(2)+
p(i,2)
84 psum(3)=psum(3)+
p(i,3)
85 psum(4)=psum(4)+
p(i,4)
89 ELSEIF (
k(i,1).EQ.1 .AND. .NOT. first)
THEN
90 psum(1)=psum(1)+
p(i,1)
91 psum(2)=psum(2)+
p(i,2)
92 psum(3)=psum(3)+
p(i,3)
93 psum(4)=psum(4)+
p(i,4)
96 invmass=psum(4)**2-psum(1)**2-psum(2)**2-psum(3)**2
100 IF (
energy.LT.dble(parj(32)) .AND.
101 & ((abs(
k(ifirst,2)).EQ.4 .AND. abs(
k(i,2)).EQ.4
102 & .OR. abs(
k(ifirst,2)).EQ.5 .AND. abs(
k(i,2)).EQ.5) .OR.
112 p(
n,5)=sqrt(
max(0.d0,invmass))
118 IF(abs(
k(i1,2)).EQ.4)
THEN
121 ELSEIF(abs(
k(i1,2)).EQ.5)
THEN
124 ELSEIF(
lucomp(
k(i1,2)).EQ.90 .OR.
140 IF (
k(i1,2).EQ.4 .OR.
k(i1,2).EQ.5 .OR.
154 CALL
lukfdi(kiq,kdummy,kfb,kfh1)
156 CALL
lukfdi(kiaq,-kfb,kdummy,kfh2)
157 IF (kfh1.EQ.0 .OR. kfh2.EQ.0)
THEN
159 IF (ntry1.GE.100)
THEN
170 IF (kchg(
lucomp(kfh1),2)*isign(1,kfh1)+
171 + kchg(
lucomp(kfh2),2)*isign(1,kfh2) .NE.0)
THEN
177 IF (
p(
n,5).LE.
p(
n+1,5)+
p(
n+2,5)+parj(64) .AND.
178 &
p(
n,5).GE.threshold+parj(64) .AND.
183 IF (
p(
n,5).GE.
p(
n+1,5)+
p(
n+2,5)+parj(64))
THEN
189 rotarg=(tot2-m1**2-m2**2)**2-4.d0*m1**2*m2**2
190 IF (rotarg.LT.0.d0)
THEN
194 pabs=0.5d0*sqrt(rotarg/tot2)
195 costhe=-1.d0+2.d0*
rlu(0)
196 ptemp=pabs*sqrt(1.d0-costhe**2)
198 p(
n+1,4)=sqrt(pabs**2+m1**2)
201 p(
n+1,1)=ptemp*sin(
phi)
202 p(
n+2,4)=sqrt(pabs**2+m2**2)
219 CALL ludbrb(
n+1,
n+2,0.,0.,psum(1)/psum(4),
220 & psum(2)/psum(4),psum(3)/psum(4))
245 tmp=
rlu(0)*(w441+w443+w445+w10441+w20443+w30443)
246 IF (tmp .LT. w441)
THEN
248 ELSEIF (tmp .LT. w441+w443)
THEN
250 ELSEIF (tmp .LT. w441+w443+w445)
THEN
252 ELSEIF (tmp .LT. w441+w443+w445+w10441)
THEN
254 ELSEIF (tmp .LT. w441+w443+w445+w10441+w20443)
THEN
263 weight=w441/(w441+w443+w445+w10441+w20443+w30443)
267 weight=w443/(w441+w443+w445+w10441+w20443+w30443)
271 weight=w445/(w441+w443+w445+w10441+w20443+w30443)
275 weight=w10441/(w441+w443+w445+w10441+w20443+w30443)
279 weight=w20443/(w441+w443+w445+w10441+w20443+w30443)
283 weight=w30443/(w441+w443+w445+w10441+w20443+w30443)
286 ELSEIF(bottonium)
THEN
295 tmp=
rlu(0)*(w551+w553+w555+w10551+w20553+w30553)
296 IF (tmp .LT. w551)
THEN
298 ELSEIF (tmp .LT. w551+w553)
THEN
300 ELSEIF (tmp .LT. w551+w553+w555)
THEN
302 ELSEIF (tmp .LT. w551+w553+w555+w10551)
THEN
304 ELSEIF (tmp .LT. w551+w553+w555+w10551+w20553)
THEN
313 weight=w551/(w551+w553+w555+w10551+w20553+w30553)
317 weight=w553/(w551+w553+w555+w10551+w20553+w30553)
321 weight=w555/(w551+w553+w555+w10551+w20553+w30553)
325 weight=w10551/(w551+w553+w555+w10551+w20553+w30553)
329 weight=w20553/(w551+w553+w555+w10551+w20553+w30553)
333 weight=w30553/(w551+w553+w555+w10551+w20553+w30553)
342 CALL
lukfdi(kiq,kiaq,kdummy,kfh1)
343 IF (kfh1.EQ.0) goto 70
345 IF (kfh1.EQ.2214) kfh1=2212
346 IF (kfh1.EQ.2114) kfh1=2112
347 IF (kfh1.EQ.-2214) kfh1=-2212
348 IF (kfh1.EQ.-2114) kfh1=-2112
363 IF (0.LT.
k(j,1) .AND.
k(j,1).LT.10 .AND.
365 & (
k(j,2).EQ.21 .OR. abs(
k(j,2)).LT.10 .OR.
366 & abs(
k(j,2)).GT.100) )
THEN
367 invmass=(
p(
n,4)+
p(j,4))**2-(
p(
n,1)+
p(j,1))**2-
368 - (
p(
n,2)+
p(j,2))**2-(
p(
n,3)+
p(j,3))**2
370 IF (
energy.GT.maxenergy )
THEN
378 pcps=dble(
p(
n,4))*dble(
p(i1,4))
379 - -dble(
p(
n,1))*dble(
p(i1,1))
380 - -dble(
p(
n,2))*dble(
p(i1,2))
381 - -dble(
p(
n,3))*dble(
p(i1,3))
383 pn2=dble(
p(
n+1,5))**2
387 c=(pn2-pc2)*(4.d0*pcps*(pcps+pc2)-pc2*(pn2-pc2))/
388 / 4.d0/(pcps**2-pc2*ps2)
389 IF (b**2-4.d0*
c*a.LT.0.d0)
THEN
393 eps2=(-b+sqrt(
max(0.d0,b**2-4.d0*
c*a)))/2.d0/a
394 eps1=(pn2-pc2+2.d0*eps2*(ps2+pcps))/2.d0/(pc2+pcps)
396 p(
n+1,j)=(1.+eps1)*
p(
n,j)-eps2*
p(i1,j)
397 p(i1,j)=(1.+eps2)*
p(i1,j)-eps1*
p(
n,j)