Class DaqScaler

java.lang.Object
org.jlab.detector.scalers.DaqScaler
Direct Known Subclasses:
Dsc2Scaler, StruckScaler

public class DaqScaler extends Object
  • Field Details Link icon

    • RAWBANKNAME Link icon

      protected static final String RAWBANKNAME
      See Also:
    • CRATE Link icon

      protected static final int CRATE
      See Also:
    • clockFreq Link icon

      protected double clockFreq
    • fcup Link icon

      protected long fcup
    • clock Link icon

      protected long clock
    • slm Link icon

      protected long slm
    • gatedFcup Link icon

      protected long gatedFcup
    • gatedClock Link icon

      protected long gatedClock
    • gatedSlm Link icon

      protected long gatedSlm
    • beamCharge Link icon

      protected double beamCharge
    • beamChargeGated Link icon

      protected double beamChargeGated
    • beamChargeSLM Link icon

      protected double beamChargeSLM
    • beamChargeGatedSLM Link icon

      protected double beamChargeGatedSLM
    • livetime Link icon

      protected double livetime
  • Constructor Details Link icon

    • DaqScaler Link icon

      public DaqScaler()
  • Method Details Link icon

    • getClock Link icon

      public final long getClock()
    • getFcup Link icon

      public final long getFcup()
    • getSlm Link icon

      public final long getSlm()
    • getGatedClock Link icon

      public final long getGatedClock()
    • getGatedFcup Link icon

      public final long getGatedFcup()
    • getGatedSlm Link icon

      public final long getGatedSlm()
    • getClockSeconds Link icon

      public final double getClockSeconds()
    • getGatedClockSeconds Link icon

      public final double getGatedClockSeconds()
    • getLivetimeClock Link icon

      public final double getLivetimeClock()
    • getLivetimeFcup Link icon

      public final double getLivetimeFcup()
    • getLivetimeSLM Link icon

      public final double getLivetimeSLM()
    • setBeamCharge Link icon

      protected void setBeamCharge(double q)
    • setBeamChargeGated Link icon

      protected void setBeamChargeGated(double q)
    • setBeamChargeSLM Link icon

      protected void setBeamChargeSLM(double q)
    • setBeamChargeGatedSLM Link icon

      protected void setBeamChargeGatedSLM(double q)
    • setLivetime Link icon

      protected void setLivetime(double l)
    • getBeamCharge Link icon

      public double getBeamCharge()
    • getBeamChargeGated Link icon

      public double getBeamChargeGated()
    • getLivetime Link icon

      public double getLivetime()
    • getBeamChargeSLM Link icon

      public double getBeamChargeSLM()
    • getBeamChargeGatedSLM Link icon

      public double getBeamChargeGatedSLM()
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object
    • add Link icon

      public void add(DaqScaler other)
      Add raw values from another scaler reading to this one. Note, "calibrate" will need to be called afterwards.
      Parameters:
      other -
    • calibrate Link icon

      protected void calibrate(org.jlab.utils.groups.IndexedTable fcupTable, org.jlab.utils.groups.IndexedTable slmTable, double seconds, double liveSeconds)
      Manually choose dwell and live-dwell times, e.g. if clock rolls over.
      Parameters:
      fcupTable - /runcontrol/fcup CCDB table
      slmTable - /runcontrol/slm CCDB table
      seconds - dwell time
      liveSeconds - live dwell time
    • calibrate Link icon

      protected final void calibrate(org.jlab.utils.groups.IndexedTable fcupTable, org.jlab.utils.groups.IndexedTable slmTable)
      Use the scaler's own clock to get dwell and live-dwell times
      Parameters:
      fcupTable - /runcontrol/fcup CCDB table
      slmTable - /runcontrol/slm CCDB table