wrapper for a data word More...
#include <HGCSample.h>
Public Types | |
enum | HGCSampleMasks { kThreshMask = 0x1, kModeMask = 0x1, kToAValidMask = 0x1, kGainMask = 0xf, kToAMask = 0x3ff, kDataMask = 0xfff } |
enum | HGCSampleShifts { kThreshShift = 31, kModeShift = 30, kToAValidShift = 29, kToGainShift = 22, kToAShift = 12, kDataShift = 0 } |
Public Member Functions | |
uint16_t | data () const |
uint16_t | gain () const |
bool | getToAValid () const |
HGCSample () | |
CTOR. More... | |
HGCSample (uint32_t value) | |
HGCSample (const HGCSample &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 gain, uint16_t toa, uint16_t data) |
void | setData (uint16_t data) |
void | setGain (uint16_t gain) |
void | setMode (bool mode) |
void | setThreshold (bool thr) |
setters More... | |
void | setToA (uint16_t toa) |
void | setToAValid (bool toaFired) |
bool | threshold () const |
uint16_t | toa () const |
Static Public Member Functions | |
static uint32_t | convertV9ToV10 (uint32_t valueOldForm, bool toaFiredOldForm) |
Data Model Evolution. More... | |
Private Member Functions | |
uint32_t | getWord (HGCSampleMasks mask, HGCSampleShifts shift) const |
void | setWord (uint16_t word, HGCSampleMasks mask, HGCSampleShifts shift) |
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 HGCSample.h.
Enumerator | |
---|---|
kThreshMask | |
kModeMask | |
kToAValidMask | |
kGainMask | |
kToAMask | |
kDataMask |
Definition at line 15 of file HGCSample.h.
Enumerator | |
---|---|
kThreshShift | |
kModeShift | |
kToAValidShift | |
kToGainShift | |
kToAShift | |
kDataShift |
Definition at line 23 of file HGCSample.h.
|
inline |
|
inline |
Definition at line 36 of file HGCSample.h.
|
inline |
Definition at line 37 of file HGCSample.h.
|
inlinestatic |
Data Model Evolution.
Definition at line 77 of file HGCSample.h.
References kToAMask, kToAShift, kToAValidMask, and kToAValidShift.
|
inline |
Definition at line 70 of file HGCSample.h.
References getWord(), kDataMask, and kDataShift.
Referenced by HGCalDigiValidation::analyze(), HGCalTBAnalyzer::analyze(), print(), set(), and setData().
|
inline |
Definition at line 68 of file HGCSample.h.
References getWord(), kGainMask, and kToGainShift.
Referenced by set(), and setGain().
|
inline |
Definition at line 71 of file HGCSample.h.
References getWord(), kToAValidMask, and kToAValidShift.
|
inlineprivate |
Definition at line 119 of file HGCSample.h.
References gpuClustering::pixelStatus::mask, edm::shift, and value_.
Referenced by data(), gain(), getToAValid(), mode(), threshold(), and toa().
|
inline |
Definition at line 67 of file HGCSample.h.
References getWord(), kModeMask, and kModeShift.
Referenced by HGCalDigiValidation::analyze(), print(), set(), and setMode().
|
inline |
|
inline |
Definition at line 57 of file HGCSample.h.
References data(), TauDecayModes::dec, mode(), MillePedeFileConverter_cfg::out, raw(), threshold(), and toa().
|
inline |
|
inline |
Definition at line 49 of file HGCSample.h.
References data(), gain(), mode(), setData(), setGain(), setMode(), setThreshold(), setToA(), and toa().
Referenced by HGCFEElectronics< DFr >::runShaperWithToT(), HGCFEElectronics< DFr >::runSimpleShaper(), and HGCFEElectronics< DFr >::runTrivialShaper().
|
inline |
Definition at line 46 of file HGCSample.h.
References data(), kDataMask, kDataShift, and setWord().
Referenced by set().
|
inline |
Definition at line 44 of file HGCSample.h.
References gain(), kGainMask, kToGainShift, and setWord().
Referenced by set().
|
inline |
Definition at line 43 of file HGCSample.h.
References kModeMask, kModeShift, mode(), and setWord().
Referenced by set().
|
inline |
setters
Definition at line 42 of file HGCSample.h.
References kThreshMask, kThreshShift, and setWord().
Referenced by set().
|
inline |
Definition at line 45 of file HGCSample.h.
References kToAMask, kToAShift, setWord(), and toa().
Referenced by set().
|
inline |
Definition at line 47 of file HGCSample.h.
References kToAValidMask, kToAValidShift, and setWord().
Referenced by HGCFEElectronics< DFr >::runShaperWithToT().
|
inlineprivate |
wrapper to reset words at a given position
Definition at line 108 of file HGCSample.h.
References gpuClustering::pixelStatus::mask, edm::shift, and value_.
Referenced by setData(), setGain(), setMode(), setThreshold(), setToA(), and setToAValid().
|
inline |
Definition at line 66 of file HGCSample.h.
References getWord(), kThreshMask, and kThreshShift.
Referenced by HGCalDigiValidation::analyze(), and print().
|
inline |
Definition at line 69 of file HGCSample.h.
References getWord(), kToAMask, and kToAShift.
Referenced by HGCalDigiValidation::analyze(), print(), set(), and setToA().
|
private |
Definition at line 123 of file HGCSample.h.
Referenced by getWord(), operator()(), raw(), and setWord().