hep.io.stdhep
Class StdhepReader

java.lang.Object
  |
  +--hep.io.mcfio.MCFIOReader
        |
        +--hep.io.stdhep.StdhepReader
All Implemented Interfaces:
hep.io.mcfio.MCFIOConstants, hep.io.stdhep.StdhepConstants

public class StdhepReader
extends MCFIOReader
implements hep.io.stdhep.StdhepConstants

A class for reading stdhep files.


Field Summary
static int MCFIO_STDHEP
           
static int MCFIO_STDHEPBEG
           
static int MCFIO_STDHEPEND
           
static int MCFIO_STDHEPM
           
static java.lang.String STDHEP_VERSION
           
 
Fields inherited from class hep.io.mcfio.MCFIOReader
EVENTHEADER, EVENTTABLE, FILEHEADER, MCF_DEFAULT_TABLE_SIZE, MCF_XDR_F_TITLE_LENGTH, MCF_XDR_VERSION_LENGTH
 
Constructor Summary
StdhepReader(java.lang.String file)
          Open a stdhep file for reading
 
Method Summary
protected  MCFIOBlock createUserBlock(int id)
          Overrides the createUserBlock from MCFIO to create the necessary stdhep records.
static void main(java.lang.String[] argv)
           
 StdhepRecord nextRecord()
          Read the next stdhep record from the file.
 
Methods inherited from class hep.io.mcfio.MCFIOReader
close, getComment, getDate, getNumberOfEvents, getNumberOfEventsExpected, getTitle, nextEvent, rewind
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MCFIO_STDHEP

public static final int MCFIO_STDHEP

MCFIO_STDHEPM

public static final int MCFIO_STDHEPM

MCFIO_STDHEPBEG

public static final int MCFIO_STDHEPBEG

MCFIO_STDHEPEND

public static final int MCFIO_STDHEPEND

STDHEP_VERSION

public static final java.lang.String STDHEP_VERSION
Constructor Detail

StdhepReader

public StdhepReader(java.lang.String file)
             throws java.io.IOException
Open a stdhep file for reading
Method Detail

nextRecord

public StdhepRecord nextRecord()
                        throws java.io.IOException
Read the next stdhep record from the file. The record may be a begin run, end run, or event record.

createUserBlock

protected MCFIOBlock createUserBlock(int id)
                              throws java.io.IOException
Overrides the createUserBlock from MCFIO to create the necessary stdhep records. Override this method to add support for your own record types.
Overrides:
createUserBlock in class MCFIOReader

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception