CMS 3D CMS Logo

Classes | Functions | Variables
pixelDetails Namespace Reference

Classes

struct  DetIdGPU
 
struct  Pixel
 

Functions

ALPAKA_FN_HOST_ACC ALPAKA_FN_INLINE constexpr uint32_t pack (uint32_t row, uint32_t col, uint32_t adc, uint32_t flag=0)
 
ALPAKA_FN_HOST_ACC ALPAKA_FN_INLINE constexpr pixelchannelidentifierimpl::Packing packing ()
 
constexpr uint32_t pixelToChannel (int row, int col)
 

Variables

constexpr uint32_t ADC_bits = 8
 
constexpr uint32_t ADC_mask = ~(~uint32_t(0) << ADC_bits)
 
constexpr uint32_t ADC_shift = 0
 
constexpr uint32_t bladeMask = 0x3F
 
constexpr uint32_t bladeStartBit = 12
 
constexpr uint32_t COL_bits_l1 = 6
 
constexpr uint32_t COL_mask = ~(~uint32_t(0) << COL_bits_l1)
 
constexpr uint32_t COL_shift = ROW_shift + ROW_bits_l1
 
constexpr uint32_t DCOL_bits = 5
 
constexpr uint32_t DCOL_mask = ~(~uint32_t(0) << DCOL_bits)
 
constexpr uint32_t DCOL_shift = PXID_shift + PXID_bits
 
constexpr uint32_t diskMask = 0xF
 
constexpr uint32_t diskStartBit = 18
 
constexpr uint32_t ERROR_mask = ~(~uint32_t(0) << ROC_bits_l1)
 
constexpr uint32_t ladderMask = 0xFF
 
constexpr uint32_t ladderStartBit = 12
 
constexpr uint32_t layerMask = 0xF
 
constexpr uint32_t layerStartBit = 20
 
constexpr uint32_t LINK_bits = 6
 
constexpr uint32_t LINK_bits_l1 = 6
 
constexpr uint32_t LINK_mask = ~(~uint32_t(0) << LINK_bits_l1)
 
constexpr uint32_t LINK_shift = ROC_shift + ROC_bits_l1
 
constexpr auto MAX_LINK = pixelgpudetails::MAX_LINK
 
constexpr auto MAX_ROC = pixelgpudetails::MAX_ROC
 
constexpr auto MAX_SIZE = pixelgpudetails::MAX_SIZE
 
constexpr uint32_t MAX_WORD = 2000
 
constexpr uint32_t maxROCIndex = 8
 
constexpr uint32_t moduleMask = 0x3FF
 
constexpr uint32_t moduleStartBit = 2
 
constexpr uint32_t numColsInRoc = 52
 
constexpr uint32_t numRowsInRoc = 80
 
constexpr uint32_t OMIT_ERR_bits = 1
 
constexpr uint32_t OMIT_ERR_mask = ~(~uint32_t(0) << OMIT_ERR_bits)
 
constexpr uint32_t OMIT_ERR_shift = 20
 
constexpr uint32_t panelMask = 0x3
 
constexpr uint32_t panelStartBit = 10
 
constexpr uint32_t PXID_bits = 8
 
constexpr uint32_t PXID_mask = ~(~uint32_t(0) << PXID_bits)
 
constexpr uint32_t PXID_shift = ADC_shift + ADC_bits
 
constexpr uint32_t ROC_bits = 5
 
constexpr uint32_t ROC_bits_l1 = 5
 
constexpr uint32_t ROC_mask = ~(~uint32_t(0) << ROC_bits_l1)
 
constexpr uint32_t ROC_shift = DCOL_shift + DCOL_bits
 
constexpr uint32_t ROW_bits_l1 = 7
 
constexpr uint32_t ROW_mask = ~(~uint32_t(0) << ROW_bits_l1)
 
constexpr uint32_t ROW_shift = ADC_shift + ADC_bits
 

Function Documentation

◆ pack()

ALPAKA_FN_HOST_ACC ALPAKA_FN_INLINE constexpr uint32_t pixelDetails::pack ( uint32_t  row,
uint32_t  col,
uint32_t  adc,
uint32_t  flag = 0 
)

Definition at line 103 of file SiPixelRawToClusterKernel.h.

References gpuClustering::adc, cuy::col, ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), SiStripPI::min, and packing().

106  {
108  adc = std::min(adc, uint32_t(thePacking.max_adc));
109 
110  return (row << thePacking.row_shift) | (col << thePacking.column_shift) | (adc << thePacking.adc_shift);
111  }
ALPAKA_FN_HOST_ACC ALPAKA_FN_INLINE constexpr pixelchannelidentifierimpl::Packing packing()
col
Definition: cuy.py:1009
uint16_t *__restrict__ uint16_t const *__restrict__ adc

◆ packing()

ALPAKA_FN_HOST_ACC ALPAKA_FN_INLINE constexpr pixelchannelidentifierimpl::Packing pixelDetails::packing ( )

Definition at line 99 of file SiPixelRawToClusterKernel.h.

References PixelChannelIdentifier::thePacking.

Referenced by pack(), and pixelToChannel().

99  {
101  }
static constexpr Packing thePacking

◆ pixelToChannel()

constexpr uint32_t pixelDetails::pixelToChannel ( int  row,
int  col 
)

Definition at line 113 of file SiPixelRawToClusterKernel.h.

References cuy::col, ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), and packing().

Referenced by Pixel3DDigitizerAlgorithm::induce_signal().

113  {
115  return (row << thePacking.column_width) | col;
116  }
ALPAKA_FN_HOST_ACC ALPAKA_FN_INLINE constexpr pixelchannelidentifierimpl::Packing packing()
col
Definition: cuy.py:1009

Variable Documentation

◆ ADC_bits

constexpr uint32_t pixelDetails::ADC_bits = 8

Definition at line 53 of file SiPixelRawToClusterKernel.h.

◆ ADC_mask

constexpr uint32_t pixelDetails::ADC_mask = ~(~uint32_t(0) << ADC_bits)

Definition at line 84 of file SiPixelRawToClusterKernel.h.

◆ ADC_shift

constexpr uint32_t pixelDetails::ADC_shift = 0

Definition at line 68 of file SiPixelRawToClusterKernel.h.

◆ bladeMask

constexpr uint32_t pixelDetails::bladeMask = 0x3F

Definition at line 47 of file SiPixelRawToClusterKernel.h.

◆ bladeStartBit

constexpr uint32_t pixelDetails::bladeStartBit = 12

Definition at line 40 of file SiPixelRawToClusterKernel.h.

◆ COL_bits_l1

constexpr uint32_t pixelDetails::COL_bits_l1 = 6

Definition at line 58 of file SiPixelRawToClusterKernel.h.

◆ COL_mask

constexpr uint32_t pixelDetails::COL_mask = ~(~uint32_t(0) << COL_bits_l1)

Definition at line 80 of file SiPixelRawToClusterKernel.h.

◆ COL_shift

constexpr uint32_t pixelDetails::COL_shift = ROW_shift + ROW_bits_l1

Definition at line 75 of file SiPixelRawToClusterKernel.h.

◆ DCOL_bits

constexpr uint32_t pixelDetails::DCOL_bits = 5

Definition at line 51 of file SiPixelRawToClusterKernel.h.

◆ DCOL_mask

constexpr uint32_t pixelDetails::DCOL_mask = ~(~uint32_t(0) << DCOL_bits)

Definition at line 82 of file SiPixelRawToClusterKernel.h.

◆ DCOL_shift

constexpr uint32_t pixelDetails::DCOL_shift = PXID_shift + PXID_bits

Definition at line 70 of file SiPixelRawToClusterKernel.h.

◆ diskMask

constexpr uint32_t pixelDetails::diskMask = 0xF

Definition at line 46 of file SiPixelRawToClusterKernel.h.

◆ diskStartBit

constexpr uint32_t pixelDetails::diskStartBit = 18

Definition at line 39 of file SiPixelRawToClusterKernel.h.

◆ ERROR_mask

constexpr uint32_t pixelDetails::ERROR_mask = ~(~uint32_t(0) << ROC_bits_l1)

◆ ladderMask

constexpr uint32_t pixelDetails::ladderMask = 0xFF

Definition at line 43 of file SiPixelRawToClusterKernel.h.

◆ ladderStartBit

constexpr uint32_t pixelDetails::ladderStartBit = 12

Definition at line 35 of file SiPixelRawToClusterKernel.h.

◆ layerMask

constexpr uint32_t pixelDetails::layerMask = 0xF

◆ layerStartBit

constexpr uint32_t pixelDetails::layerStartBit = 20

◆ LINK_bits

constexpr uint32_t pixelDetails::LINK_bits = 6

Definition at line 49 of file SiPixelRawToClusterKernel.h.

◆ LINK_bits_l1

constexpr uint32_t pixelDetails::LINK_bits_l1 = 6

Definition at line 56 of file SiPixelRawToClusterKernel.h.

◆ LINK_mask

constexpr uint32_t pixelDetails::LINK_mask = ~(~uint32_t(0) << LINK_bits_l1)

◆ LINK_shift

constexpr uint32_t pixelDetails::LINK_shift = ROC_shift + ROC_bits_l1

Definition at line 72 of file SiPixelRawToClusterKernel.h.

◆ MAX_LINK

constexpr auto pixelDetails::MAX_LINK = pixelgpudetails::MAX_LINK

◆ MAX_ROC

constexpr auto pixelDetails::MAX_ROC = pixelgpudetails::MAX_ROC

◆ MAX_SIZE

constexpr auto pixelDetails::MAX_SIZE = pixelgpudetails::MAX_SIZE

Definition at line 30 of file SiPixelRawToClusterKernel.h.

◆ MAX_WORD

constexpr uint32_t pixelDetails::MAX_WORD = 2000

Definition at line 66 of file SiPixelRawToClusterKernel.h.

◆ maxROCIndex

constexpr uint32_t pixelDetails::maxROCIndex = 8

◆ moduleMask

constexpr uint32_t pixelDetails::moduleMask = 0x3FF

◆ moduleStartBit

constexpr uint32_t pixelDetails::moduleStartBit = 2

◆ numColsInRoc

constexpr uint32_t pixelDetails::numColsInRoc = 52

◆ numRowsInRoc

constexpr uint32_t pixelDetails::numRowsInRoc = 80

◆ OMIT_ERR_bits

constexpr uint32_t pixelDetails::OMIT_ERR_bits = 1

Definition at line 60 of file SiPixelRawToClusterKernel.h.

◆ OMIT_ERR_mask

constexpr uint32_t pixelDetails::OMIT_ERR_mask = ~(~uint32_t(0) << OMIT_ERR_bits)

Definition at line 86 of file SiPixelRawToClusterKernel.h.

◆ OMIT_ERR_shift

constexpr uint32_t pixelDetails::OMIT_ERR_shift = 20

Definition at line 76 of file SiPixelRawToClusterKernel.h.

◆ panelMask

constexpr uint32_t pixelDetails::panelMask = 0x3

◆ panelStartBit

constexpr uint32_t pixelDetails::panelStartBit = 10

◆ PXID_bits

constexpr uint32_t pixelDetails::PXID_bits = 8

Definition at line 52 of file SiPixelRawToClusterKernel.h.

◆ PXID_mask

constexpr uint32_t pixelDetails::PXID_mask = ~(~uint32_t(0) << PXID_bits)

Definition at line 83 of file SiPixelRawToClusterKernel.h.

◆ PXID_shift

constexpr uint32_t pixelDetails::PXID_shift = ADC_shift + ADC_bits

Definition at line 69 of file SiPixelRawToClusterKernel.h.

◆ ROC_bits

constexpr uint32_t pixelDetails::ROC_bits = 5

Definition at line 50 of file SiPixelRawToClusterKernel.h.

◆ ROC_bits_l1

constexpr uint32_t pixelDetails::ROC_bits_l1 = 5

Definition at line 57 of file SiPixelRawToClusterKernel.h.

◆ ROC_mask

constexpr uint32_t pixelDetails::ROC_mask = ~(~uint32_t(0) << ROC_bits_l1)

◆ ROC_shift

constexpr uint32_t pixelDetails::ROC_shift = DCOL_shift + DCOL_bits

Definition at line 71 of file SiPixelRawToClusterKernel.h.

◆ ROW_bits_l1

constexpr uint32_t pixelDetails::ROW_bits_l1 = 7

Definition at line 59 of file SiPixelRawToClusterKernel.h.

◆ ROW_mask

constexpr uint32_t pixelDetails::ROW_mask = ~(~uint32_t(0) << ROW_bits_l1)

Definition at line 81 of file SiPixelRawToClusterKernel.h.

◆ ROW_shift

constexpr uint32_t pixelDetails::ROW_shift = ADC_shift + ADC_bits

Definition at line 74 of file SiPixelRawToClusterKernel.h.