CMS 3D CMS Logo

Namespaces | Classes | Functions | Variables
pixelgpudetails Namespace Reference

Namespaces

 phase1geometry
 

Classes

struct  DetIdGPU
 
struct  Pixel
 
class  PixelRecHitGPUKernel
 
class  SiPixelRawToClusterGPUKernel
 

Functions

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

Variables

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 numColsInRoc = 52
 
const uint32_t numRowsInRoc = 80
 

Function Documentation

◆ pack()

constexpr uint32_t pixelgpudetails::pack ( uint32_t  row,
uint32_t  col,
uint32_t  adc,
uint32_t  flag = 0 
)
inline

Definition at line 65 of file SiPixelRawToClusterGPUKernel.h.

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

65  {
66  constexpr pixelchannelidentifierimpl::Packing thePacking = packing();
67  adc = std::min(adc, uint32_t(thePacking.max_adc));
68 
69  return (row << thePacking.row_shift) | (col << thePacking.column_shift) | (adc << thePacking.adc_shift);
70  }
constexpr pixelchannelidentifierimpl::Packing packing()
col
Definition: cuy.py:1009
uint16_t *__restrict__ uint16_t const *__restrict__ adc

◆ packing()

constexpr pixelchannelidentifierimpl::Packing pixelgpudetails::packing ( )
inline

Definition at line 63 of file SiPixelRawToClusterGPUKernel.h.

References PixelChannelIdentifier::thePacking.

Referenced by pack(), and pixelToChannel().

static constexpr Packing thePacking

◆ pixelToChannel()

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

Definition at line 72 of file SiPixelRawToClusterGPUKernel.h.

References cuy::col, and packing().

Referenced by Pixel3DDigitizerAlgorithm::induce_signal().

72  {
73  constexpr pixelchannelidentifierimpl::Packing thePacking = packing();
74  return (row << thePacking.column_width) | col;
75  }
constexpr pixelchannelidentifierimpl::Packing packing()
col
Definition: cuy.py:1009

Variable Documentation

◆ MAX_FED

constexpr unsigned int pixelgpudetails::MAX_FED = 150

Definition at line 7 of file SiPixelROCsStatusAndMapping.h.

◆ MAX_LINK

constexpr unsigned int pixelgpudetails::MAX_LINK = 48

◆ MAX_ROC

constexpr unsigned int pixelgpudetails::MAX_ROC = 8

◆ MAX_SIZE

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

◆ MAX_SIZE_BYTE_BOOL

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

◆ MAX_WORD

const uint32_t pixelgpudetails::MAX_WORD = 2000

Definition at line 50 of file SiPixelRawToClusterGPUKernel.h.

◆ maxROCIndex

const uint32_t pixelgpudetails::maxROCIndex = 8

Definition at line 46 of file SiPixelRawToClusterGPUKernel.h.

◆ numColsInRoc

const uint32_t pixelgpudetails::numColsInRoc = 52

◆ numRowsInRoc

const uint32_t pixelgpudetails::numRowsInRoc = 80