Package org.jlab.detector.scalers
Class Dsc2Scaler
java.lang.Object
org.jlab.detector.scalers.DaqScaler
org.jlab.detector.scalers.Dsc2Scaler
The DSC2 is a JLab-designed discriminator board with 2 thresholds, called TDC
 and TRG, with independent outputs, both gated and ungated, and corresponding
 VME-readable scalers.
 
 The CLAS12 DAQ uses this board to periodically readout run-integrated scalers
 like the Faraday cup and SLM, for the purposes of total beam-charge measurements,
 and that's what this class is geared towards.
- Author:
- baltzell
- 
Field SummaryFieldsFields inherited from class org.jlab.detector.scalers.DaqScalerbeamCharge, beamChargeGated, beamChargeGatedSLM, beamChargeSLM, clock, clockFreq, CRATE, fcup, gatedClock, gatedFcup, gatedSlm, livetime, RAWBANKNAME, slm
- 
Constructor SummaryConstructorsConstructorDescriptionDsc2Scaler(org.jlab.jnp.hipo4.data.Bank bank, IndexedTable fcupTable, IndexedTable slmTable, double seconds) Dsc2Scaler(org.jlab.jnp.hipo4.data.Bank bank, IndexedTable fcupTable, IndexedTable slmTable, IndexedTable dscTable) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected final voidcalibrate(IndexedTable fcupTable, IndexedTable slmTable, double seconds) During some run periods, the run-integrating DSC2 scaler's clock frequency was too large and rolls over during the run.final voidread(org.jlab.jnp.hipo4.data.Bank bank) Methods inherited from class org.jlab.detector.scalers.DaqScaleradd, calibrate, calibrate, getBeamCharge, getBeamChargeGated, getBeamChargeGatedSLM, getBeamChargeSLM, getClock, getClockSeconds, getFcup, getGatedClock, getGatedClockSeconds, getGatedFcup, getGatedSlm, getLivetime, getLivetimeClock, getLivetimeFcup, getLivetimeSLM, getSlm, setBeamCharge, setBeamChargeGated, setBeamChargeGatedSLM, setBeamChargeSLM, setLivetime, toString
- 
Field Details- 
MAX_DSC2_CLOCK_FREQpublic static final long MAX_DSC2_CLOCK_FREQ- See Also:
 
 
- 
- 
Constructor Details- 
Dsc2Scalerpublic Dsc2Scaler()
- 
Dsc2Scalerpublic Dsc2Scaler(org.jlab.jnp.hipo4.data.Bank bank, IndexedTable fcupTable, IndexedTable slmTable, double seconds) - Parameters:
- bank- RAW::scaler bank
- fcupTable- /runcontrol/fcup CCDB table
- slmTable- /runcontrol/slm CCDB table
- seconds- dwell time, provided in case the clock rolls over
 
- 
Dsc2Scalerpublic Dsc2Scaler(org.jlab.jnp.hipo4.data.Bank bank, IndexedTable fcupTable, IndexedTable slmTable, IndexedTable dscTable) - Parameters:
- bank- RAW::scaler bank
- fcupTable- /runcontrol/fcup CCDB table
- slmTable- /runcontrol/slm CCDB table
- dscTable- /daq/config/scalers/dsc1 CCDB table
 
 
- 
- 
Method Details- 
calibrateDuring some run periods, the run-integrating DSC2 scaler's clock frequency was too large and rolls over during the run. So here we can pass in seconds (e.g. based on RCDB run start time) instead.- Parameters:
- fcupTable- /runcontrol/fcup CCDB table
- slmTable- /runcontrol/slm CCDB table
- seconds-
 
- 
readpublic final void read(org.jlab.jnp.hipo4.data.Bank bank) - Parameters:
- bank-
 
 
-