1
subroutine stdxwrt(ilbl,istream,lok)
3
C...Purpose: to write a buffer or an event from the standard common block.
5
C if ilbl = 1 write HEPEVT common block
6
C ilbl = 2 write HEPEVT, HEPEV2, and HEPEV3 common blocks
7
C ilbl = 4 write HEPEVT and HEPEV4 common blocks
8
C ilbl = 5 write HEPEVT, HEPEV2, HEPEV3, and HEPEV4 common blocks
9
C ilbl = 11 write HEPEUP common block
10
C ilbl = 12 write HEPRUP common block
11
C ilbl = 100 write STDHEP begin run record
12
C ilbl = 200 write STDHEP end run record
13
C otherwise, don't do anything
15
C lok = 0 if no problems were encountered
20
integer ilbl,lok,istream
25
C...print version number if this is the first call
34
if(ilbl.eq.1 .or. ilbl.eq.2)then
35
C... the stdhep common block and maybe the multiple interaction common
36
call stdxwevt(ilbl,istream,lok)
37
elseif(ilbl.eq.4 .or. ilbl.eq.5)then
38
C... the stdhep common block and maybe the multiple interaction common
40
call stdxwevtlh(ilbl,istream,lok)
41
elseif(ilbl.eq.11 .or. ilbl.eq.12)then
42
C... the Les Houches common blocks
43
call stdxwevtup(ilbl,istream,lok)
44
elseif(ilbl.eq.100)then
45
call stdxwcm1(ilbl,istream,lok)
46
elseif(ilbl.eq.200)then
47
call stdxwcm1(ilbl,istream,lok)
49
write(lnhout,902) ilbl
52
900 write (lnhout,901)
55
101 format(/5X,'STDXWRT: the output buffer is empty')
56
901 format(/5X,'STDXWRT: write error')
57
902 format(/5X,'STDXWRT: do not know what to do with record type',i5)