Class CLASDecoder

java.lang.Object
org.jlab.detector.decode.CLASDecoder

public class CLASDecoder extends Object
Author:
gavalian
  • Constructor Details Link icon

    • CLASDecoder Link icon

      public CLASDecoder(boolean development)
    • CLASDecoder Link icon

      public CLASDecoder()
  • Method Details Link icon

    • createDecoder Link icon

      public static CLASDecoder createDecoder()
    • createDecoderDevel Link icon

      public static CLASDecoder createDecoderDevel()
    • setDebugMode Link icon

      public void setDebugMode(int mode)
    • setRunNumber Link icon

      public void setRunNumber(int run)
    • setRunNumber Link icon

      public void setRunNumber(int run, boolean fixed)
    • getCodaEventDecoder Link icon

      public CodaEventDecoder getCodaEventDecoder()
    • initEvent Link icon

      public void initEvent(org.jlab.io.base.DataEvent event)
    • getEntriesADC Link icon

      public List<DetectorDataDgtz> getEntriesADC(DetectorType type)
      return list of digitized ADC values from internal list
      Parameters:
      type - detector type
      Returns:
    • getEntriesADC Link icon

      public List<DetectorDataDgtz> getEntriesADC(DetectorType type, List<DetectorDataDgtz> entries)
      returns ADC entries from decoded data for given detector TYPE
      Parameters:
      type - detector type
      entries - digitized data list
      Returns:
      list of ADC's for detector type
    • getEntriesTDC Link icon

      public List<DetectorDataDgtz> getEntriesTDC(DetectorType type)
    • getEntriesTDC Link icon

      public List<DetectorDataDgtz> getEntriesTDC(DetectorType type, List<DetectorDataDgtz> entries)
      returns TDC entries from decoded data for given detector type
      Parameters:
      type - detector type
      entries - digitized data list
      Returns:
      list of ADC's for detector type
    • getEntriesVTP Link icon

      public List<DetectorDataDgtz> getEntriesVTP(DetectorType type)
    • getEntriesVTP Link icon

      public List<DetectorDataDgtz> getEntriesVTP(DetectorType type, List<DetectorDataDgtz> entries)
      returns VTP entries from decoded data for given detector type
      Parameters:
      type - detector type
      entries - digitized data list
      Returns:
      list of VTP's for detector type
    • getEntriesSCALER Link icon

      public List<DetectorDataDgtz> getEntriesSCALER(DetectorType type)
    • getEntriesSCALER Link icon

      public List<DetectorDataDgtz> getEntriesSCALER(DetectorType type, List<DetectorDataDgtz> entries)
      returns VTP entries from decoded data for given detector type
      Parameters:
      type - detector type
      entries - digitized data list
      Returns:
      list of VTP's for detector type
    • getDataBankADC Link icon

      public org.jlab.io.base.DataBank getDataBankADC(String name, DetectorType type)
    • getDataBankTDC Link icon

      public org.jlab.io.base.DataBank getDataBankTDC(String name, DetectorType type)
    • getDataBankUndecodedADC Link icon

      public org.jlab.io.base.DataBank getDataBankUndecodedADC(String name, DetectorType type)
    • getDataBankUndecodedTDC Link icon

      public org.jlab.io.base.DataBank getDataBankUndecodedTDC(String name, DetectorType type)
    • getDataBankUndecodedVTP Link icon

      public org.jlab.io.base.DataBank getDataBankUndecodedVTP(String name, DetectorType type)
    • getDataBankUndecodedSCALER Link icon

      public org.jlab.io.base.DataBank getDataBankUndecodedSCALER(String name, DetectorType type)
    • getDataEvent Link icon

      public org.jlab.io.base.DataEvent getDataEvent(org.jlab.io.base.DataEvent rawEvent)
    • getDataEvent Link icon

      public org.jlab.io.base.DataEvent getDataEvent()
    • getTriggerPhase Link icon

      public long getTriggerPhase()
    • createHeaderBank Link icon

      public org.jlab.io.hipo.HipoDataBank createHeaderBank(org.jlab.io.base.DataEvent event, int nrun, int nevent, float torus, float solenoid)
    • createTriggerBank Link icon

      public org.jlab.io.hipo.HipoDataBank createTriggerBank(org.jlab.io.base.DataEvent event)
    • main Link icon

      public static void main(String[] args)