11 IMPLICIT DOUBLE PRECISION(a-
h, o-
z)
21 INTEGER idbmup,pdfgup,pdfsup,idwtup,nprup,lprup
22 DOUBLE PRECISION ebmup,xsecup,xerrup,xmaxup
23 common/heprup/idbmup(2),ebmup(2),pdfgup(2),pdfsup(2),
24 &idwtup,nprup,xsecup(maxpup),xerrup(maxpup),xmaxup(maxpup),
31 INTEGER nup,idprup,idup,istup,mothup,icolup
32 DOUBLE PRECISION xwgtup,scalup,aqedup,aqcdup,pup,vtimup,spinup
33 common/hepeup/nup,idprup,xwgtup,scalup,aqedup,aqcdup,idup(maxnup),
34 &istup(maxnup),mothup(2,maxnup),icolup(2,maxnup),pup(5,maxnup),
35 &vtimup(maxnup),spinup(maxnup)
40 CHARACTER*(MAXLEN) string
45 WRITE(strfmt(3:5),
'(I3)') maxlen
52 WRITE(
mstp(163),
'(A)')
'<LesHouchesEvents version="1.0">'
53 WRITE(
mstp(163),
'(A)')
'<!--'
54 WRITE(
mstp(163),
'(A,I1,A1,I3)')
'File generated with PYTHIA ',
56 WRITE(
mstp(163),
'(A)')
'-->'
59 READ(
mstp(161),
'(A)',
end=400,err=400) string
60 READ(string,*,err=400) idbmup(1),idbmup(2),ebmup(1),
61 &ebmup(2),pdfgup(1),pdfgup(2),pdfsup(1),pdfsup(2),idwtup,nprup
65 WRITE(
mstp(163),
'(A)')
'<init>'
67 IF(ipr.GT.0)
READ(
mstp(161),
'(A)',
end=400,err=400) string
70 IF(len.GT.1.AND.string(len:len).EQ.
' ') goto 120
71 WRITE(
mstp(163),
'(A)',err=400) string(1:len)
73 WRITE(
mstp(163),
'(A)')
'</init>'
76 READ(
mstp(162),
'(A)',
end=320,err=400) string
80 READ(string,*,err=400) nup,idprup,xwgtup,scalup,aqedup,aqcdup
83 WRITE(
mstp(163),
'(A)')
'<event>'
85 IF(
i.GT.0)
READ(
mstp(162),
'(A)',
end=400,err=400) string
88 IF(len.GT.1.AND.string(len:len).EQ.
' ') goto 220
89 WRITE(
mstp(163),
'(A)',err=400) string(1:len)
93 260
READ(
mstp(162),
'(A)',
end=300,err=400) string
94 IF(string(1:1).EQ.
'#')
THEN
97 IF(len.GT.1.AND.string(len:len).EQ.
' ') goto 280
98 WRITE(
mstp(163),
'(A)',err=400) string(1:len)
103 WRITE(
mstp(163),
'(A)')
'</event>'
108 300
WRITE(
mstp(163),
'(A)')
'</event>'
109 320
WRITE(
mstp(163),
'(A)')
'</LesHouchesEvents>'
110 IF(
mstp(164).EQ.1)
RETURN
111 CLOSE(
mstp(161),err=400,status=
'DELETE')
112 CLOSE(
mstp(162),err=400,status=
'DELETE')
116 400
WRITE(*,*)
' PYLHEF file joining failed!'