1
subroutine stdxropen(filename,ntries,istream,lok)
3
c initialize xdr reading
9
integer istream,lok,ntries
10
character*(*) filename
16
c Initialization phase.
18
C...print version number if this is the first call
24
istream = mcfio_OpenReadDirect(filename)
25
if (istream .eq. -1) go to 900
26
call mcfio_InfoStreamChar(istream,MCFIO_CREATIONDATE,date,dlen)
27
call mcfio_InfoStreamChar(istream,MCFIO_TITLE,title,tlen)
28
call mcfio_InfoStreamChar(istream,MCFIO_COMMENT,comment,clen)
29
call mcfio_InfoStreamInt(istream,MCFIO_NUMEVTS,ntries)
30
call mcfio_InfoStreamInt(istream,MCFIO_NUMBLOCKS,numblocks)
31
call mcfio_InfoStreamInt(istream,MCFIO_BLOCKIDS,blkids)
32
write(lnhout,1001) istream,title(1:tlen),date(1:dlen),
33
1 comment(1:clen),ntries,numblocks
41
1001 format(/' STDXROPEN: successfully opened input stream ',i5/
46
5 20x,i10,' blocks per event'/)
47
1002 format(' STDXROPEN: Cannot open input file, give up ')