wrapper for a data word More...
#include <HGCSample.h>
Public Types | |
enum | HGCSampleMasks { ADC_MASK =0x7fff, GAIN_MASK =0x1 } |
enum | HGCSamplePos { ADC_POS =0, GAIN_POS =15 } |
Public Member Functions | |
uint16_t | adc () const |
uint16_t | gain () const |
HGCSample () | |
CTOR. More... | |
HGCSample (uint16_t value) | |
uint16_t | operator() () |
uint16_t | raw () const |
getters More... | |
void | set (uint16_t gain, uint16_t adc) |
void | setADC (uint16_t adc) |
void | setGain (uint16_t gain) |
setters More... | |
Private Member Functions | |
void | setWord (uint16_t word, uint16_t mask, uint16_t pos) |
wrapper to reset words at a given position More... | |
Private Attributes | |
uint16_t | value_ |
wrapper for a data word
Definition at line 12 of file HGCSample.h.
Enumerator | |
---|---|
ADC_MASK | |
GAIN_MASK |
Definition at line 16 of file HGCSample.h.
Enumerator | |
---|---|
ADC_POS | |
GAIN_POS |
Definition at line 17 of file HGCSample.h.
|
inline |
|
inline |
Definition at line 23 of file HGCSample.h.
|
inline |
Definition at line 37 of file HGCSample.h.
References ADC_MASK, ADC_POS, and value_.
|
inline |
Definition at line 36 of file HGCSample.h.
References GAIN_MASK, GAIN_POS, and value_.
|
inline |
|
inline |
|
inline |
Definition at line 30 of file HGCSample.h.
References setADC(), and setGain().
Referenced by betterConfigParser.BetterConfigParser::getGeneral(), HGCHEbackDigitizer::runCaliceLikeDigitizer(), HGCDigitizerBase< HGCEEDataFrame >::runShaper(), HGCDigitizerBase< HGCEEDataFrame >::runTrivial(), and HGCDigitizerBase< HGCEEDataFrame >::updateOutput().
|
inline |
Definition at line 29 of file HGCSample.h.
References ADC_MASK, ADC_POS, and setWord().
Referenced by set().
|
inline |
setters
Definition at line 28 of file HGCSample.h.
References GAIN_MASK, GAIN_POS, and setWord().
Referenced by set().
|
inlineprivate |
wrapper to reset words at a given position
Definition at line 45 of file HGCSample.h.
References value_.
Referenced by setADC(), and setGain().
|
private |
Definition at line 54 of file HGCSample.h.
Referenced by adc(), gain(), operator()(), raw(), and setWord().