Class DaqScaler

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

public class DaqScaler extends Object
  • Field Details

    • RAWBANKNAME

      protected static final String RAWBANKNAME
      See Also:
    • CRATE

      protected static final int CRATE
      See Also:
    • clockFreq

      protected double clockFreq
    • fcup

      protected long fcup
    • clock

      protected long clock
    • slm

      protected long slm
    • gatedFcup

      protected long gatedFcup
    • gatedClock

      protected long gatedClock
    • gatedSlm

      protected long gatedSlm
    • beamCharge

      protected double beamCharge
    • beamChargeGated

      protected double beamChargeGated
    • beamChargeSLM

      protected double beamChargeSLM
    • beamChargeGatedSLM

      protected double beamChargeGatedSLM
    • livetime

      protected double livetime
  • Constructor Details

    • DaqScaler

      public DaqScaler()
  • Method Details

    • getClock

      public final long getClock()
    • getFcup

      public final long getFcup()
    • getSlm

      public final long getSlm()
    • getGatedClock

      public final long getGatedClock()
    • getGatedFcup

      public final long getGatedFcup()
    • getGatedSlm

      public final long getGatedSlm()
    • getClockSeconds

      public final double getClockSeconds()
    • getGatedClockSeconds

      public final double getGatedClockSeconds()
    • getLivetimeClock

      public final double getLivetimeClock()
    • getLivetimeFcup

      public final double getLivetimeFcup()
    • getLivetimeSLM

      public final double getLivetimeSLM()
    • setBeamCharge

      protected void setBeamCharge(double q)
    • setBeamChargeGated

      protected void setBeamChargeGated(double q)
    • setBeamChargeSLM

      protected void setBeamChargeSLM(double q)
    • setBeamChargeGatedSLM

      protected void setBeamChargeGatedSLM(double q)
    • setLivetime

      protected void setLivetime(double l)
    • getBeamCharge

      public double getBeamCharge()
    • getBeamChargeGated

      public double getBeamChargeGated()
    • getLivetime

      public double getLivetime()
    • getBeamChargeSLM

      public double getBeamChargeSLM()
    • getBeamChargeGatedSLM

      public double getBeamChargeGatedSLM()
    • toString

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

      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

      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

      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