Package org.jlab.io.clara
Class HipoToHipoReader
java.lang.Object
org.jlab.clara.std.services.AbstractService
org.jlab.clara.std.services.AbstractEventReaderService<org.jlab.jnp.hipo4.io.HipoReader>
org.jlab.io.clara.HipoToHipoReader
- All Implemented Interfaces:
org.jlab.clara.engine.Engine
public class HipoToHipoReader
extends org.jlab.clara.std.services.AbstractEventReaderService<org.jlab.jnp.hipo4.io.HipoReader>
Service that converts HIPO persistent data to HIPO transient data
(i.e. reads HIPO events from an input file)
-
Field Summary
Fields inherited from class org.jlab.clara.std.services.AbstractEventReaderService
reader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected org.jlab.jnp.hipo4.io.HipoReader
createReader
(Path file, org.json.JSONObject opts) protected org.jlab.clara.engine.EngineDataType
readEvent
(int eventNumber) int
Methods inherited from class org.jlab.clara.std.services.AbstractEventReaderService
configure, destroy, execute, executeGroup, getInputDataTypes, getOutputDataTypes, reset
Methods inherited from class org.jlab.clara.std.services.AbstractService
getAuthor, getDescription, getName, getStates, getVersion
-
Constructor Details
-
HipoToHipoReader
public HipoToHipoReader()
-
-
Method Details
-
createReader
protected org.jlab.jnp.hipo4.io.HipoReader createReader(Path file, org.json.JSONObject opts) throws org.jlab.clara.std.services.EventReaderException - Specified by:
createReader
in classorg.jlab.clara.std.services.AbstractEventReaderService<org.jlab.jnp.hipo4.io.HipoReader>
- Throws:
org.jlab.clara.std.services.EventReaderException
-
closeReader
protected void closeReader()- Specified by:
closeReader
in classorg.jlab.clara.std.services.AbstractEventReaderService<org.jlab.jnp.hipo4.io.HipoReader>
-
readEventCount
public int readEventCount() throws org.jlab.clara.std.services.EventReaderException- Specified by:
readEventCount
in classorg.jlab.clara.std.services.AbstractEventReaderService<org.jlab.jnp.hipo4.io.HipoReader>
- Throws:
org.jlab.clara.std.services.EventReaderException
-
readByteOrder
- Specified by:
readByteOrder
in classorg.jlab.clara.std.services.AbstractEventReaderService<org.jlab.jnp.hipo4.io.HipoReader>
- Throws:
org.jlab.clara.std.services.EventReaderException
-
readEvent
- Specified by:
readEvent
in classorg.jlab.clara.std.services.AbstractEventReaderService<org.jlab.jnp.hipo4.io.HipoReader>
- Throws:
org.jlab.clara.std.services.EventReaderException
-
getDataType
protected org.jlab.clara.engine.EngineDataType getDataType()- Specified by:
getDataType
in classorg.jlab.clara.std.services.AbstractEventReaderService<org.jlab.jnp.hipo4.io.HipoReader>
-