hep.io.mcfio
Class MCFIOReader
java.lang.Object
|
+--hep.io.mcfio.MCFIOReader
- All Implemented Interfaces:
- hep.io.mcfio.MCFIOConstants
- Direct Known Subclasses:
- StdhepReader
- public class MCFIOReader
- extends java.lang.Object
- implements hep.io.mcfio.MCFIOConstants
A class for reading MCFIO files
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MCF_XDR_F_TITLE_LENGTH
public static final int MCF_XDR_F_TITLE_LENGTH
MCF_XDR_VERSION_LENGTH
public static final int MCF_XDR_VERSION_LENGTH
MCF_DEFAULT_TABLE_SIZE
public static final int MCF_DEFAULT_TABLE_SIZE
FILEHEADER
public static final int FILEHEADER
EVENTTABLE
public static final int EVENTTABLE
EVENTHEADER
public static final int EVENTHEADER
MCFIOReader
public MCFIOReader(java.lang.String file)
throws java.io.IOException
MCFIOReader
public MCFIOReader(java.io.InputStream input)
throws java.io.IOException
close
public void close()
throws java.io.IOException
rewind
public void rewind()
throws java.io.IOException
nextEvent
public MCFIOEvent nextEvent()
throws java.io.IOException
- Get the next event.
Calling this method does not necessarily mean the full
event data will be read. Initially only the event number,
store number, run number, and trigger mask are available.
Once one of the methods requiring information about the
blocks inside the event are called the entire event will
be read. Thus it is possible to loop over events looking
for events which satisfy some criterion, without actually
paying the overhead of decoding the whole event.
createUserBlock
protected MCFIOBlock createUserBlock(int id)
throws java.io.IOException
- Override this method to create user defined blocks
getTitle
public java.lang.String getTitle()
- Get the title of the file
getComment
public java.lang.String getComment()
- Get the comment associated with the file
getDate
public java.lang.String getDate()
- Get the date when the file was created
getNumberOfEvents
public int getNumberOfEvents()
- The actual number of events on the file
getNumberOfEventsExpected
public int getNumberOfEventsExpected()
- The expected number of events in the file