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
  • 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