1
subroutine stdxwevtup(ilbl,istream,lok)
3
C...Purpose: to write an event from the standard common block.
5
C ilbl = 11 write HEPEUP common block
6
C ilbl = 12 write HEPRUP common block
7
C lok = 0 if no problems were encountered
15
integer ilbl,lok,istream
16
integer xdr_hepeup, xdr_heprup
17
external xdr_hepeup, xdr_heprup
25
if(mcfio_block(istream, MCFIO_HEPEUP, xdr_hepeup)
27
if(mcfio_NextEvent(istream) .eq. -1) go to 900
30
elseif(ilbl.eq.12)then
31
if(mcfio_block(istream, MCFIO_HEPRUP, xdr_heprup)
33
if(mcfio_NextEvent(istream) .eq. -1) go to 900
39
700 write (lnhout,701)
42
800 write (lnhout,801)
45
900 write (lnhout,901)
48
101 format(/5X,'stdxwevtup: no particles to write for HEPEUP block')
49
701 format(/5X,'stdxwevtup: error filling Les Houches HEPEUP block ')
50
801 format(/5X,'stdxwevtup: error filling Les Houches HEPRUP block ')
51
901 format(/5X,'stdxwevtup: error writing Les Houches event ')