wrapper for a data word More...
#include <FTLSample.h>
Public Types | |
enum | FTLSampleMasks { kThreshMask = 0x1, kModeMask = 0x1, kToAMask = 0xfff, kDataMask = 0xfff } |
enum | FTLSampleShifts { kThreshShift = 31, kModeShift = 30, kToAShift = 13, kDataShift = 0 } |
Public Member Functions | |
uint32_t | data () const |
FTLSample () | |
CTOR. More... | |
FTLSample (uint32_t value) | |
FTLSample (const FTLSample &o) | |
bool | mode () const |
uint32_t | operator() () |
void | print (std::ostream &out=std::cout) |
uint32_t | raw () const |
getters More... | |
void | set (bool thr, bool mode, uint16_t toa, uint16_t data) |
void | setData (uint16_t data) |
void | setMode (bool mode) |
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 FTLSample.h.
Enumerator | |
---|---|
kThreshMask | |
kModeMask | |
kToAMask | |
kDataMask |
Definition at line 15 of file FTLSample.h.
Enumerator | |
---|---|
kThreshShift | |
kModeShift | |
kToAShift | |
kDataShift |
Definition at line 16 of file FTLSample.h.
|
inline |
|
inline |
Definition at line 22 of file FTLSample.h.
|
inline |
Definition at line 23 of file FTLSample.h.
|
inline |
Definition at line 48 of file FTLSample.h.
References kDataMask, kDataShift, and value_.
Referenced by print(), set(), and setData().
|
inline |
Definition at line 46 of file FTLSample.h.
References kModeMask, kModeShift, and value_.
Referenced by print(), set(), and setMode().
|
inline |
|
inline |
Definition at line 36 of file FTLSample.h.
References data(), TauDecayModes::dec, mode(), MillePedeFileConverter_cfg::out, raw(), threshold(), and toa().
|
inline |
|
inline |
Definition at line 32 of file FTLSample.h.
References data(), kDataMask, kDataShift, kModeMask, kModeShift, kThreshMask, kThreshShift, kToAMask, kToAShift, mode(), toa(), and value_.
|
inline |
Definition at line 31 of file FTLSample.h.
References data(), kDataMask, kDataShift, and setWord().
|
inline |
Definition at line 29 of file FTLSample.h.
References kModeMask, kModeShift, mode(), and setWord().
|
inline |
setters
Definition at line 28 of file FTLSample.h.
References kThreshMask, kThreshShift, and setWord().
|
inline |
Definition at line 30 of file FTLSample.h.
References kToAMask, kToAShift, setWord(), and toa().
|
inlineprivate |
wrapper to reset words at a given position
Definition at line 55 of file FTLSample.h.
References ALPAKA_ACCELERATOR_NAMESPACE::pixelClustering::pixelStatus::mask, and value_.
Referenced by setData(), setMode(), setThreshold(), and setToA().
|
inline |
Definition at line 45 of file FTLSample.h.
References kThreshMask, kThreshShift, and value_.
Referenced by print().
|
inline |
Definition at line 47 of file FTLSample.h.
References kToAMask, kToAShift, and value_.
Referenced by print(), set(), and setToA().
|
private |
Definition at line 64 of file FTLSample.h.
Referenced by data(), mode(), operator()(), raw(), set(), setWord(), threshold(), and toa().