wrapper for a 32b data word identifying a readout channel in the raw data The format is the following: Reserved: b'[28,31] FED ID: b'[18,27] Capture Block ID: b'[14,17] ECON-D idx: b'[10,13] ECON-D eRx: b'[6,9] 1/2 ROC channel number: b'[0-5] More...
#include <HGCalElectronicsId.h>
Public Types | |
enum | HGCalElectronicsIdMask { kFEDIDMask = 0x3ff, kCaptureBlockMask = 0xf, kECONDIdxMask = 0xf, kECONDeRxMask = 0xf, kHalfROCChannelMask = 0x3f } |
enum | HGCalElectronicsIdShift { kFEDIDShift = 18, kCaptureBlockShift = 14, kECONDIdxShift = 10, kECONDeRxShift = 6, kHalfROCChannelShift = 0 } |
Public Member Functions | |
uint8_t | captureBlock () const |
uint8_t | econdeRx () const |
uint8_t | econdIdx () const |
uint16_t | fedId () const |
uint8_t | halfrocChannel () const |
HGCalElectronicsId () | |
CTOR. More... | |
HGCalElectronicsId (uint16_t fedid, uint8_t captureblock, uint8_t econdidx, uint8_t econderx, uint8_t halfrocch) | |
HGCalElectronicsId (uint32_t value) | |
HGCalElectronicsId (const HGCalElectronicsId &o) | |
uint32_t | operator() () const |
getters More... | |
bool | operator< (const HGCalElectronicsId &oth) const |
void | print (std::ostream &out=std::cout) const |
uint32_t | raw () const |
Private Attributes | |
uint32_t | value_ |
wrapper for a 32b data word identifying a readout channel in the raw data The format is the following: Reserved: b'[28,31] FED ID: b'[18,27] Capture Block ID: b'[14,17] ECON-D idx: b'[10,13] ECON-D eRx: b'[6,9] 1/2 ROC channel number: b'[0-5]
Definition at line 20 of file HGCalElectronicsId.h.
Enumerator | |
---|---|
kFEDIDMask | |
kCaptureBlockMask | |
kECONDIdxMask | |
kECONDeRxMask | |
kHalfROCChannelMask |
Definition at line 22 of file HGCalElectronicsId.h.
Enumerator | |
---|---|
kFEDIDShift | |
kCaptureBlockShift | |
kECONDIdxShift | |
kECONDeRxShift | |
kHalfROCChannelShift |
Definition at line 29 of file HGCalElectronicsId.h.
|
inline |
|
explicit |
Definition at line 4 of file HGCalElectronicsId.cc.
References PixelSLinkDataInputSource_cfi::fedid, kCaptureBlockMask, kCaptureBlockShift, kECONDeRxMask, kECONDeRxShift, kECONDIdxMask, kECONDIdxShift, kFEDIDMask, kFEDIDShift, kHalfROCChannelMask, kHalfROCChannelShift, and value_.
|
inlineexplicit |
Definition at line 43 of file HGCalElectronicsId.h.
|
inline |
Definition at line 44 of file HGCalElectronicsId.h.
uint8_t HGCalElectronicsId::captureBlock | ( | ) | const |
Definition at line 15 of file HGCalElectronicsId.cc.
References kCaptureBlockMask, kCaptureBlockShift, and value_.
Referenced by print().
uint8_t HGCalElectronicsId::econdeRx | ( | ) | const |
Definition at line 21 of file HGCalElectronicsId.cc.
References kECONDeRxMask, kECONDeRxShift, and value_.
Referenced by print().
uint8_t HGCalElectronicsId::econdIdx | ( | ) | const |
Definition at line 18 of file HGCalElectronicsId.cc.
References kECONDIdxMask, kECONDIdxShift, and value_.
Referenced by print().
uint16_t HGCalElectronicsId::fedId | ( | ) | const |
Definition at line 12 of file HGCalElectronicsId.cc.
References kFEDIDMask, kFEDIDShift, and value_.
Referenced by print().
uint8_t HGCalElectronicsId::halfrocChannel | ( | ) | const |
Definition at line 24 of file HGCalElectronicsId.cc.
References kHalfROCChannelMask, kHalfROCChannelShift, and value_.
Referenced by print().
|
inline |
|
inline |
|
inline |
Definition at line 58 of file HGCalElectronicsId.h.
References captureBlock(), TauDecayModes::dec, econdeRx(), econdIdx(), fedId(), halfrocChannel(), MillePedeFileConverter_cfg::out, and raw().
|
inline |
|
private |
Definition at line 67 of file HGCalElectronicsId.h.
Referenced by captureBlock(), econdeRx(), econdIdx(), fedId(), halfrocChannel(), HGCalElectronicsId(), operator()(), operator<(), and raw().