Class Clas12Writer
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
org.jlab.io.clara.Clas12Writer
- All Implemented Interfaces:
org.jlab.clara.engine.Engine
1. Copies certain banks on-the-fly to new tag-1 events
2. Caches helicity states, scaler readouts, and unix time
3. Writes HEL::flip, RUN/HEL::scaler, and RUN::unix to new tag-1 events
4. Runs post-processing, writing tag-1 information to all events
5. Adds .hipo to the output filename, if necessary
- Author:
- baltzell
-
Field Summary
Fields inherited from class HipoToHipoWriter
filename, schemaBankListFields inherited from class org.jlab.clara.std.services.AbstractEventWriterService
writer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected org.jlab.jnp.hipo4.io.HipoWriterSortedcreateWriter(Path file, org.json.JSONObject opts) protected voidwriteEvent(Object event) Methods inherited from class HipoToHipoWriter
configure, getDataType, writeEventMethods inherited from class org.jlab.clara.std.services.AbstractEventWriterService
configure, destroy, execute, executeGroup, getInputDataTypes, getOutputDataTypes, resetMethods inherited from class org.jlab.clara.std.services.AbstractService
getAuthor, getDescription, getName, getStates, getVersion
-
Constructor Details
-
Clas12Writer
public Clas12Writer()
-
-
Method Details
-
createWriter
protected org.jlab.jnp.hipo4.io.HipoWriterSorted createWriter(Path file, org.json.JSONObject opts) throws org.jlab.clara.std.services.EventWriterException - Overrides:
createWriterin classHipoToHipoWriter- Throws:
org.jlab.clara.std.services.EventWriterException
-
writeEvent
- Overrides:
writeEventin classHipoToHipoWriter- Throws:
org.jlab.clara.std.services.EventWriterException
-
closeWriter
protected void closeWriter()- Overrides:
closeWriterin classHipoToHipoWriter
-