public interface LCReader
LCFactory
Modifier and Type | Field and Description |
---|---|
static int |
directAccess
Configuration flags for the LCReader instance - to be used with LCFactory::createLCReader().
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the output file/stream etc.
|
void |
open(String filename)
Opens a file for reading (read-only).
|
void |
open(String[] filenames)
Opens a list of files for reading (read-only).
|
LCEvent |
readEvent(int runNumber,
int evtNumber)
Reads the specified event from file.
|
LCEvent |
readEvent(int runNumber,
int evtNumber,
int accessMode)
Same as LCEvent* readEvent(int runNumber, int evtNumber)
allowing to set the access mode LCIO::READ_ONLY (default) or LCIO::Update.
|
LCEvent |
readNextEvent()
Reads the next event from the file.
|
LCEvent |
readNextEvent(int accessMode)
Same as readNextEvent() but allows to set the access mode
LCIO::READ_ONLY (default) or LCIO::Update.
|
LCRunHeader |
readNextRunHeader()
Reads the next run header from the file.
|
LCRunHeader |
readNextRunHeader(int accessMode)
Same as readNextRunHeader() but allows to set the access mode
LCIO::READ_ONLY (default) or LCIO::Update.
|
LCRunHeader |
readRunHeader(int runNumber)
Reads the specified runHeader from file.
|
LCRunHeader |
readRunHeader(int runNumber,
int accessMode)
Same as LCEvent* readRunHeader(int runNumber)
allowing to set the access mode LCIO::READ_ONLY (default) or LCIO::Update.
|
void |
readStream()
Reads the input stream and notifies registered
listeners according to the object type
found in the stream.
|
void |
readStream(int maxRecord)
Reads maxRecord from the input stream and notifies registered
listeners according to the object type found in the stream.
|
void |
registerLCEventListener(LCEventListener ls)
Registers a listener for reading LCEvents from a stream.
|
void |
registerLCRunListener(LCRunListener ls)
Registers a listener for reading LCEventsLCRunHeaders from a stream.
|
void |
removeLCEventListener(LCEventListener ls)
Remove a listener for reading LCEvents from a stream.
|
void |
removeLCRunListener(LCRunListener ls)
Remove a listener for reading LCRunHeaders from a stream.
|
void |
skipNEvents(int n)
Skips the next n events from the current position.
|
static final int directAccess
void open(String filename) throws IOException
IOException
void open(String[] filenames) throws IOException
IOException
LCRunHeader readNextRunHeader() throws IOException
IOException
LCRunHeader readNextRunHeader(int accessMode) throws IOException
IOException
LCEvent readNextEvent() throws IOException
IOException
LCEvent readNextEvent(int accessMode) throws IOException
IOException
void skipNEvents(int n) throws IOException
IOException
LCRunHeader readRunHeader(int runNumber) throws IOException
IOException
LCRunHeader readRunHeader(int runNumber, int accessMode) throws IOException
IOException
LCEvent readEvent(int runNumber, int evtNumber) throws IOException
IOException
LCEvent readEvent(int runNumber, int evtNumber, int accessMode) throws IOException
IOException
void close() throws IOException
IOException
void registerLCEventListener(LCEventListener ls)
void removeLCEventListener(LCEventListener ls)
void registerLCRunListener(LCRunListener ls)
void removeLCRunListener(LCRunListener ls)
void readStream() throws IOException
IOException
void readStream(int maxRecord) throws IOException
IOException
Jas4pp 1.5 © Java Analysis Studio for Particle Physics