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 (uint32_t value) | |
ETLSample (const ETLSample &o) | |
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 17 of file ETLSample.h.
Enumerator | |
---|---|
kThreshShift | |
kModeShift | |
kColumnShift | |
kRowShift | |
kToAShift | |
kDataShift |
Definition at line 19 of file ETLSample.h.
|
inline |
|
inline |
Definition at line 26 of file ETLSample.h.
|
inline |
Definition at line 27 of file ETLSample.h.
|
inline |
Definition at line 63 of file ETLSample.h.
References kColumnMask, kColumnShift, and value_.
Referenced by print().
|
inline |
Definition at line 66 of file ETLSample.h.
References kDataMask, kDataShift, and value_.
Referenced by print().
|
inline |
Definition at line 62 of file ETLSample.h.
References kModeMask, kModeShift, and value_.
Referenced by print().
|
inline |
|
inline |
Definition at line 47 of file ETLSample.h.
References column(), data(), TauDecayModes::dec, mode(), MillePedeFileConverter_cfg::out, raw(), row(), threshold(), and toa().
|
inline |
|
inline |
Definition at line 64 of file ETLSample.h.
References kRowMask, kRowShift, and value_.
Referenced by print().
|
inline |
Definition at line 38 of file ETLSample.h.
References cuy::col, kColumnMask, kColumnShift, kDataMask, kDataShift, kModeMask, kModeShift, kRowMask, kRowShift, kThreshMask, kThreshShift, kToAMask, kToAShift, and value_.
Referenced by ETLElectronicsSim::runTrivialShaper().
|
inline |
Definition at line 34 of file ETLSample.h.
References kColumnMask, kColumnShift, and setWord().
|
inline |
Definition at line 37 of file ETLSample.h.
References kDataMask, kDataShift, and setWord().
|
inline |
Definition at line 33 of file ETLSample.h.
References kModeMask, kModeShift, and setWord().
|
inline |
Definition at line 35 of file ETLSample.h.
References kRowMask, kRowShift, and setWord().
|
inline |
setters
Definition at line 32 of file ETLSample.h.
References kThreshMask, kThreshShift, and setWord().
|
inline |
Definition at line 36 of file ETLSample.h.
References kToAMask, kToAShift, and setWord().
|
inlineprivate |
wrapper to reset words at a given position
Definition at line 74 of file ETLSample.h.
References RecoTauDiscriminantConfiguration::mask, and value_.
Referenced by setColumn(), setData(), setMode(), setRow(), setThreshold(), and setToA().
|
inline |
Definition at line 61 of file ETLSample.h.
References kThreshMask, kThreshShift, and value_.
Referenced by print().
|
inline |
Definition at line 65 of file ETLSample.h.
References kToAMask, kToAShift, and value_.
Referenced by print().
|
private |
Definition at line 83 of file ETLSample.h.
Referenced by column(), data(), mode(), operator()(), raw(), row(), set(), setWord(), threshold(), and toa().