wrapper for a data word More...
#include <HGCSample.h>
Public Types | |
enum | HGCSampleMasks { kThreshMask = 0x1, kModeMask = 0x1, kToAMask = 0x3ff, kDataMask = 0xfff } |
enum | HGCSampleShifts { kThreshShift = 31, kModeShift = 30, kToAShift = 13, kDataShift = 0 } |
Public Member Functions | |
uint32_t | data () 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 toa, uint16_t data) |
void | setData (uint16_t data) |
void | setMode (bool mode) |
void | setThreshold (bool thr) |
setters More... | |
void | setToA (uint16_t toa) |
void | setToAValid (bool toaFired) |
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 | |
bool | toaFired_ |
uint32_t | value_ |
wrapper for a data word
Definition at line 13 of file HGCSample.h.
Enumerator | |
---|---|
kThreshMask | |
kModeMask | |
kToAMask | |
kDataMask |
Definition at line 17 of file HGCSample.h.
Enumerator | |
---|---|
kThreshShift | |
kModeShift | |
kToAShift | |
kDataShift |
Definition at line 18 of file HGCSample.h.
|
inline |
|
inline |
Definition at line 24 of file HGCSample.h.
|
inline |
Definition at line 25 of file HGCSample.h.
|
inline |
Definition at line 62 of file HGCSample.h.
References kDataMask, kDataShift, and value_.
Referenced by HGCalTBAnalyzer::analyze(), HGCalDigiValidation::analyze(), print(), and set().
|
inline |
|
inline |
Definition at line 59 of file HGCSample.h.
References kModeMask, kModeShift, and value_.
Referenced by HGCalDigiValidation::analyze(), and print().
|
inline |
|
inline |
Definition at line 45 of file HGCSample.h.
References data(), TauDecayModes::dec, mode(), MillePedeFileConverter_cfg::out, raw(), threshold(), and toa().
|
inline |
|
inline |
Definition at line 35 of file HGCSample.h.
References data(), kDataMask, kDataShift, kModeMask, kModeShift, kThreshMask, kThreshShift, kToAMask, kToAShift, toa(), and value_.
Referenced by HGCFEElectronics< DFr >::runShaperWithToT(), HGCFEElectronics< DFr >::runSimpleShaper(), and HGCFEElectronics< DFr >::runTrivialShaper().
|
inline |
Definition at line 34 of file HGCSample.h.
References kDataMask, kDataShift, and setWord().
|
inline |
Definition at line 31 of file HGCSample.h.
References kModeMask, kModeShift, and setWord().
|
inline |
setters
Definition at line 30 of file HGCSample.h.
References kThreshMask, kThreshShift, and setWord().
|
inline |
Definition at line 32 of file HGCSample.h.
References kToAMask, kToAShift, and setWord().
|
inline |
Definition at line 33 of file HGCSample.h.
References toaFired_.
Referenced by HGCFEElectronics< DFr >::runShaperWithToT().
|
inlineprivate |
wrapper to reset words at a given position
Definition at line 70 of file HGCSample.h.
References RecoTauDiscriminantConfiguration::mask, and value_.
Referenced by setData(), setMode(), setThreshold(), and setToA().
|
inline |
Definition at line 58 of file HGCSample.h.
References kThreshMask, kThreshShift, and value_.
Referenced by HGCalDigiValidation::analyze(), and print().
|
inline |
Definition at line 61 of file HGCSample.h.
References kToAMask, kToAShift, and value_.
Referenced by HGCalDigiValidation::analyze(), print(), and set().
|
private |
Definition at line 82 of file HGCSample.h.
Referenced by getToAValid(), and setToAValid().
|
private |
Definition at line 81 of file HGCSample.h.
Referenced by data(), mode(), operator()(), raw(), set(), setWord(), threshold(), and toa().