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 62 of file SiPixelRawToClusterGPUKernel.h.

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

62  {
63  constexpr pixelchannelidentifierimpl::Packing thePacking = packing();
64  adc = std::min(adc, uint32_t(thePacking.max_adc));
65 
66  return (row << thePacking.row_shift) | (col << thePacking.column_shift) | (adc << thePacking.adc_shift);
67  }
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 60 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 69 of file SiPixelRawToClusterGPUKernel.h.

References cuy::col, and packing().

Referenced by Pixel3DDigitizerAlgorithm::induce_signal().

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

Variable Documentation

◆ MAX_FED

constexpr unsigned int pixelgpudetails::MAX_FED = 150

◆ 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

◆ maxROCIndex

const uint32_t pixelgpudetails::maxROCIndex = 8

Definition at line 43 of file SiPixelRawToClusterGPUKernel.h.

◆ numColsInRoc

const uint32_t pixelgpudetails::numColsInRoc = 52

Definition at line 45 of file SiPixelRawToClusterGPUKernel.h.

◆ numRowsInRoc

const uint32_t pixelgpudetails::numRowsInRoc = 80

Definition at line 44 of file SiPixelRawToClusterGPUKernel.h.