public class StdhepEventSource
extends org.freehep.record.source.AbstractRecordSource
RecordSource
implementation that wraps StdhepReader
.Modifier and Type | Field and Description |
---|---|
private boolean |
atEnd |
private StdhepConverter |
converter |
private EventHeader |
currentEvent |
private long |
currentEventNumber |
private int |
currentFile |
private List<File> |
files |
private hep.io.stdhep.StdhepReader |
reader |
Constructor and Description |
---|
StdhepEventSource(FileList list,
String detectorName)
Create an event source from a list of stdhep files
|
StdhepEventSource(File file,
String detectorName)
Create an event source from a single stdhep file
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
finalize() |
long |
getCurrentIndex() |
Object |
getCurrentRecord() |
Class<?> |
getRecordClass() |
boolean |
hasIndex(long index) |
boolean |
hasNext() |
boolean |
hasRewind() |
void |
jump(long index) |
void |
next() |
void |
releaseRecord(Object obj) |
void |
rewind() |
long |
size() |
boolean |
supportsIndex() |
boolean |
supportsNext() |
boolean |
supportsRewind() |
current, getCurrentTag, getEstimatedSize, getName, getTags, hasCurrent, hasPrevious, hasShift, hasTag, jump, jump, parseTag, previous, releaseRecord, setName, shift, supportsCurrent, supportsPrevious, supportsShift, supportsTag
private boolean atEnd
private hep.io.stdhep.StdhepReader reader
private final StdhepConverter converter
private EventHeader currentEvent
private long currentEventNumber
private int currentFile
public StdhepEventSource(File file, String detectorName) throws IOException
IOException
public StdhepEventSource(FileList list, String detectorName) throws IOException
IOException
public Object getCurrentRecord() throws IOException
IOException
public long size()
size
in interface org.freehep.record.source.RecordSource
size
in class org.freehep.record.source.AbstractRecordSource
public Class<?> getRecordClass()
getRecordClass
in interface org.freehep.record.source.RecordSource
getRecordClass
in class org.freehep.record.source.AbstractRecordSource
public boolean supportsNext()
supportsNext
in interface org.freehep.record.source.RecordSource
supportsNext
in class org.freehep.record.source.AbstractRecordSource
public boolean hasNext()
hasNext
in interface org.freehep.record.source.RecordSource
hasNext
in class org.freehep.record.source.AbstractRecordSource
public void next() throws IOException, org.freehep.record.source.NoSuchRecordException
next
in interface org.freehep.record.source.RecordSource
next
in class org.freehep.record.source.AbstractRecordSource
IOException
org.freehep.record.source.NoSuchRecordException
public void releaseRecord(Object obj)
public boolean supportsRewind()
supportsRewind
in interface org.freehep.record.source.RecordSource
supportsRewind
in class org.freehep.record.source.AbstractRecordSource
public boolean hasRewind()
hasRewind
in interface org.freehep.record.source.RecordSource
hasRewind
in class org.freehep.record.source.AbstractRecordSource
public void rewind() throws IOException
rewind
in interface org.freehep.record.source.RecordSource
rewind
in class org.freehep.record.source.AbstractRecordSource
IOException
public void close() throws IOException
close
in interface org.freehep.record.source.RecordSource
close
in class org.freehep.record.source.AbstractRecordSource
IOException
public boolean supportsIndex()
supportsIndex
in interface org.freehep.record.source.RecordSource
supportsIndex
in class org.freehep.record.source.AbstractRecordSource
public boolean hasIndex(long index)
hasIndex
in interface org.freehep.record.source.RecordSource
hasIndex
in class org.freehep.record.source.AbstractRecordSource
public void jump(long index) throws IOException, org.freehep.record.source.NoSuchRecordException
jump
in interface org.freehep.record.source.RecordSource
jump
in class org.freehep.record.source.AbstractRecordSource
IOException
org.freehep.record.source.NoSuchRecordException
public long getCurrentIndex()
getCurrentIndex
in interface org.freehep.record.source.RecordSource
getCurrentIndex
in class org.freehep.record.source.AbstractRecordSource
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.