11 IMPLICIT DOUBLE PRECISION(a-
h, o-
z)
15 parameter(ksusy1=1000000,ksusy2=2000000,ktechn=3000000,
16 &kexcit=4000000,kdimen=5000000)
19 parameter(nmxhep=4000)
20 common/hepevt/nevhep,nhep,isthep(nmxhep),idhep(nmxhep),
21 &jmohep(2,nmxhep),jdahep(2,nmxhep),phep(5,nmxhep),vhep(4,nmxhep)
22 DOUBLE PRECISION phep,vhep
28 INTEGER nup,idprup,idup,istup,mothup,icolup
29 DOUBLE PRECISION xwgtup,scalup,aqedup,aqcdup,pup,vtimup,spinup
30 common/hepeup/nup,idprup,xwgtup,scalup,aqedup,aqcdup,idup(maxnup),
31 &istup(maxnup),mothup(2,maxnup),icolup(2,maxnup),pup(5,maxnup),
32 &vtimup(maxnup),spinup(maxnup)
37 common/
pydat1/mstu(200),paru(200),mstj(200),parj(200)
38 common/
pydat2/kchg(500,4),pmas(500,4),parf(2000),vckm(4,4)
39 common/
pydat3/mdcy(500,3),mdme(8000,2),brat(8000),kfdp(8000,5)
40 common/pyctag/nct,mct(4000,2)
43 CHARACTER chap*16,chac*16,chan*16,chad(5)*16,chdl(7)*4
45 DATA chdl/
'(())',
' ',
'()',
'!!',
'<>',
'==',
'(==)'/
48 IF(mlist.EQ.0.OR.mstu(12).EQ.1)
THEN
55 IF(mlist.GE.1.AND.mlist.LE.4)
THEN
56 IF(mlist.EQ.1)
WRITE(mstu(11),5100)
57 IF(mlist.EQ.2)
WRITE(mstu(11),5200)
58 IF(mlist.EQ.3)
WRITE(mstu(11),5300)
59 IF(mlist.EQ.4)
WRITE(mstu(11),5400)
64 IF(mstu(2).GT.0) imax=mstu(2)
66 IF(
i.GT.imax.AND.
i.LE.
n) goto 120
67 IF(mstu(15).EQ.0.AND.
k(
i,1).LE.0) goto 120
68 IF(mstu(15).EQ.1.AND.
k(
i,1).LT.0) goto 120
74 IF(chap(lem:lem).NE.
' ') len=lem
78 IF(mdl.EQ.2.OR.mdl.GE.8)
THEN
80 IF(len.GT.lmx) chac(lmx:lmx)=
'?'
83 IF(mdl.EQ.1.OR.mdl.EQ.7) ldl=2
85 chac=chdl(mdl)(1:2*ldl)//
' '
87 chac=chdl(mdl)(1:ldl)//chap(1:min(len,lmx-2*ldl))//
88 & chdl(mdl)(ldl+1:2*ldl)//
' '
89 IF(len+2*ldl.GT.lmx) chac(lmx:lmx)=
'?'
94 IF(
k(
i,1).EQ.1.OR.
k(
i,1).EQ.2.OR.
k(
i,1).EQ.11.OR.
k(
i,1).EQ.12)
98 IF(kc.NE.0) kcc=kchg(kc,2)
99 IF(iabs(
k(
i,2)).EQ.39)
THEN
100 IF(len+2*ldl+3.LE.lmx) chac(lmx-1:lmx-1)=
'X'
101 ELSEIF(kcc.NE.0.AND.istr.EQ.0)
THEN
103 IF(len+2*ldl+3.LE.lmx) chac(lmx-1:lmx-1)=
'A'
104 ELSEIF(kcc.NE.0.AND.(
k(
i,1).EQ.2.OR.
k(
i,1).EQ.12))
THEN
105 IF(len+2*ldl+3.LE.lmx) chac(lmx-1:lmx-1)=
'I'
106 ELSEIF(kcc.NE.0)
THEN
108 IF(len+2*ldl+3.LE.lmx) chac(lmx-1:lmx-1)=
'V'
111 IF((
k(
i,1).EQ.41.OR.
k(
i,1).EQ.51).AND.len+2*ldl+3.LE.lmx)
112 & chac(lmx-1:lmx-1)=
'I'
115 IF(mlist.EQ.1.AND.abs(
p(
i,4)).LT.9999d0)
THEN
116 WRITE(mstu(11),5500)
i,chac(1:12),(
k(
i,j1),j1=1,3),
118 ELSEIF(mlist.EQ.1.AND.abs(
p(
i,4)).LT.99999d0)
THEN
119 WRITE(mstu(11),5600)
i,chac(1:12),(
k(
i,j1),j1=1,3),
121 ELSEIF(mlist.EQ.1)
THEN
122 WRITE(mstu(11),5700)
i,chac(1:12),(
k(
i,j1),j1=1,3),
124 ELSEIF(mstu(5).EQ.10000.AND.(
k(
i,1).EQ.3.OR.
k(
i,1).EQ.13.OR.
125 &
k(
i,1).EQ.14.OR.
k(
i,1).EQ.42.OR.
k(
i,1).EQ.52))
THEN
126 IF(mlist.NE.4)
WRITE(mstu(11),5800)
i,chac,(
k(
i,j1),j1=1,3),
127 &
k(
i,4)/100000000,mod(
k(
i,4)/10000,10000),mod(
k(
i,4),10000),
128 &
k(
i,5)/100000000,mod(
k(
i,5)/10000,10000),mod(
k(
i,5),10000),
130 IF(mlist.EQ.4)
WRITE(mstu(11),5900)
i,chac,(
k(
i,j1),j1=1,3),
131 &
k(
i,4)/100000000,mod(
k(
i,4)/10000,10000),mod(
k(
i,4),10000),
132 &
k(
i,5)/100000000,mod(
k(
i,5)/10000,10000),mod(
k(
i,5)
133 & ,10000),mct(
i,1),mct(
i,2)
135 IF(mlist.NE.4)
WRITE(mstu(11),6000)
i,chac,(
k(
i,j1),j1=1,5),
137 IF(mlist.EQ.4)
WRITE(mstu(11),6100)
i,chac,(
k(
i,j1),j1=1,5)
140 IF(mlist.EQ.3)
WRITE(mstu(11),6200) (
v(
i,
j),
j=1,5)
143 IF(mstu(70).GE.1)
THEN
145 DO 110
j=1,min(10,mstu(70))
146 IF(
i.EQ.mstu(70+
j)) isep=1
149 IF(mlist.EQ.1)
WRITE(mstu(11),6300)
150 IF(mlist.EQ.2.OR.mlist.EQ.3)
WRITE(mstu(11),6400)
151 IF(mlist.EQ.4)
WRITE(mstu(11),6500)
160 IF(mlist.EQ.1.AND.abs(
ps(4)).LT.9999d0)
THEN
161 WRITE(mstu(11),6600)
ps(6),(
ps(
j),
j=1,5)
162 ELSEIF(mlist.EQ.1.AND.abs(
ps(4)).LT.99999d0)
THEN
163 WRITE(mstu(11),6700)
ps(6),(
ps(
j),
j=1,5)
164 ELSEIF(mlist.EQ.1)
THEN
165 WRITE(mstu(11),6800)
ps(6),(
ps(
j),
j=1,5)
166 ELSEIF(mlist.LE.3)
THEN
167 WRITE(mstu(11),6900)
ps(6),(
ps(
j),
j=1,5)
169 WRITE(mstu(11),7000)
ps(6)
173 ELSEIF(mlist.EQ.5)
THEN
176 IF(isthep(
i).EQ.0) goto 140
177 WRITE(mstu(11),7200)
i,isthep(
i),idhep(
i),jmohep(1,
i),
178 & jmohep(2,
i),jdahep(1,
i),jdahep(2,
i),(phep(
j,
i),
j=1,5)
183 ELSEIF(mlist.EQ.7)
THEN
186 WRITE(mstu(11),7400)
i,istup(
i),idup(
i),mothup(1,
i),
187 & mothup(2,
i),icolup(1,
i),icolup(2,
i),(pup(
j,
i),
j=1,5)
191 ELSEIF(mlist.EQ.11)
THEN
196 IF(chap.NE.
' '.AND.chan.EQ.
' ')
WRITE(mstu(11),7600) kf,chap
197 IF(chan.NE.
' ')
WRITE(mstu(11),7600) kf,chap,-kf,chan
201 DO 170 kflb=1,kfla-(3-kfls)/2
202 kf=1000*kfla+100*kflb+kfls
205 WRITE(mstu(11),7600) kf,chap,-kf,chan
211 IF(kmul.EQ.0.OR.kmul.EQ.3) kfls=1
214 IF(kmul.EQ.2.OR.kmul.EQ.3) kflr=1
218 kf=10000*kflr+100*kflb+10*kflc+kfls
221 WRITE(mstu(11),7600) kf,chap,-kf,chan
225 WRITE(mstu(11),7600) kfk,chap
228 WRITE(mstu(11),7600) kfk,chap
231 kf=10000*kflr+110*kflb+kfls
233 WRITE(mstu(11),7600) kf,chap
238 WRITE(mstu(11),7600) kf,chap
241 WRITE(mstu(11),7600) kf,chap
247 IF(kflsp.EQ.1.AND.(kfla.EQ.kflb.OR.kflb.EQ.kflc))
249 IF(kflsp.EQ.2.AND.kfla.EQ.kflc) goto 230
250 IF(kflsp.EQ.1) kf=1000*kfla+100*kflc+10*kflb+kfls
251 IF(kflsp.GE.2) kf=1000*kfla+100*kflb+10*kflc+kfls
254 WRITE(mstu(11),7600) kf,chap,-kf,chan
261 IF(kf.LT.1000000) goto 270
264 IF(chap.NE.
' '.AND.chan.EQ.
' ')
WRITE(mstu(11),7600) kf,chap
265 IF(chan.NE.
' ')
WRITE(mstu(11),7600) kf,chap,-kf,chan
269 ELSEIF(mlist.EQ.12)
THEN
274 IF(kf.LT.mstu(1).OR.(mstu(2).GT.0.AND.kf.GT.mstu(2)))
279 IF(kf.LE.100.AND.chap.EQ.
' '.AND.mdcy(kc,2).EQ.0) goto 300
281 WRITE(mstu(11),7800) kf,kc,chap,chan,(kchg(kc,j1),j1=1,3),
282 & (pmas(kc,j2),j2=1,4),mdcy(kc,1)
286 DO 290 idc=mdcy(kc,2),mdcy(kc,2)+mdcy(kc,3)-1
290 WRITE(mstu(11),7900) idc,mdme(idc,1),mdme(idc,2),brat(idc),
296 ELSEIF(mlist.EQ.13)
THEN
299 WRITE(mstu(11),8100)
i,mstu(
i),paru(
i),mstj(
i),parj(
i),parf(
i)
304 5100
FORMAT(///28
x,
'Event listing (summary)'//4
x,
'I particle/jet KS',
305 &5
x,
'KF orig p_x p_y p_z E m'/)
306 5200
FORMAT(///28
x,
'Event listing (standard)'//4
x,
'I particle/jet',
307 &
' K(I,1) K(I,2) K(I,3) K(I,4) K(I,5) P(I,1)',
308 &
' P(I,2) P(I,3) P(I,4) P(I,5)'/)
309 5300
FORMAT(///28
x,
'Event listing (with vertices)'//4
x,
'I particle/j',
310 &
'et K(I,1) K(I,2) K(I,3) K(I,4) K(I,5) P(I,1)',
311 &
' P(I,2) P(I,3) P(I,4) P(I,5)'/73
x,
312 &
'V(I,1) V(I,2) V(I,3) V(I,4) V(I,5)'/)
313 5400
FORMAT(///28
x,
'Event listing (no momenta)'//4
x,
'I particle/jet',
314 &
' K(I,1) K(I,2) K(I,3) K(I,4) K(I,5)',1
x
316 5500
FORMAT(1
x,
i4,1
x,a12,1
x,
i2,i8,1
x,
i4,5f9.3)
317 5600
FORMAT(1
x,
i4,1
x,a12,1
x,
i2,i8,1
x,
i4,5f9.2)
318 5700
FORMAT(1
x,
i4,1
x,a12,1
x,
i2,i8,1
x,
i4,5f9.1)
319 5800
FORMAT(1
x,
i4,2
x,a16,1
x,
i3,1
x,i9,1
x,
i4,2(3
x,
i1,2
i4),5f13.5)
320 5900
FORMAT(1
x,
i4,2
x,a16,1
x,
i3,1
x,i9,1
x,
i4,2(3
x,
i1,2
i4),1
x,2i8)
321 6000
FORMAT(1
x,
i4,2
x,a16,1
x,
i3,1
x,i9,1
x,
i4,2(3
x,i9),5f13.5)
322 6100
FORMAT(1
x,
i4,2
x,a16,1
x,
i3,1
x,i9,1
x,
i4,2(3
x,i9),1
x,2i8)
323 6200
FORMAT(66
x,5(1
x,f12.3))
324 6300
FORMAT(1
x,78(
'='))
325 6400
FORMAT(1
x,130(
'='))
326 6500
FORMAT(1
x,65(
'='))
327 6600
FORMAT(19
x,
'sum:',f6.2,5
x,5f9.3)
328 6700
FORMAT(19
x,
'sum:',f6.2,5
x,5f9.2)
329 6800
FORMAT(19
x,
'sum:',f6.2,5
x,5f9.1)
330 6900
FORMAT(19
x,
'sum charge:',f6.2,3
x,
'sum momentum and inv. mass:',
332 7000
FORMAT(19
x,
'sum charge:',f6.2)
333 7100
FORMAT(/10
x,
'Event listing of HEPEVT common block (simplified)'
334 &//
' I IST ID Mothers Daughters p_x p_y p_z',
336 7200
FORMAT(1
x,
i4,
i2,i8,4
i5,5f9.3)
337 7300
FORMAT(/10
x,
'Event listing of user process at input (simplified)'
338 &//
' I IST ID Mothers Colours p_x p_y p_z',
341 7500
FORMAT(///20
x,
'List of KF codes in program'/)
342 7600
FORMAT(4
x,i9,4
x,a16,6
x,i9,4
x,a16)
343 7700
FORMAT(///30
x,
'Particle/parton data table'//8
x,
'KF',5
x,
'KC',4
x,
344 &
'particle',8
x,
'antiparticle',6
x,
'chg col anti',8
x,
'mass',7
x,
345 &
'width',7
x,
'w-cut',5
x,
'lifetime',1
x,
'decay'/11
x,
'IDC',1
x,
'on/off',
346 &1
x,
'ME',3
x,
'Br.rat.',4
x,
'decay products')
347 7800
FORMAT(/1
x,i9,3
x,
i4,4
x,a16,a16,3
i5,1
x,f12.5,2(1
x,f11.5),
350 8000
FORMAT(///20
x,
'Parameter value table'//4
x,
'I',3
x,
'MSTU(I)',
351 &8
x,
'PARU(I)',3
x,
'MSTJ(I)',8
x,
'PARJ(I)',8
x,
'PARF(I)')
352 8100
FORMAT(1
x,
i4,1
x,i9,1
x,f14.5,1
x,i9,1
x,f14.5,1
x,f14.5)