Contents
Class StruckScaler
java.lang.Object
org.jlab.detector.scalers.DaqScaler
org.jlab.detector.scalers.StruckScaler
The Struck is a multi-channel scaler that can buffer many readings over very
short dwell times, advanced by and latched to input control signals.
The CLAS12 DAQ uses this device to readout helicity-latched counts for the
purpose of beam-spin asymmetry measurements, and that's what this class is
geared towards.
At some point over the years, readout patterns changed and this class alone
is no longer sufficient. See StruckScalers instead.
- Author:
- baltzell
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Convenience for mapping channel number in RAW::scaler to input signal.static enum
Convenience for mapping channel number in RAW::scaler to scaler period. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HelicityBit
protected StruckScaler.Interval
protected HelicityBit
static final int
static final int
Fields inherited from class org.jlab.detector.scalers.DaqScaler
beamCharge, beamChargeGated, beamChargeGatedSLM, beamChargeSLM, clock, clockFreq, CRATE, fcup, gatedClock, gatedFcup, gatedSlm, livetime, RAWBANKNAME, slm
-
Constructor Summary
ConstructorsConstructorDescriptionStruckScaler
(org.jlab.jnp.hipo4.data.Bank bank, org.jlab.utils.groups.IndexedTable fcupTable, org.jlab.utils.groups.IndexedTable slmTable, org.jlab.utils.groups.IndexedTable helTable) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiongetHelicityInterval
(long clock, org.jlab.utils.groups.IndexedTable helTable) Determine whether the clock looks more like tsettle or tstable periods.getHelicityInterval
(org.jlab.utils.groups.IndexedTable helTable) Determine whether the clock looks more like tsettle or tstable periods.final StruckScaler.Interval
getStableInterval
(org.jlab.jnp.hipo4.data.Bank bank, org.jlab.utils.groups.IndexedTable helTable) Look for the first ungated clock readout whose value corresponds to the helicity tsettle period, and return it's Struck period.void
void
setInterval
(StruckScaler.Interval intvl) void
toString()
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
-
Field Details
-
Constructor Details
-
StruckScaler
public StruckScaler() -
StruckScaler
@Deprecated public StruckScaler(org.jlab.jnp.hipo4.data.Bank bank, org.jlab.utils.groups.IndexedTable fcupTable, org.jlab.utils.groups.IndexedTable slmTable, org.jlab.utils.groups.IndexedTable helTable) Deprecated.This made sense when we only had one tsettle+tstable in each readout.- Parameters:
bank
- a RAW::scaler bankfcupTable
- /runcontrol/fcup CCDB tableslmTable
- /runcontrol/slm CCDB tablehelTable
- /runcontrol/helicity CCDB table
-
-
Method Details
-
setHelicity
-
setQuartet
-
getHelicity
-
getQuartet
-
setInterval
-
getInterval
-
toString
-
getHelicityInterval
public HelicityInterval getHelicityInterval(long clock, org.jlab.utils.groups.IndexedTable helTable) Determine whether the clock looks more like tsettle or tstable periods.- Parameters:
clock
- the value of this clock readouthelTable
- /runcontrol/helicity CCDB table- Returns:
- the type of helicity period
-
getHelicityInterval
Determine whether the clock looks more like tsettle or tstable periods.- Parameters:
helTable
- /runcontrol/helicity CCDB table- Returns:
- the type of helicity period
-
getStableInterval
public final StruckScaler.Interval getStableInterval(org.jlab.jnp.hipo4.data.Bank bank, org.jlab.utils.groups.IndexedTable helTable) Look for the first ungated clock readout whose value corresponds to the helicity tsettle period, and return it's Struck period.- Parameters:
bank
- a RAW::scaler bankhelTable
- /runcontrol/helicity CCDB table- Returns:
- the type of Struck period
-