CMS 3D CMS Logo

Namespaces | Classes | Functions | Variables
pixelgpudetails Namespace Reference

Namespaces

 phase1geometry
 

Classes

struct  DetIdGPU
 
class  Packing
 
struct  Pixel
 
class  PixelRecHitGPUKernel
 
class  SiPixelRawToClusterGPUKernel
 

Functions

__host__ __device__ uint32_t pack (uint32_t row, uint32_t col, uint32_t adc)
 
__host__ constexpr __device__ Packing packing ()
 
constexpr uint32_t pixelToChannel (int row, int col)
 

Variables

const uint32_t bladeMask = 0x3F
 
const uint32_t bladeStartBit = 12
 
const uint32_t diskMask = 0xF
 
const uint32_t diskStartBit = 18
 
const uint32_t ladderMask = 0xFF
 
const uint32_t ladderStartBit = 12
 
const uint32_t layerMask = 0xF
 
const uint32_t layerStartBit = 20
 
constexpr unsigned int MAX_FED = 150
 
constexpr unsigned int MAX_LINK = 48
 
constexpr unsigned int MAX_ROC = 8
 
constexpr unsigned int MAX_SIZE = MAX_FED * MAX_LINK * MAX_ROC
 
constexpr unsigned int MAX_SIZE_BYTE_BOOL = MAX_SIZE * sizeof(unsigned char)
 
const uint32_t MAX_WORD = 2000
 
const uint32_t maxROCIndex = 8
 
const uint32_t moduleMask = 0x3FF
 
const uint32_t moduleStartBit = 2
 
const uint32_t numColsInRoc = 52
 
const uint32_t numRowsInRoc = 80
 
const uint32_t panelMask = 0x3
 
const uint32_t panelStartBit = 10
 

Function Documentation

◆ pack()

__host__ __device__ uint32_t pixelgpudetails::pack ( uint32_t  row,
uint32_t  col,
uint32_t  adc 
)
inline

Definition at line 106 of file SiPixelRawToClusterGPUKernel.h.

106  {
107  constexpr Packing thePacking = packing();
108  adc = std::min(adc, thePacking.max_adc);
109 
110  return (row << thePacking.row_shift) | (col << thePacking.column_shift) | (adc << thePacking.adc_shift);
111  }

References gpuClustering::adc, cuy::col, min(), and packing().

◆ packing()

__host__ constexpr __device__ Packing pixelgpudetails::packing ( )
inlineconstexpr

Definition at line 104 of file SiPixelRawToClusterGPUKernel.h.

104 { return Packing(11, 11, 0, 10); }

Referenced by pack(), and pixelToChannel().

◆ pixelToChannel()

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

Definition at line 113 of file SiPixelRawToClusterGPUKernel.h.

113  {
114  constexpr Packing thePacking = packing();
115  return (row << thePacking.column_width) | col;
116  }

References cuy::col, and packing().

Referenced by Pixel3DDigitizerAlgorithm::induce_signal().

Variable Documentation

◆ MAX_FED

constexpr unsigned int pixelgpudetails::MAX_FED = 150
constexpr

Definition at line 7 of file SiPixelROCsStatusAndMapping.h.

◆ MAX_LINK

constexpr unsigned int pixelgpudetails::MAX_LINK = 48
constexpr

◆ MAX_ROC

constexpr unsigned int pixelgpudetails::MAX_ROC = 8
constexpr

◆ MAX_SIZE

constexpr unsigned int pixelgpudetails::MAX_SIZE = MAX_FED * MAX_LINK * MAX_ROC
constexpr

◆ MAX_SIZE_BYTE_BOOL

constexpr unsigned int pixelgpudetails::MAX_SIZE_BYTE_BOOL = MAX_SIZE * sizeof(unsigned char)
constexpr

◆ MAX_WORD

const uint32_t pixelgpudetails::MAX_WORD = 2000

Definition at line 46 of file SiPixelRawToClusterGPUKernel.h.

◆ maxROCIndex

const uint32_t pixelgpudetails::maxROCIndex = 8

Definition at line 42 of file SiPixelRawToClusterGPUKernel.h.

◆ numColsInRoc

const uint32_t pixelgpudetails::numColsInRoc = 52

Definition at line 44 of file SiPixelRawToClusterGPUKernel.h.

◆ numRowsInRoc

const uint32_t pixelgpudetails::numRowsInRoc = 80

Definition at line 43 of file SiPixelRawToClusterGPUKernel.h.

pixelgpudetails::packing
__host__ constexpr __device__ Packing packing()
Definition: SiPixelRawToClusterGPUKernel.h:104
min
T min(T a, T b)
Definition: MathUtil.h:58
gpuClustering::adc
uint16_t *__restrict__ uint16_t const *__restrict__ adc
Definition: gpuClusterChargeCut.h:20
cuy.col
col
Definition: cuy.py:1009