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 |
BTLSample & | operator= (const BTLSample &)=default |
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 61 of file BTLSample.h.
References kDataMask, kDataShift, and value_.
Referenced by print(), set(), and setData().
|
inline |
Definition at line 58 of file BTLSample.h.
References flag_, kModeMask, and kModeShift.
Referenced by print(), set(), and setMode().
|
inline |
Definition at line 46 of file BTLSample.h.
References column(), data(), TauDecayModes::dec, mode(), MillePedeFileConverter_cfg::out, raw_data(), raw_flag(), row(), threshold(), toa(), and toa2().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 38 of file BTLSample.h.
References cuy::col, col_, data(), flag_, kDataMask, kDataShift, kModeMask, kModeShift, kThreshMask, kThreshShift, kToA2Mask, kToA2Shift, kToAMask, kToAShift, mode(), row(), row_, toa(), toa2(), and value_.
Referenced by BTLElectronicsSim::runTrivialShaper().
|
inline |
Definition at line 37 of file BTLSample.h.
References data(), kDataMask, kDataShift, and setDataWord().
|
inlineprivate |
wrapper to reset words at a given position
Definition at line 69 of file BTLSample.h.
References ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::mask, and value_.
Referenced by setData(), setToA(), and setToA2().
|
inlineprivate |
Definition at line 75 of file BTLSample.h.
References flag_, and ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::mask.
Referenced by setMode(), and setThreshold().
|
inline |
Definition at line 34 of file BTLSample.h.
References kModeMask, kModeShift, mode(), and setFlagWord().
|
inline |
setters
Definition at line 33 of file BTLSample.h.
References kThreshMask, kThreshShift, and setFlagWord().
|
inline |
Definition at line 35 of file BTLSample.h.
References kToAMask, kToAShift, setDataWord(), and toa().
|
inline |
Definition at line 36 of file BTLSample.h.
References kToA2Mask, kToA2Shift, setDataWord(), and toa2().
|
inline |
Definition at line 57 of file BTLSample.h.
References flag_, kThreshMask, and kThreshShift.
Referenced by print().
|
inline |
Definition at line 59 of file BTLSample.h.
References kToAMask, kToAShift, and value_.
Referenced by print(), set(), and setToA().
|
inline |
Definition at line 60 of file BTLSample.h.
References kToA2Mask, kToA2Shift, and value_.
Referenced by print(), set(), and setToA2().
|
private |
Definition at line 85 of file BTLSample.h.
|
private |
Definition at line 84 of file BTLSample.h.
Referenced by mode(), raw_flag(), set(), setFlagWord(), and threshold().
|
private |
Definition at line 85 of file BTLSample.h.
|
private |
Definition at line 83 of file BTLSample.h.
Referenced by data(), raw_data(), set(), setDataWord(), toa(), and toa2().