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
()
const
{
return
(
value_
>>
kFEDIDShift
) &
kFEDIDMask
; }
13
14
//
15
uint8_t
HGCalElectronicsId::captureBlock
()
const
{
return
(
value_
>>
kCaptureBlockShift
) &
kCaptureBlockMask
; }
16
17
//
18
uint8_t
HGCalElectronicsId::econdIdx
()
const
{
return
(
value_
>>
kECONDIdxShift
) &
kECONDIdxMask
; }
19
20
//
21
uint8_t
HGCalElectronicsId::econdeRx
()
const
{
return
(
value_
>>
kECONDeRxShift
) &
kECONDeRxMask
; }
22
23
//
24
uint8_t
HGCalElectronicsId::halfrocChannel
()
const
{
return
(
value_
>>
kHalfROCChannelShift
) &
kHalfROCChannelMask
; }
HGCalElectronicsId.h
HGCalElectronicsId::kECONDeRxMask
Definition:
HGCalElectronicsId.h:26
HGCalElectronicsId::halfrocChannel
uint8_t halfrocChannel() const
Definition:
HGCalElectronicsId.cc:24
HGCalElectronicsId::kFEDIDShift
Definition:
HGCalElectronicsId.h:30
HGCalElectronicsId::kHalfROCChannelShift
Definition:
HGCalElectronicsId.h:34
HGCalElectronicsId::fedId
uint16_t fedId() const
Definition:
HGCalElectronicsId.cc:12
HGCalElectronicsId::econdIdx
uint8_t econdIdx() const
Definition:
HGCalElectronicsId.cc:18
HGCalElectronicsId::captureBlock
uint8_t captureBlock() const
Definition:
HGCalElectronicsId.cc:15
HGCalElectronicsId::kFEDIDMask
Definition:
HGCalElectronicsId.h:23
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::kECONDeRxShift
Definition:
HGCalElectronicsId.h:33
HGCalElectronicsId::kHalfROCChannelMask
Definition:
HGCalElectronicsId.h:27
HGCalElectronicsId::value_
uint32_t value_
Definition:
HGCalElectronicsId.h:67
HGCalElectronicsId::kCaptureBlockMask
Definition:
HGCalElectronicsId.h:24
HGCalElectronicsId::econdeRx
uint8_t econdeRx() const
Definition:
HGCalElectronicsId.cc:21
Generated for CMSSW Reference Manual by
1.8.14