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, kToTMask = 0x7ff } |
enum | ETLSampleShifts { kThreshShift = 31, kModeShift = 30, kColumnShift = 25, kRowShift = 19, kToAShift = 8, kDataShift = 0, kToTShift = 0 } |
Public Member Functions | |
uint32_t | column () const |
uint32_t | data () const |
ETLSample () | |
CTOR. More... | |
ETLSample (uint32_t value) | |
ETLSample (uint32_t value, uint32_t valueToT) | |
ETLSample (const ETLSample &o) | |
bool | mode () const |
uint32_t | operator() () |
ETLSample & | operator= (const ETLSample &)=default |
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 tot, 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) |
void | setToT (uint16_t tot) |
bool | threshold () const |
uint32_t | toa () const |
uint32_t | tot () const |
Private Member Functions | |
void | setWord (uint32_t word, uint32_t mask, uint32_t pos) |
wrapper to reset words at a given position More... | |
void | setWordToT (uint32_t word, uint32_t mask, uint32_t pos) |
Private Attributes | |
uint32_t | value_ |
uint32_t | valueToT_ |
wrapper for a data word
Definition at line 13 of file ETLSample.h.
Enumerator | |
---|---|
kThreshMask | |
kModeMask | |
kColumnMask | |
kRowMask | |
kToAMask | |
kDataMask | |
kToTMask |
Definition at line 15 of file ETLSample.h.
Enumerator | |
---|---|
kThreshShift | |
kModeShift | |
kColumnShift | |
kRowShift | |
kToAShift | |
kDataShift | |
kToTShift |
Definition at line 24 of file ETLSample.h.
|
inline |
|
inline |
Definition at line 38 of file ETLSample.h.
|
inline |
Definition at line 39 of file ETLSample.h.
|
inline |
Definition at line 40 of file ETLSample.h.
|
inline |
Definition at line 71 of file ETLSample.h.
References kColumnMask, kColumnShift, and value_.
Referenced by print().
|
inline |
Definition at line 75 of file ETLSample.h.
References kDataMask, kDataShift, and value_.
Referenced by print(), set(), and setData().
|
inline |
Definition at line 70 of file ETLSample.h.
References kModeMask, kModeShift, and value_.
Referenced by print(), set(), and setMode().
|
inline |
|
inline |
Definition at line 59 of file ETLSample.h.
References column(), data(), TauDecayModes::dec, mode(), MillePedeFileConverter_cfg::out, raw(), row(), threshold(), toa(), and tot().
|
inline |
|
inline |
Definition at line 72 of file ETLSample.h.
References kRowMask, kRowShift, and value_.
Referenced by print(), set(), and setRow().
|
inline |
Definition at line 53 of file ETLSample.h.
References cuy::col, data(), kColumnMask, kColumnShift, kDataMask, kDataShift, kModeMask, kModeShift, kRowMask, kRowShift, kThreshMask, kThreshShift, kToAMask, kToAShift, kToTMask, kToTShift, mode(), row(), toa(), tot(), value_, and valueToT_.
Referenced by ETLElectronicsSim::runTrivialShaper().
|
inline |
Definition at line 48 of file ETLSample.h.
References cuy::col, kColumnMask, kColumnShift, and setWord().
|
inline |
Definition at line 52 of file ETLSample.h.
References data(), kDataMask, kDataShift, and setWord().
|
inline |
Definition at line 47 of file ETLSample.h.
References kModeMask, kModeShift, mode(), and setWord().
|
inline |
Definition at line 49 of file ETLSample.h.
References kRowMask, kRowShift, row(), and setWord().
|
inline |
setters
Definition at line 46 of file ETLSample.h.
References kThreshMask, kThreshShift, and setWord().
|
inline |
Definition at line 50 of file ETLSample.h.
References kToAMask, kToAShift, setWord(), and toa().
|
inline |
Definition at line 51 of file ETLSample.h.
References kToTMask, kToTShift, setWordToT(), and tot().
|
inlineprivate |
wrapper to reset words at a given position
Definition at line 82 of file ETLSample.h.
References ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::mask, and value_.
Referenced by setColumn(), setData(), setMode(), setRow(), setThreshold(), and setToA().
|
inlineprivate |
Definition at line 89 of file ETLSample.h.
References ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::mask, and valueToT_.
Referenced by setToT().
|
inline |
Definition at line 69 of file ETLSample.h.
References kThreshMask, kThreshShift, and value_.
Referenced by print().
|
inline |
Definition at line 73 of file ETLSample.h.
References kToAMask, kToAShift, and value_.
Referenced by print(), set(), and setToA().
|
inline |
Definition at line 74 of file ETLSample.h.
References kToTMask, kToTShift, and valueToT_.
Referenced by print(), set(), and setToT().
|
private |
Definition at line 97 of file ETLSample.h.
Referenced by column(), data(), mode(), operator()(), raw(), row(), set(), setWord(), threshold(), and toa().
|
private |
Definition at line 98 of file ETLSample.h.
Referenced by set(), setWordToT(), and tot().