Class CLASDecoder4

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

public class CLASDecoder4 extends Object
Author:
gavalian
  • Constructor Details

    • CLASDecoder4

      public CLASDecoder4(boolean development)
    • CLASDecoder4

      public CLASDecoder4()
  • Method Details

    • createDecoder

      public static CLASDecoder createDecoder()
    • createDecoderDevel

      public static CLASDecoder createDecoderDevel()
    • setVariation

      public void setVariation(String variation)
    • setDebugMode

      public void setDebugMode(int mode)
    • setRunNumber

      public void setRunNumber(int run)
    • setRunNumber

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

      public CodaEventDecoder getCodaEventDecoder()
    • initEvent

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

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

      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

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

      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

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

      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

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

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

      public void extractPulses(org.jlab.jnp.hipo4.data.Event event)
    • getDataBankWF

      public org.jlab.jnp.hipo4.data.Bank getDataBankWF(String name, DetectorType type)
    • getDataBankADC

      public org.jlab.jnp.hipo4.data.Bank getDataBankADC(String name, DetectorType type)
    • getDataBankTDC

      public org.jlab.jnp.hipo4.data.Bank getDataBankTDC(String name, DetectorType type)
    • getDataBankTDCPetiroc

      public org.jlab.jnp.hipo4.data.Bank getDataBankTDCPetiroc(String name, DetectorType type)
    • getDataBankTimeStamp

      public org.jlab.jnp.hipo4.data.Bank getDataBankTimeStamp(String name, DetectorType type)
    • getDataBankUndecodedADC

      public org.jlab.jnp.hipo4.data.Bank getDataBankUndecodedADC(String name, DetectorType type)
    • getDataBankUndecodedTDC

      public org.jlab.jnp.hipo4.data.Bank getDataBankUndecodedTDC(String name, DetectorType type)
    • getDataBankUndecodedVTP

      public org.jlab.jnp.hipo4.data.Bank getDataBankUndecodedVTP(String name, DetectorType type)
    • getDataBankUndecodedSCALER

      public org.jlab.jnp.hipo4.data.Bank getDataBankUndecodedSCALER(String name, DetectorType type)
    • getDecodedEvent

      public org.jlab.jnp.hipo4.data.Event getDecodedEvent(org.jlab.io.evio.EvioDataEvent rawEvent, int run, int counter, double torus, double solenoid)
    • getDataEvent

      public org.jlab.jnp.hipo4.data.Event getDataEvent(org.jlab.io.base.DataEvent rawEvent)
    • getDataEvent

      public org.jlab.jnp.hipo4.data.Event getDataEvent()
    • getTriggerPhase

      public long getTriggerPhase()
    • createHeaderBank

      public org.jlab.jnp.hipo4.data.Bank createHeaderBank(int nrun, int nevent, float torus, float solenoid)
    • createOnlineHelicityBank

      public org.jlab.jnp.hipo4.data.Bank createOnlineHelicityBank()
    • createTriggerBank

      public org.jlab.jnp.hipo4.data.Bank createTriggerBank()
    • createEpicsBank

      public org.jlab.jnp.hipo4.data.Bank createEpicsBank()
    • createReconScalerBanks

      public List<org.jlab.jnp.hipo4.data.Bank> createReconScalerBanks(org.jlab.jnp.hipo4.data.Event event)
      Create the RUN::scaler and HEL::scaler banks Requires: - RAW::scaler - fcup/slm/hel/dsc calibrations from CCDB - event unix time from RUN::config and run start time from RCDB, or a good clock frequency from CCDB
      Parameters:
      event -
      Returns:
    • createBonusBank

      public org.jlab.jnp.hipo4.data.Bank createBonusBank()
    • createHelicityDecoderBank

      public org.jlab.jnp.hipo4.data.Bank createHelicityDecoderBank(org.jlab.io.evio.EvioDataEvent event)
    • main

      public static void main(String[] args)