Package org.jlab.detector.scalers
Class DaqScaler
java.lang.Object
org.jlab.detector.scalers.DaqScaler
- Direct Known Subclasses:
- Dsc2Scaler,- StruckScaler
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected doubleprotected doubleprotected doubleprotected doubleprotected longprotected doubleprotected static final intprotected longprotected longprotected longprotected longprotected doubleprotected static final Stringprotected long
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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) protected voidsetLivetime(double l) toString()
- 
Field Details- 
RAWBANKNAME- See Also:
 
- 
CRATEprotected static final int CRATE- See Also:
 
- 
clockFreqprotected double clockFreq
- 
fcupprotected long fcup
- 
clockprotected long clock
- 
slmprotected long slm
- 
gatedFcupprotected long gatedFcup
- 
gatedClockprotected long gatedClock
- 
gatedSlmprotected long gatedSlm
- 
beamChargeprotected double beamCharge
- 
beamChargeGatedprotected double beamChargeGated
- 
beamChargeSLMprotected double beamChargeSLM
- 
beamChargeGatedSLMprotected double beamChargeGatedSLM
- 
livetimeprotected double livetime
 
- 
- 
Constructor Details- 
DaqScalerpublic DaqScaler()
 
- 
- 
Method Details- 
getClockpublic final long getClock()
- 
getFcuppublic final long getFcup()
- 
getSlmpublic final long getSlm()
- 
getGatedClockpublic final long getGatedClock()
- 
getGatedFcuppublic final long getGatedFcup()
- 
getGatedSlmpublic final long getGatedSlm()
- 
getClockSecondspublic final double getClockSeconds()
- 
getGatedClockSecondspublic final double getGatedClockSeconds()
- 
getLivetimeClockpublic final double getLivetimeClock()
- 
getLivetimeFcuppublic final double getLivetimeFcup()
- 
getLivetimeSLMpublic final double getLivetimeSLM()
- 
setBeamChargeprotected void setBeamCharge(double q) 
- 
setBeamChargeGatedprotected void setBeamChargeGated(double q) 
- 
setBeamChargeSLMprotected void setBeamChargeSLM(double q) 
- 
setBeamChargeGatedSLMprotected void setBeamChargeGatedSLM(double q) 
- 
setLivetimeprotected void setLivetime(double l) 
- 
getBeamChargepublic double getBeamCharge()
- 
getBeamChargeGatedpublic double getBeamChargeGated()
- 
getLivetimepublic double getLivetime()
- 
getBeamChargeSLMpublic double getBeamChargeSLM()
- 
getBeamChargeGatedSLMpublic double getBeamChargeGatedSLM()
- 
toString
- 
addAdd raw values from another scaler reading to this one. Note, "calibrate" will need to be called afterwards.- Parameters:
- other-
 
- 
calibrateprotected 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 table
- slmTable- /runcontrol/slm CCDB table
- seconds- dwell time
- liveSeconds- live dwell time
 
- 
calibrateUse the scaler's own clock to get dwell and live-dwell times- Parameters:
- fcupTable- /runcontrol/fcup CCDB table
- slmTable- /runcontrol/slm CCDB table
 
 
-