src
DataFormats
HGCalDigi
src
HGCalElectronicsId.cc
Go to the documentation of this file.
1
#include "
DataFormats/HGCalDigi/interface/HGCalElectronicsId.h
"
2
3
//
4
HGCalElectronicsId::HGCalElectronicsId
(
5
uint16_t
fedid
, uint8_t captureblock, uint8_t econdidx, uint8_t econderx, uint8_t halfrocch) {
6
value_
= ((
fedid
&
kFEDIDMask
) <<
kFEDIDShift
) | ((captureblock &
kCaptureBlockMask
) <<
kCaptureBlockShift
) |
7
((econdidx &
kECONDIdxMask
) <<
kECONDIdxShift
) | ((econderx &
kECONDeRxMask
) <<
kECONDeRxShift
) |
8
((halfrocch &
kHalfROCChannelMask
) <<
kHalfROCChannelShift
);
9
}
10
11
//
12
uint16_t
HGCalElectronicsId::fedId
() {
return
(
value_
>>
kFEDIDShift
) &
kFEDIDMask
; }
13
14
//
15
uint8_t
HGCalElectronicsId::captureBlock
() {
return
(
value_
>>
kCaptureBlockShift
) &
kCaptureBlockMask
; }
16
17
//
18
uint8_t
HGCalElectronicsId::econdIdx
() {
return
(
value_
>>
kECONDIdxShift
) &
kECONDIdxMask
; }
19
20
//
21
uint8_t
HGCalElectronicsId::econdeRx
() {
return
(
value_
>>
kECONDeRxShift
) &
kECONDeRxMask
; }
22
23
//
24
uint8_t
HGCalElectronicsId::halfrocChannel
() {
return
(
value_
>>
kHalfROCChannelShift
) &
kHalfROCChannelMask
; }
HGCalElectronicsId.h
HGCalElectronicsId::kECONDeRxMask
Definition:
HGCalElectronicsId.h:26
HGCalElectronicsId::econdeRx
uint8_t econdeRx()
Definition:
HGCalElectronicsId.cc:21
HGCalElectronicsId::kFEDIDShift
Definition:
HGCalElectronicsId.h:30
HGCalElectronicsId::kHalfROCChannelShift
Definition:
HGCalElectronicsId.h:34
HGCalElectronicsId::kFEDIDMask
Definition:
HGCalElectronicsId.h:23
HGCalElectronicsId::fedId
uint16_t fedId()
Definition:
HGCalElectronicsId.cc:12
HGCalElectronicsId::kECONDIdxShift
Definition:
HGCalElectronicsId.h:32
HGCalElectronicsId::HGCalElectronicsId
HGCalElectronicsId()
CTOR.
Definition:
HGCalElectronicsId.h:40
HGCalElectronicsId::kCaptureBlockShift
Definition:
HGCalElectronicsId.h:31
PixelSLinkDataInputSource_cfi.fedid
fedid
Definition:
PixelSLinkDataInputSource_cfi.py:6
HGCalElectronicsId::kECONDIdxMask
Definition:
HGCalElectronicsId.h:25
HGCalElectronicsId::econdIdx
uint8_t econdIdx()
Definition:
HGCalElectronicsId.cc:18
HGCalElectronicsId::kECONDeRxShift
Definition:
HGCalElectronicsId.h:33
HGCalElectronicsId::kHalfROCChannelMask
Definition:
HGCalElectronicsId.h:27
HGCalElectronicsId::value_
uint32_t value_
Definition:
HGCalElectronicsId.h:65
HGCalElectronicsId::kCaptureBlockMask
Definition:
HGCalElectronicsId.h:24
HGCalElectronicsId::halfrocChannel
uint8_t halfrocChannel()
Definition:
HGCalElectronicsId.cc:24
HGCalElectronicsId::captureBlock
uint8_t captureBlock()
Definition:
HGCalElectronicsId.cc:15
Generated for CMSSW Reference Manual by
1.8.14