|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthep.io.mcfio.MCFIOReader
hep.io.stdhep.StdhepReader
public class StdhepReader
A class for reading stdhep files.
| Field Summary | |
|---|---|
static int |
EVENTHEADER
|
static int |
EVENTTABLE
|
static int |
FILEHEADER
|
static int |
MCF_DEFAULT_TABLE_SIZE
|
static int |
MCF_XDR_F_TITLE_LENGTH
|
static int |
MCF_XDR_VERSION_LENGTH
|
static int |
MCFIO_STDHEP
|
static int |
MCFIO_STDHEPBEG
|
static int |
MCFIO_STDHEPEND
|
static int |
MCFIO_STDHEPEV4
|
static int |
MCFIO_STDHEPM
|
static String |
STDHEP_VERSION
|
| Constructor Summary | |
|---|---|
StdhepReader(InputStream stream)
Open a stdhep file for reading. |
|
StdhepReader(String file)
Open a stdhep file for reading. |
|
| Method Summary | |
|---|---|
protected hep.io.mcfio.MCFIOBlock |
createUserBlock(int id)
Overrides the createUserBlock from MCFIO to create the necessary stdhep records. |
StdhepRecord |
goToRecord(int runNumber,
int eventNumber)
Finds the event with run number and event number specified |
StdhepRecord |
nextRecord()
Read the next stdhep record from the file. |
void |
skip(int nEvents)
Skip a number of records. |
| 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 |
|---|
public static final int MCFIO_STDHEP
public static final int MCFIO_STDHEPM
public static final int MCFIO_STDHEPBEG
public static final int MCFIO_STDHEPEND
public static final int MCFIO_STDHEPEV4
public static final String STDHEP_VERSION
public static final int MCF_XDR_F_TITLE_LENGTH
public static final int MCF_XDR_VERSION_LENGTH
public static final int MCF_DEFAULT_TABLE_SIZE
public static final int FILEHEADER
public static final int EVENTTABLE
public static final int EVENTHEADER
| Constructor Detail |
|---|
public StdhepReader(String file)
throws IOException
IOException
public StdhepReader(InputStream stream)
throws IOException
IOException| Method Detail |
|---|
public StdhepRecord nextRecord()
throws IOException
IOException
public StdhepRecord goToRecord(int runNumber,
int eventNumber)
throws IOException
EOFException - if the specified event is not found.
IOException
public void skip(int nEvents)
throws IOException
skip in class hep.io.mcfio.MCFIOReaderIOException
protected hep.io.mcfio.MCFIOBlock createUserBlock(int id)
throws IOException
createUserBlock in class hep.io.mcfio.MCFIOReaderIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||