Class TriggerBackgroundHandler

java.lang.Object
clickDetector.basicalgorithm.TriggerBackgroundHandler

public class TriggerBackgroundHandler extends Object
Class to stack up blocks of data about the trigger background level and store them into sensible sized data units, i.e. about a minutes data in each data unit in order to avoid too much overhead from the headers.
Author:
Doug Gillespie
  • Constructor Details

    • TriggerBackgroundHandler

      public TriggerBackgroundHandler(ClickDetector clickDetector)
  • Method Details

    • prepare

      public void prepare()
    • newValue

      public void newValue(long timeMillis, int iChan, double backgroundValue)
      Add data to the background handler
      Parameters:
      timeMillis - data time in millis
      iChan - channel number
      backgroundValue - background value (raw units, generally 0 invalid input: '<' value invalid input: '<' 1)
    • getClickControl

      public ClickControl getClickControl()
      Returns:
      the clickControl
    • getTriggerBackgroundDataBlock

      public TriggerBackgroundDataBlock getTriggerBackgroundDataBlock()
      Returns:
      the triggerBackgroundDataBlock