wrapper for a 32b data word identifying a readout channel in the raw data The format is the following: Reserved: b'[29,31] z side: b'[28] Local 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 { kZsideMask = 0x1, kLocalFEDIDMask = 0x3ff, kCaptureBlockMask = 0xf, kECONDIdxMask = 0xf, kECONDeRxMask = 0xf, kHalfROCChannelMask = 0x3f } |
enum | HGCalElectronicsIdShift { kZsideShift = 28, kLocalFEDIDShift = 18, kCaptureBlockShift = 14, kECONDIdxShift = 10, kECONDeRxShift = 6, kHalfROCChannelShift = 0 } |
Public Member Functions | |
uint8_t | captureBlock () const |
uint8_t | cmWord () const |
uint8_t | econdeRx () const |
uint8_t | econdIdx () const |
uint8_t | halfrocChannel () const |
HGCalElectronicsId () | |
CTOR. More... | |
HGCalElectronicsId (bool zside, uint16_t localfedid, uint8_t captureblock, uint8_t econdidx, uint8_t econderx, uint8_t halfrocch) | |
HGCalElectronicsId (uint32_t value) | |
bool | isCM () const |
uint16_t | localFEDId () const |
uint32_t | operator() () const |
getters More... | |
bool | operator< (const HGCalElectronicsId &oth) const |
bool | operator== (const HGCalElectronicsId &oth) const |
void | print (std::ostream &out=std::cout) const |
uint32_t | raw () const |
uint8_t | rocChannel () const |
bool | zSide () 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'[29,31] z side: b'[28] Local 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 21 of file HGCalElectronicsId.h.
Enumerator | |
---|---|
kZsideMask | |
kLocalFEDIDMask | |
kCaptureBlockMask | |
kECONDIdxMask | |
kECONDeRxMask | |
kHalfROCChannelMask |
Definition at line 23 of file HGCalElectronicsId.h.
Enumerator | |
---|---|
kZsideShift | |
kLocalFEDIDShift | |
kCaptureBlockShift | |
kECONDIdxShift | |
kECONDeRxShift | |
kHalfROCChannelShift |
Definition at line 31 of file HGCalElectronicsId.h.
|
inline |
|
explicit |
Definition at line 4 of file HGCalElectronicsId.cc.
References PixelSLinkDataInputSource_cfi::fedid, kCaptureBlockMask, kCaptureBlockShift, kECONDeRxMask, kECONDeRxShift, kECONDIdxMask, kECONDIdxShift, kHalfROCChannelMask, kHalfROCChannelShift, kLocalFEDIDMask, kLocalFEDIDShift, kZsideMask, kZsideShift, value_, and ecaldqm::zside().
|
inlineexplicit |
Definition at line 46 of file HGCalElectronicsId.h.
uint8_t HGCalElectronicsId::captureBlock | ( | ) | const |
Definition at line 24 of file HGCalElectronicsId.cc.
References kCaptureBlockMask, kCaptureBlockShift, and value_.
Referenced by print().
uint8_t HGCalElectronicsId::cmWord | ( | ) | const |
Definition at line 36 of file HGCalElectronicsId.cc.
References halfrocChannel().
Referenced by rocChannel().
uint8_t HGCalElectronicsId::econdeRx | ( | ) | const |
Definition at line 30 of file HGCalElectronicsId.cc.
References kECONDeRxMask, kECONDeRxShift, and value_.
Referenced by print(), and rocChannel().
uint8_t HGCalElectronicsId::econdIdx | ( | ) | const |
Definition at line 27 of file HGCalElectronicsId.cc.
References kECONDIdxMask, kECONDIdxShift, and value_.
Referenced by print().
uint8_t HGCalElectronicsId::halfrocChannel | ( | ) | const |
Definition at line 33 of file HGCalElectronicsId.cc.
References kHalfROCChannelMask, kHalfROCChannelShift, and value_.
Referenced by cmWord(), isCM(), print(), and rocChannel().
bool HGCalElectronicsId::isCM | ( | ) | const |
Definition at line 18 of file HGCalElectronicsId.cc.
References halfrocChannel().
Referenced by print(), and rocChannel().
uint16_t HGCalElectronicsId::localFEDId | ( | ) | const |
Definition at line 12 of file HGCalElectronicsId.cc.
References kLocalFEDIDMask, kLocalFEDIDShift, and value_.
Referenced by print().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 65 of file HGCalElectronicsId.h.
References captureBlock(), TauDecayModes::dec, econdeRx(), econdIdx(), halfrocChannel(), isCM(), localFEDId(), MillePedeFileConverter_cfg::out, raw(), and zSide().
|
inline |
Definition at line 55 of file HGCalElectronicsId.h.
References value_.
Referenced by HGCalMappingCellIndexer::elecIdFromIndex(), hgcal::mappingtools::getElectronicsId(), print(), ALPAKA_ACCELERATOR_NAMESPACE::hgcal::HGCalMappingModuleESProducer::produce(), and ALPAKA_ACCELERATOR_NAMESPACE::hgcal::HGCalMappingCellESProducer::produce().
uint8_t HGCalElectronicsId::rocChannel | ( | ) | const |
Definition at line 39 of file HGCalElectronicsId.cc.
References cmWord(), econdeRx(), halfrocChannel(), and isCM().
bool HGCalElectronicsId::zSide | ( | ) | const |
Definition at line 15 of file HGCalElectronicsId.cc.
References kZsideMask, kZsideShift, and value_.
Referenced by print().
|
private |
Definition at line 74 of file HGCalElectronicsId.h.
Referenced by captureBlock(), econdeRx(), econdIdx(), halfrocChannel(), HGCalElectronicsId(), localFEDId(), operator()(), operator<(), operator==(), raw(), and zSide().