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

public class Clas12Writer extends HipoToHipoWriter
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 org.jlab.io.clara.HipoToHipoWriter

    filename, schemaBankList

    Fields inherited from class org.jlab.clara.std.services.AbstractEventWriterService

    writer
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected org.jlab.jnp.hipo4.io.HipoWriterSorted
    createWriter(Path file, org.json.JSONObject opts)
     
    protected void
     

    Methods inherited from class org.jlab.io.clara.HipoToHipoWriter

    configure, getDataType, writeEvent

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      createWriter in class HipoToHipoWriter
      Throws:
      org.jlab.clara.std.services.EventWriterException
    • writeEvent

      protected void writeEvent(Object event) throws org.jlab.clara.std.services.EventWriterException
      Overrides:
      writeEvent in class HipoToHipoWriter
      Throws:
      org.jlab.clara.std.services.EventWriterException
    • closeWriter

      protected void closeWriter()
      Overrides:
      closeWriter in class HipoToHipoWriter