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 () |
uint8_t | econdeRx () |
uint8_t | econdIdx () |
uint16_t | fedId () |
uint8_t | halfrocChannel () |
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() () |
getters More... | |
void | print (std::ostream &out=std::cout) |
uint32_t | raw () |
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 |
HGCalElectronicsId::HGCalElectronicsId | ( | uint16_t | fedid, |
uint8_t | captureblock, | ||
uint8_t | econdidx, | ||
uint8_t | econderx, | ||
uint8_t | halfrocch | ||
) |
Definition at line 4 of file HGCalElectronicsId.cc.
References PixelSLinkDataInputSource_cfi::fedid, kCaptureBlockMask, kCaptureBlockShift, kECONDeRxMask, kECONDeRxShift, kECONDIdxMask, kECONDIdxShift, kFEDIDMask, kFEDIDShift, kHalfROCChannelMask, kHalfROCChannelShift, and value_.
|
inline |
Definition at line 42 of file HGCalElectronicsId.h.
|
inline |
Definition at line 43 of file HGCalElectronicsId.h.
uint8_t HGCalElectronicsId::captureBlock | ( | ) |
Definition at line 15 of file HGCalElectronicsId.cc.
References kCaptureBlockMask, kCaptureBlockShift, and value_.
Referenced by print().
uint8_t HGCalElectronicsId::econdeRx | ( | ) |
Definition at line 21 of file HGCalElectronicsId.cc.
References kECONDeRxMask, kECONDeRxShift, and value_.
Referenced by print().
uint8_t HGCalElectronicsId::econdIdx | ( | ) |
Definition at line 18 of file HGCalElectronicsId.cc.
References kECONDIdxMask, kECONDIdxShift, and value_.
Referenced by print().
uint16_t HGCalElectronicsId::fedId | ( | ) |
Definition at line 12 of file HGCalElectronicsId.cc.
References kFEDIDMask, kFEDIDShift, and value_.
Referenced by print().
uint8_t HGCalElectronicsId::halfrocChannel | ( | ) |
Definition at line 24 of file HGCalElectronicsId.cc.
References kHalfROCChannelMask, kHalfROCChannelShift, and value_.
Referenced by print().
|
inline |
|
inline |
Definition at line 56 of file HGCalElectronicsId.h.
References captureBlock(), TauDecayModes::dec, econdeRx(), econdIdx(), fedId(), halfrocChannel(), MillePedeFileConverter_cfg::out, and raw().
|
inline |
|
private |
Definition at line 65 of file HGCalElectronicsId.h.
Referenced by captureBlock(), econdeRx(), econdIdx(), fedId(), halfrocChannel(), HGCalElectronicsId(), operator()(), and raw().