Contents
Class DecoderBoardUtil
java.lang.Object
org.jlab.detector.helicity.SequenceUtil
org.jlab.detector.helicity.DecoderBoardUtil
Delay correction and integrity checking for the JLab helicity decoder board's
HEL::decoder HIPO bank.
NOTE: To avoid repetition, generic objects are used to support different
types of HIPO banks.
- Author:
- baltzell
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DecoderBoardUtil
static final DecoderBoardUtil
static final DecoderBoardUtil
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Run all available integrity checking on a HEL::decoder bankboolean
checkHelicities
(Object bank) boolean
checkPatterns
(Object bank) int
getWindowHelicity
(Object bank, byte delayWindows) Window delay correction, for any pattern type.static String
toString
(org.jlab.jnp.hipo4.data.Bank b) Get a string representation of a HEL::decoder bank for human consumption.Methods inherited from class org.jlab.detector.helicity.SequenceUtil
check, checkHelicities, checkPairs, checkPatterns, getPatternHelicity, getWindowHelicity, toString
-
Field Details
-
Method Details
-
getWindowHelicity
Window delay correction, for any pattern type.- Parameters:
bank
- instance of HEL::decoder from the event of interestdelayWindows
- number of delay windows- Returns:
- delay-corrected helicity for the event of interest
-
checkPatterns
- Parameters:
bank
- the HEL::decoder bank to check- Returns:
- whether its pattern sequence looks good
-
checkHelicities
- Parameters:
bank
- the HEL::decoder bank to check- Returns:
- whether its helicity sequence looks good
-
check
Run all available integrity checking on a HEL::decoder bank- Parameters:
bank
- the HEL::decoder bank to check- Returns:
- whether everything looks good
-
toString
Get a string representation of a HEL::decoder bank for human consumption.- Parameters:
b
- the HEL::decoder bank to stringify- Returns:
-