Package org.jlab.detector.helicity
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 SummaryFieldsModifier and TypeFieldDescriptionstatic final DecoderBoardUtilstatic final DecoderBoardUtilstatic final DecoderBoardUtil
- 
Method SummaryModifier and TypeMethodDescriptionbooleanRun all available integrity checking on a HEL::decoder bankbooleancheckHelicities(Object bank) booleancheckPatterns(Object bank) intgetWindowHelicity(Object bank, byte delayWindows) Window delay correction, for any pattern type.static StringtoString(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.SequenceUtilcheck, checkHelicities, checkPairs, checkPatterns, getPatternHelicity, getWindowHelicity, toString
- 
Field Details- 
PAIR
- 
QUARTET
- 
OCTET
 
- 
- 
Method Details- 
getWindowHelicityWindow delay correction, for any pattern type.- Parameters:
- bank- instance of HEL::decoder from the event of interest
- delayWindows- 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
 
- 
checkRun all available integrity checking on a HEL::decoder bank- Parameters:
- bank- the HEL::decoder bank to check
- Returns:
- whether everything looks good
 
- 
toStringGet a string representation of a HEL::decoder bank for human consumption.- Parameters:
- b- the HEL::decoder bank to stringify
- Returns:
 
 
-