3
C read in events and histogram contents
8
integer lok,ifl,istr,ntries,i
11
data filrd/'pythiaExample.io'/
13
C initialize HEP logical units
20
open(unit=lnhout,file='readPythia.lpt',status='new')
22
C...initialize MCFio once only
24
C...now open and read events
25
call stdxropen(filrd,ntries,istr,lok)
26
if(lok.ne.0) write(lnhout,1001) filrd
27
if(lok.ne.0) go to 200
28
write(lnhout,1002) filrd
30
do while( lok .eq. 0 )
31
call stdxrd(ifl,istr,lok)
33
C... keep looping if this is not a STDHEP record
34
if(ifl.eq.1) call tstflem(20)
35
if(ifl.eq.100) write(lnhout,1003) filrd, generatorname
43
1001 format(' could not open file ',a20)
44
1002 format(' file ',a20,' has been opened')
45
1003 format(/' file ',a20,' was generated by ',a20)