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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class org.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 class org.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 class org.jlab.clara.std.services.AbstractEventReaderService<org.jlab.jnp.hipo4.io.HipoReader>
      Throws:
      org.jlab.clara.std.services.EventReaderException
    • readByteOrder

      public ByteOrder readByteOrder() throws org.jlab.clara.std.services.EventReaderException
      Specified by:
      readByteOrder in class org.jlab.clara.std.services.AbstractEventReaderService<org.jlab.jnp.hipo4.io.HipoReader>
      Throws:
      org.jlab.clara.std.services.EventReaderException
    • readEvent

      public Object readEvent(int eventNumber) throws org.jlab.clara.std.services.EventReaderException
      Specified by:
      readEvent in class org.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 class org.jlab.clara.std.services.AbstractEventReaderService<org.jlab.jnp.hipo4.io.HipoReader>