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.
Constructor Summary |
StdhepReader(java.lang.String file)
Open a stdhep file for reading |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
StdhepReader
public StdhepReader(java.lang.String file)
throws java.io.IOException
- Open a stdhep file for reading
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