Class DaqScaler
java.lang.Object
org.jlab.detector.scalers.DaqScaler
- Direct Known Subclasses:
Dsc2Scaler, StruckScaler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected doubleprotected doubleprotected doubleprotected longprotected doubleprotected static final intprotected longprotected longprotected longprotected longprotected doubleprotected static final Stringprotected long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd raw values from another scaler reading to this one.protected final voidcalibrate(IndexedTable fcupTable, IndexedTable slmTable) Use the scaler's own clock to get dwell and live-dwell timesprotected voidcalibrate(IndexedTable fcupTable, IndexedTable slmTable, double seconds, double liveSeconds) Manually choose dwell and live-dwell times, e.g. if clock rolls over.doubledoubledoubledoublefinal longgetClock()final doublefinal longgetFcup()final longfinal doublefinal longfinal longdoublefinal doublefinal doublefinal doublefinal longgetSlm()protected voidsetBeamCharge(double q) protected voidsetBeamChargeGated(double q) protected voidsetBeamChargeGatedSLM(double q) protected voidsetBeamChargeSLM(double q) final voidsetClock(long c) final voidsetGatedClock(long c) protected voidsetLivetime(double l) toString()
-
Field Details
-
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
-
setClock
public final void setClock(long c) -
setGatedClock
public final void setGatedClock(long c) -
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
-
add
Add raw values from another scaler reading to this one. Note, "calibrate" will need to be called afterwards.- Parameters:
other-
-
calibrate
protected void calibrate(IndexedTable fcupTable, IndexedTable slmTable, double seconds, double liveSeconds) Manually choose dwell and live-dwell times, e.g. if clock rolls over.- Parameters:
fcupTable- /runcontrol/fcup CCDB tableslmTable- /runcontrol/slm CCDB tableseconds- dwell timeliveSeconds- live dwell time
-
calibrate
Use the scaler's own clock to get dwell and live-dwell times- Parameters:
fcupTable- /runcontrol/fcup CCDB tableslmTable- /runcontrol/slm CCDB table
-