wrapper for a data word More...
#include <ETLSample.h>
Public Types | |
enum | ETLSampleMasks { kThreshMask = 0x1, kModeMask = 0x1, kColumnMask = 0x1f, kRowMask = 0x3f, kToAMask = 0x7ff, kDataMask = 0xff } |
enum | ETLSampleShifts { kThreshShift = 31, kModeShift = 30, kColumnShift = 25, kRowShift = 19, kToAShift = 8, kDataShift = 0 } |
Public Member Functions | |
uint32_t | column () const |
uint32_t | data () const |
ETLSample () | |
CTOR. More... | |
ETLSample (const ETLSample &o) | |
ETLSample (uint32_t value) | |
bool | mode () const |
uint32_t | operator() () |
void | print (std::ostream &out=std::cout) |
uint32_t | raw () const |
getters More... | |
uint32_t | row () const |
void | set (bool thr, bool mode, uint16_t toa, uint16_t data, uint8_t row, uint8_t col) |
void | setColumn (uint8_t col) |
void | setData (uint16_t data) |
void | setMode (bool mode) |
void | setRow (uint8_t row) |
void | setThreshold (bool thr) |
setters More... | |
void | setToA (uint16_t toa) |
bool | threshold () const |
uint32_t | toa () const |
Private Member Functions | |
void | setWord (uint32_t word, uint32_t mask, uint32_t pos) |
wrapper to reset words at a given position More... | |
Private Attributes | |
uint32_t | value_ |
wrapper for a data word
Definition at line 13 of file ETLSample.h.
Enumerator | |
---|---|
kThreshMask | |
kModeMask | |
kColumnMask | |
kRowMask | |
kToAMask | |
kDataMask |
Definition at line 15 of file ETLSample.h.
Enumerator | |
---|---|
kThreshShift | |
kModeShift | |
kColumnShift | |
kRowShift | |
kToAShift | |
kDataShift |
Definition at line 23 of file ETLSample.h.
|
inline |
|
inline |
Definition at line 36 of file ETLSample.h.
|
inline |
Definition at line 37 of file ETLSample.h.
|
inline |
Definition at line 65 of file ETLSample.h.
References kColumnMask, kColumnShift, and value_.
Referenced by print().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 53 of file ETLSample.h.
References column(), data(), TauDecayModes::dec, mode(), MillePedeFileConverter_cfg::out, raw(), row(), threshold(), and toa().
|
inline |
|
inline |
|
inline |
Definition at line 48 of file ETLSample.h.
References cuy::col, data(), kColumnMask, kColumnShift, kDataMask, kDataShift, kModeMask, kModeShift, kRowMask, kRowShift, kThreshMask, kThreshShift, kToAMask, kToAShift, mode(), row(), toa(), and value_.
Referenced by ETLElectronicsSim::runTrivialShaper().
|
inline |
Definition at line 44 of file ETLSample.h.
References cuy::col, kColumnMask, kColumnShift, and setWord().
|
inline |
|
inline |
|
inline |
|
inline |
setters
Definition at line 42 of file ETLSample.h.
References kThreshMask, kThreshShift, and setWord().
|
inline |
|
inlineprivate |
wrapper to reset words at a given position
Definition at line 75 of file ETLSample.h.
References value_.
Referenced by setColumn(), setData(), setMode(), setRow(), setThreshold(), and setToA().
|
inline |
Definition at line 63 of file ETLSample.h.
References kThreshMask, kThreshShift, and value_.
Referenced by print().
|
inline |
|
private |
Definition at line 83 of file ETLSample.h.
Referenced by column(), data(), mode(), operator()(), raw(), row(), set(), setWord(), threshold(), and toa().