Package org.jlab.io.clara
Class HipoToHipoWriter
java.lang.Object
org.jlab.clara.std.services.AbstractService
org.jlab.clara.std.services.AbstractEventWriterService<org.jlab.jnp.hipo4.io.HipoWriterSorted>
org.jlab.io.clara.HipoToHipoWriter
- All Implemented Interfaces:
org.jlab.clara.engine.Engine
- Direct Known Subclasses:
HipoToHipoTagWriter
public class HipoToHipoWriter
extends org.jlab.clara.std.services.AbstractEventWriterService<org.jlab.jnp.hipo4.io.HipoWriterSorted>
Service that converts HIPO transient data to HIPO persistent data
(i.e. writes HIPO events to an output file).
-
Field Summary
Fields inherited from class org.jlab.clara.std.services.AbstractEventWriterService
writer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
configure
(org.jlab.jnp.hipo4.io.HipoWriterSorted writer, org.json.JSONObject opts) protected org.jlab.jnp.hipo4.io.HipoWriterSorted
createWriter
(Path file, org.json.JSONObject opts) protected org.jlab.clara.engine.EngineDataType
protected void
writeEvent
(Object event) Methods inherited from class org.jlab.clara.std.services.AbstractEventWriterService
configure, destroy, execute, executeGroup, getInputDataTypes, getOutputDataTypes, reset
Methods inherited from class org.jlab.clara.std.services.AbstractService
getAuthor, getDescription, getName, getStates, getVersion
-
Constructor Details
-
HipoToHipoWriter
public HipoToHipoWriter()
-
-
Method Details
-
createWriter
protected org.jlab.jnp.hipo4.io.HipoWriterSorted createWriter(Path file, org.json.JSONObject opts) throws org.jlab.clara.std.services.EventWriterException - Specified by:
createWriter
in classorg.jlab.clara.std.services.AbstractEventWriterService<org.jlab.jnp.hipo4.io.HipoWriterSorted>
- Throws:
org.jlab.clara.std.services.EventWriterException
-
configure
protected void configure(org.jlab.jnp.hipo4.io.HipoWriterSorted writer, org.json.JSONObject opts) -
closeWriter
protected void closeWriter()- Specified by:
closeWriter
in classorg.jlab.clara.std.services.AbstractEventWriterService<org.jlab.jnp.hipo4.io.HipoWriterSorted>
-
writeEvent
- Specified by:
writeEvent
in classorg.jlab.clara.std.services.AbstractEventWriterService<org.jlab.jnp.hipo4.io.HipoWriterSorted>
- Throws:
org.jlab.clara.std.services.EventWriterException
-
getDataType
protected org.jlab.clara.engine.EngineDataType getDataType()- Specified by:
getDataType
in classorg.jlab.clara.std.services.AbstractEventWriterService<org.jlab.jnp.hipo4.io.HipoWriterSorted>
-