CMS 3D CMS Logo

CTPPSPixelDigi.cc
Go to the documentation of this file.
2 
4 const uint32_t CTPPSPixelDigi::row_shift = 0;
5 const uint32_t CTPPSPixelDigi::column_shift = 11;
6 const uint32_t CTPPSPixelDigi::adc_shift = 22;
7 const uint32_t CTPPSPixelDigi::row_width = 11;
8 const uint32_t CTPPSPixelDigi::column_width = 11;
9 const uint32_t CTPPSPixelDigi::adc_width = 10;
10 const uint32_t CTPPSPixelDigi::row_mask = 0x7FF;
11 const uint32_t CTPPSPixelDigi::column_mask = 0x7FF;
12 const uint32_t CTPPSPixelDigi::adc_mask = 0x3FF;
13 const uint32_t CTPPSPixelDigi::rowcol_mask = 0x3FFFFF;
14 const uint32_t CTPPSPixelDigi::max_row = 0x7FF;
15 const uint32_t CTPPSPixelDigi::max_column = 0x7FF;
16 const uint32_t CTPPSPixelDigi::max_adc = 0x3FF;
17 
18 const uint32_t CTPPSPixelDigi::column_width_ch = 11;
19 const uint32_t CTPPSPixelDigi::column_mask_ch = 0x7FF;
20 const uint32_t CTPPSPixelDigi::row_mask_ch = 0x7FF;
21 
22 void CTPPSPixelDigi::init(int row, int col, int adc) {
24  adc = (uint32_t(adc) > max_adc) ? max_adc : std::max(adc, 0);
25 
26  theData = (row << row_shift) | (col << column_shift) | (adc << adc_shift);
27 }
CTPPSPixelDigi::row_mask
static const uint32_t row_mask
Definition: CTPPSPixelDigi.h:41
CTPPSPixelDigi::column_shift
static const uint32_t column_shift
Definition: CTPPSPixelDigi.h:40
gpuClustering::adc
uint16_t *__restrict__ uint16_t const *__restrict__ adc
Definition: gpuClusterChargeCut.h:20
cuy.col
col
Definition: cuy.py:1010
CTPPSPixelDigi::max_column
static const uint32_t max_column
Definition: CTPPSPixelDigi.h:43
CTPPSPixelDigi::row_shift
static const uint32_t row_shift
const values for digi packing with bit structure: adc_bits+col_bits+row_bits
Definition: CTPPSPixelDigi.h:40
CTPPSPixelDigi::max_adc
static const uint32_t max_adc
Definition: CTPPSPixelDigi.h:43
CTPPSPixelDigi::init
void init(int row, int col, int adc)
Definition: CTPPSPixelDigi.cc:22
CTPPSPixelDigi::column_mask
static const uint32_t column_mask
Definition: CTPPSPixelDigi.h:41
CTPPSPixelDigi::max_row
static const uint32_t max_row
Definition: CTPPSPixelDigi.h:43
CTPPSPixelDigi::rowcol_mask
static const uint32_t rowcol_mask
Definition: CTPPSPixelDigi.h:41
CTPPSPixelDigi::row
int row() const
Access to digi information.
Definition: CTPPSPixelDigi.h:24
CTPPSPixelDigi::row_width
static const uint32_t row_width
Definition: CTPPSPixelDigi.h:42
CTPPSPixelDigi::column_mask_ch
static const uint32_t column_mask_ch
Definition: CTPPSPixelDigi.h:47
CTPPSPixelDigi::adc
unsigned short adc() const
Definition: CTPPSPixelDigi.h:26
CTPPSPixelDigi::row_mask_ch
static const uint32_t row_mask_ch
Definition: CTPPSPixelDigi.h:48
CTPPSPixelDigi::adc_shift
static const uint32_t adc_shift
Definition: CTPPSPixelDigi.h:40
CTPPSPixelDigi::column_width
static const uint32_t column_width
Definition: CTPPSPixelDigi.h:42
CTPPSPixelDigi::adc_width
static const uint32_t adc_width
Definition: CTPPSPixelDigi.h:42
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
CTPPSPixelDigi::theData
uint32_t theData
Definition: CTPPSPixelDigi.h:52
CTPPSPixelDigi.h
CTPPSPixelDigi::column_width_ch
static const uint32_t column_width_ch
const values for channel definition with bit structure: row_bits+col_bits
Definition: CTPPSPixelDigi.h:46
CTPPSPixelDigi::adc_mask
static const uint32_t adc_mask
Definition: CTPPSPixelDigi.h:41