6 dimension rdp(300),lqp(300),rdt(300),lqt(300)
7 common/hijcrdn/
yp(3,300),
yt(3,300)
12 common/hijjet1/
npj(300),
kfpj(300,500),
pjpx(300,500),
22 common/histrng/
nfp(300,15),
pp(300,15),
nft(300,15),
pt(300,15)
32 IF(ntp.EQ.2) go
to 400
33 IF(ntp.EQ.3) go
to 2000
38 IF(
nfp(jpjt,7).NE.1)
RETURN
42 ptjet0=sqrt(
pjpx(jp,i)**2+
pjpy(jp,i)**2)
43 IF(ptjet0.LE.
hipr1(11)) go
to 290
44 ptot=sqrt(ptjet0*ptjet0+
pjpz(jp,i)**2)
50 IF(
nfp(i2,5).NE.3 .OR. i2.EQ.jp) go
to 100
56 IF(dphi.GE.
hipr1(40)/2.0) go
to 100
58 IF(rd0*sin(dphi).GT.
hipr1(12)) go
to 100
66 IF(rdp(i2).LT.rdp(j2)) go
to 110
77 IF(
nft(i2,5).NE.3) go
to 120
83 IF(dphi.GT.
hipr1(40)/2.0) go
to 120
85 IF(rd0*sin(dphi).GT.
hipr1(12)) go
to 120
93 IF(rdt(i2).LT.rdt(j2)) go
to 130
113 210
IF(mt.GE.kt .AND. mp.GE.kp) go
to 290
114 IF(mt.GE.kt) go
to 220
115 IF(mp.GE.kp) go
to 240
116 IF(rdp(mp+1).GT.rdt(mt+1)) go
to 240
119 IF(rn.GE.1.0-exp(-drr/
hipr1(13))) go
to 210
121 IF(
kfpj(jp,i).NE.21) dp=0.5*dp
123 IF(dp.LE.0.2) go
to 210
124 IF(ptot.LE.0.4) go
to 290
125 IF(ptot.LE.dp) dp=ptot-0.2
128 IF(
kfpj(jp,i).NE.21)
THEN
129 prshu=
pp(lqp(mp),1)**2+
pp(lqp(mp),2)**2
131 de=sqrt(
pjpm(jp,i)**2+ptot**2)
132 & -sqrt(
pjpm(jp,i)**2+(ptot-dp)**2)
133 ershu=(
pp(lqp(mp),4)+de-dp)**2
136 pp(lqp(mp),4)=sqrt(ershu)
137 pp(lqp(mp),5)=sqrt(amshu)
146 npj(lqp(mp))=
npj(lqp(mp))+1
157 IF(rn.GE.1.0-exp(-drr/
hipr1(13))) go
to 210
159 IF(dp.LE.0.2) go
to 210
160 IF(ptot.LE.0.4) go
to 290
161 IF(ptot.LE.dp) dp=ptot-0.2
164 IF(
kfpj(jp,i).NE.21)
THEN
165 prshu=
pt(lqt(mt),1)**2+
pt(lqt(mt),2)**2
167 de=sqrt(
pjpm(jp,i)**2+ptot**2)
168 & -sqrt(
pjpm(jp,i)**2+(ptot-dp)**2)
169 ershu=(
pt(lqt(mt),4)+de-dp)**2
172 pt(lqt(mt),4)=sqrt(ershu)
173 pt(lqt(mt),5)=sqrt(amshu)
182 ntj(lqt(mt))=
ntj(lqt(mt))+1
190 260
pjpx(jp,i)=(ptot-dp)*
v1
208 400
IF(
nft(jpjt,7).NE.1)
RETURN
211 ptjet0=sqrt(
pjtx(jt,i)**2+
pjty(jt,i)**2)
212 IF(ptjet0.LE.
hipr1(11)) go
to 690
213 ptot=sqrt(ptjet0*ptjet0+
pjtz(jt,i)**2)
218 IF(
nfp(i2,5).NE.3) go
to 500
224 IF(dphi.GT.
hipr1(40)/2.0) go
to 500
226 IF(rd0*sin(dphi).GT.
hipr1(12)) go
to 500
229 rdp(kp)=
cos(dphi)*rd0
234 IF(rdp(i2).LT.rdp(j2)) go
to 510
245 IF(
nft(i2,5).NE.3 .OR. i2.EQ.jt) go
to 520
251 IF(dphi.GT.
hipr1(40)/2.0) go
to 520
253 IF(rd0*sin(dphi).GT.
hipr1(12)) go
to 520
256 rdt(kt)=
cos(dphi)*rd0
261 IF(rdt(i2).LT.rdt(j2)) go
to 530
281 610
IF(mt.GE.kt .AND. mp.GE.kp) go
to 690
282 IF(mt.GE.kt) go
to 620
283 IF(mp.GE.kp) go
to 640
284 IF(rdp(mp+1).GT.rdt(mt+1)) go
to 640
287 IF(rn.GE.1.0-exp(-drr/
hipr1(13))) go
to 610
289 IF(
kftj(jt,i).NE.21) dp=0.5*dp
291 IF(dp.LE.0.2) go
to 610
292 IF(ptot.LE.0.4) go
to 690
293 IF(ptot.LE.dp) dp=ptot-0.2
296 IF(
kftj(jt,i).NE.21)
THEN
297 prshu=
pp(lqp(mp),1)**2+
pp(lqp(mp),2)**2
299 de=sqrt(
pjtm(jt,i)**2+ptot**2)
300 & -sqrt(
pjtm(jt,i)**2+(ptot-dp)**2)
301 ershu=(
pp(lqp(mp),4)+de-dp)**2
304 pp(lqp(mp),4)=sqrt(ershu)
305 pp(lqp(mp),5)=sqrt(amshu)
314 npj(lqp(mp))=
npj(lqp(mp))+1
326 IF(rn.GE.1.0-exp(-drr/
hipr1(13))) go
to 610
328 IF(dp.LE.0.2) go
to 610
329 IF(ptot.LE.0.4) go
to 690
330 IF(ptot.LE.dp) dp=ptot-0.2
333 IF(
kftj(jt,i).NE.21)
THEN
334 prshu=
pt(lqt(mt),1)**2+
pt(lqt(mt),2)**2
336 de=sqrt(
pjtm(jt,i)**2+ptot**2)
337 & -sqrt(
pjtm(jt,i)**2+(ptot-dp)**2)
338 ershu=(
pt(lqt(mt),4)+de-dp)**2
341 pt(lqt(mt),4)=sqrt(ershu)
342 pt(lqt(mt),5)=sqrt(amshu)
351 ntj(lqt(mt))=
ntj(lqt(mt))+1
359 660
pjtx(jt,i)=(ptot-dp)*
v1
373 IF(
iasg(isg,3).NE.1)
RETURN
377 xj=(
yp(1,jp)+bbx+
yt(1,jt))/2.0
378 yj=(
yp(2,jp)+bby+
yt(2,jt))/2.0
379 DO 2690 i=1,
njsg(isg)
380 ptjet0=sqrt(
pxsg(isg,i)**2+
pysg(isg,i)**2)
383 ptot=sqrt(ptjet0*ptjet0+
pzsg(isg,i)**2)
387 DO 2500 i2=1,
ihnt2(1)
388 IF(
nfp(i2,5).NE.3.OR.i2.EQ.jp) go
to 2500
394 IF(dphi.GT.
hipr1(40)/2.0) go
to 2500
396 IF(rd0*sin(dphi).GT.
hipr1(12)) go
to 2500
399 rdp(kp)=
cos(dphi)*rd0
404 IF(rdp(i2).LT.rdp(j2)) go
to 2510
414 DO 2520 i2=1,
ihnt2(3)
415 IF(
nft(i2,5).NE.3 .OR. i2.EQ.jt) go
to 2520
421 IF(dphi.GT.
hipr1(40)/2.0) go
to 2520
423 IF(rd0*sin(dphi).GT.
hipr1(12)) go
to 2520
426 rdt(kt)=
cos(dphi)*rd0
431 IF(rdt(i2).LT.rdt(j2)) go
to 2530
445 ptot=sqrt(
pxsg(isg,i)**2+
pysg(isg,i)**2
452 2610
IF(mt.GE.kt .AND. mp.GE.kp) go
to 2690
453 IF(mt.GE.kt) go
to 2620
454 IF(mp.GE.kp) go
to 2640
455 IF(rdp(mp+1).GT.rdt(mt+1)) go
to 2640
458 IF(rn.GE.1.0-exp(-drr/
hipr1(13))) go
to 2610
460 IF(dp.LE.0.2) go
to 2610
461 IF(ptot.LE.0.4) go
to 2690
462 IF(ptot.LE.dp) dp=ptot-0.2
465 IF(
k2sg(isg,i).NE.21)
THEN
466 IF(ptot.LT.dp+
hipr1(1)) go
to 2690
467 prshu=
pp(lqp(mp),1)**2+
pp(lqp(mp),2)**2
469 de=sqrt(
pmsg(isg,i)**2+ptot**2)
470 & -sqrt(
pmsg(isg,i)**2+(ptot-dp)**2)
471 ershu=(
pp(lqp(mp),4)+de-dp)**2
474 pp(lqp(mp),4)=sqrt(ershu)
475 pp(lqp(mp),5)=sqrt(amshu)
484 npj(lqp(mp))=
npj(lqp(mp))+1
496 IF(rn.GE.1.0-exp(-drr/
hipr1(13))) go
to 2610
498 IF(dp.LE.0.2) go
to 2610
499 IF(ptot.LE.0.4) go
to 2690
500 IF(ptot.LE.dp) dp=ptot-0.2
503 IF(
k2sg(isg,i).NE.21)
THEN
504 IF(ptot.LT.dp+
hipr1(1)) go
to 2690
505 prshu=
pt(lqt(mt),1)**2+
pt(lqt(mt),2)**2
507 de=sqrt(
pmsg(isg,i)**2+ptot**2)
508 & -sqrt(
pmsg(isg,i)**2+(ptot-dp)**2)
509 ershu=(
pt(lqt(mt),4)+de-dp)**2
512 pt(lqt(mt),4)=sqrt(ershu)
513 pt(lqt(mt),5)=sqrt(amshu)
522 ntj(lqt(mt))=
ntj(lqt(mt))+1
530 2660
pxsg(isg,i)=(ptot-dp)*
v1