wrapper for a data word More...
#include <BTLSample.h>
Public Types | |
enum | BTLSampleDataMasks { kToA2Mask = 0x3ff, kToAMask = 0x3ff, kDataMask = 0x3ff } |
enum | BTLSampleDataShifts { kToA2Shift = 20, kToAShift = 10, kDataShift = 0 } |
enum | BTLSampleFlagMasks { kThreshMask = 0x1, kModeMask = 0x1 } |
enum | BTLSampleFlagShifts { kThreshShift = 1, kModeShift = 0 } |
Public Member Functions | |
BTLSample () | |
CTOR. More... | |
BTLSample (uint32_t value, uint16_t flag, uint8_t row, uint8_t col) | |
BTLSample (const BTLSample &o) | |
uint8_t | column () const |
uint32_t | data () const |
bool | mode () const |
void | print (std::ostream &out=std::cout) |
uint32_t | raw_data () const |
getters More... | |
uint16_t | raw_flag () const |
uint8_t | row () const |
void | set (bool thr, bool mode, uint16_t toa2, uint16_t toa, uint16_t data, uint8_t row, uint8_t col) |
void | setData (uint16_t data) |
void | setMode (bool mode) |
void | setThreshold (bool thr) |
setters More... | |
void | setToA (uint16_t toa) |
void | setToA2 (uint16_t toa2) |
bool | threshold () const |
uint32_t | toa () const |
uint32_t | toa2 () const |
Private Member Functions | |
void | setDataWord (uint32_t word, uint32_t mask, uint32_t pos) |
wrapper to reset words at a given position More... | |
void | setFlagWord (uint16_t word, uint16_t mask, uint16_t pos) |
Private Attributes | |
uint8_t | col_ |
uint16_t | flag_ |
uint8_t | row_ |
uint32_t | value_ |
wrapper for a data word
Definition at line 13 of file BTLSample.h.
Enumerator | |
---|---|
kToA2Mask | |
kToAMask | |
kDataMask |
Definition at line 15 of file BTLSample.h.
Enumerator | |
---|---|
kToA2Shift | |
kToAShift | |
kDataShift |
Definition at line 16 of file BTLSample.h.
Enumerator | |
---|---|
kThreshMask | |
kModeMask |
Definition at line 18 of file BTLSample.h.
Enumerator | |
---|---|
kThreshShift | |
kModeShift |
Definition at line 19 of file BTLSample.h.
|
inline |
|
inline |
Definition at line 25 of file BTLSample.h.
|
inline |
Definition at line 27 of file BTLSample.h.
|
inline |
|
inline |
Definition at line 60 of file BTLSample.h.
References kDataMask, kDataShift, and value_.
Referenced by print().
|
inline |
Definition at line 57 of file BTLSample.h.
References flag_, kModeMask, and kModeShift.
Referenced by print().
|
inline |
Definition at line 45 of file BTLSample.h.
References column(), data(), TauDecayModes::dec, mode(), submitPVResolutionJobs::out, raw_data(), raw_flag(), row(), threshold(), toa(), and toa2().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 37 of file BTLSample.h.
References cuy::col, col_, flag_, kDataMask, kDataShift, kModeMask, kModeShift, kThreshMask, kThreshShift, kToA2Mask, kToA2Shift, kToAMask, kToAShift, row(), row_, and value_.
Referenced by BTLElectronicsSim::runTrivialShaper().
|
inline |
Definition at line 36 of file BTLSample.h.
References kDataMask, kDataShift, and setDataWord().
|
inlineprivate |
|
inlineprivate |
Definition at line 74 of file BTLSample.h.
References flag_.
Referenced by setMode(), and setThreshold().
|
inline |
Definition at line 33 of file BTLSample.h.
References kModeMask, kModeShift, and setFlagWord().
|
inline |
setters
Definition at line 32 of file BTLSample.h.
References kThreshMask, kThreshShift, and setFlagWord().
|
inline |
Definition at line 34 of file BTLSample.h.
References kToAMask, kToAShift, and setDataWord().
|
inline |
Definition at line 35 of file BTLSample.h.
References kToA2Mask, kToA2Shift, and setDataWord().
|
inline |
Definition at line 56 of file BTLSample.h.
References flag_, kThreshMask, and kThreshShift.
Referenced by print().
|
inline |
Definition at line 58 of file BTLSample.h.
References kToAMask, kToAShift, and value_.
Referenced by print().
|
inline |
Definition at line 59 of file BTLSample.h.
References kToA2Mask, kToA2Shift, and value_.
Referenced by print().
|
private |
Definition at line 84 of file BTLSample.h.
|
private |
Definition at line 83 of file BTLSample.h.
Referenced by mode(), raw_flag(), set(), setFlagWord(), and threshold().
|
private |
Definition at line 84 of file BTLSample.h.
|
private |
Definition at line 82 of file BTLSample.h.
Referenced by data(), raw_data(), set(), setDataWord(), toa(), and toa2().