Contents
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 Summary
FieldsFields inherited from class org.jlab.detector.scalers.DaqScaler
beamCharge, beamChargeGated, beamChargeGatedSLM, beamChargeSLM, clock, clockFreq, CRATE, fcup, gatedClock, gatedFcup, gatedSlm, livetime, RAWBANKNAME, slm
-
Constructor Summary
ConstructorsConstructorDescriptionDsc2Scaler
(org.jlab.jnp.hipo4.data.Bank bank, org.jlab.utils.groups.IndexedTable fcupTable, org.jlab.utils.groups.IndexedTable slmTable, double seconds) Dsc2Scaler
(org.jlab.jnp.hipo4.data.Bank bank, org.jlab.utils.groups.IndexedTable fcupTable, org.jlab.utils.groups.IndexedTable slmTable, org.jlab.utils.groups.IndexedTable dscTable) -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
calibrate
(org.jlab.utils.groups.IndexedTable fcupTable, org.jlab.utils.groups.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 void
read
(org.jlab.jnp.hipo4.data.Bank bank) Methods inherited from class org.jlab.detector.scalers.DaqScaler
add, 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
-
Constructor Details
-
Dsc2Scaler
public Dsc2Scaler() -
Dsc2Scaler
public Dsc2Scaler(org.jlab.jnp.hipo4.data.Bank bank, org.jlab.utils.groups.IndexedTable fcupTable, org.jlab.utils.groups.IndexedTable slmTable, double seconds) - Parameters:
bank
- RAW::scaler bankfcupTable
- /runcontrol/fcup CCDB tableslmTable
- /runcontrol/slm CCDB tableseconds
- dwell time, provided in case the clock rolls over
-
Dsc2Scaler
public Dsc2Scaler(org.jlab.jnp.hipo4.data.Bank bank, org.jlab.utils.groups.IndexedTable fcupTable, org.jlab.utils.groups.IndexedTable slmTable, org.jlab.utils.groups.IndexedTable dscTable) - Parameters:
bank
- RAW::scaler bankfcupTable
- /runcontrol/fcup CCDB tableslmTable
- /runcontrol/slm CCDB tabledscTable
- /daq/config/scalers/dsc1 CCDB table
-
-
Method Details
-
calibrate
protected final void calibrate(org.jlab.utils.groups.IndexedTable fcupTable, org.jlab.utils.groups.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. So here we can pass in seconds (e.g. based on RCDB run start time) instead.- Parameters:
fcupTable
- /runcontrol/fcup CCDB tableslmTable
- /runcontrol/slm CCDB tableseconds
-
-
read
public final void read(org.jlab.jnp.hipo4.data.Bank bank) - Parameters:
bank
-
-