FreeHEP API
Version current

hep.io.stdhep
Class StdhepReader

java.lang.Object
  extended byhep.io.mcfio.MCFIOReader
      extended byhep.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.

Version:
$Id: StdhepReader.java,v 1.4 2003/09/16 23:11:54 tonyj Exp $
Author:
Tony Johnson (tonyj@slac.stanford.edu)
Source Code:
StdhepReader.java

Field Summary
static int MCFIO_STDHEP
           
static int MCFIO_STDHEPBEG
           
static int MCFIO_STDHEPEND
           
static int MCFIO_STDHEPM
           
static 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(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.
 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
See Also:
Constant Field Values

MCFIO_STDHEPM

public static final int MCFIO_STDHEPM
See Also:
Constant Field Values

MCFIO_STDHEPBEG

public static final int MCFIO_STDHEPBEG
See Also:
Constant Field Values

MCFIO_STDHEPEND

public static final int MCFIO_STDHEPEND
See Also:
Constant Field Values

STDHEP_VERSION

public static final String STDHEP_VERSION
See Also:
Constant Field Values
Constructor Detail

StdhepReader

public StdhepReader(String file)
             throws IOException
Open a stdhep file for reading

Method Detail

nextRecord

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

Throws:
IOException

createUserBlock

protected MCFIOBlock createUserBlock(int id)
                              throws 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
Throws:
IOException

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.