Class ModeAHDC

All Implemented Interfaces:
IExtractor

public class ModeAHDC extends HipoExtractor
A new extraction method dedicated to the AHDC signal waveform Some blocks of code are inspired by MVTFitter.java and Bonus12 (`createBonusBank()`)
Author:
ftouchte
  • Field Details

  • Constructor Details

    • ModeAHDC

      public ModeAHDC()
  • Method Details

    • extract

      public List<Pulse> extract(NamedEntry pars, int id, long timestamp, long time, short... samples)
      This method extracts relevant informations from the digitized signal (the samples) and store them in a Pulse
      Parameters:
      pars - CCDB row
      id - link to row in source bank
      timestamp - ...
      time - time (exprimed in bin) of the first channel of the AHDC pulse (after or not zero suppress; if ZS=0, time == 0)
      samples - ADC samples
    • update

      public void update(int n, IndexedTable it, DataEvent event, String wfBankName, String adcBankName)
      Description copied from class: HipoExtractor
      This could be overriden, e.g., for non-standard ADC banks.
      Overrides:
      update in class HipoExtractor
      Parameters:
      n - number of samples in readout
      it - CCDB table containing extraction initialization parameters
      event - the event to modify
      wfBankName - name of the input waveform bank
      adcBankName - name of the output ADC bank
    • update

      protected void update(int n, IndexedTable it, org.jlab.jnp.hipo4.data.Bank wfBank, org.jlab.jnp.hipo4.data.Bank adcBank)
      Description copied from class: HipoExtractor
      This could be overriden, e.g., for non-standard ADC banks.
      Overrides:
      update in class HipoExtractor
      Parameters:
      n - number of samples in readout
      it - CCDB table containing extraction initialization parameters
      wfBank - input waveform bank
      adcBank - output ADC bank