CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Public Attributes
pixelchannelidentifierimpl::Packing Class Reference

#include <PixelChannelIdentifier.h>

Public Types

using PackedDigiType = uint32_t
 

Public Member Functions

constexpr Packing (unsigned int row_w, unsigned int column_w, unsigned int flag_w, unsigned int adc_w)
 

Public Attributes

const PackedDigiType adc_mask
 
const uint32_t adc_shift
 
const uint32_t adc_width
 
const PackedDigiType column_mask
 
const uint32_t column_shift
 
const uint32_t column_width
 
const PackedDigiType flag_mask
 
const uint32_t flag_shift
 
const int max_adc
 
const int max_column
 
const int max_row
 
const PackedDigiType row_mask
 
const uint32_t row_shift
 
const uint32_t row_width
 
const PackedDigiType rowcol_mask
 

Detailed Description

Pack the pixel information to use less memory

Definition at line 12 of file PixelChannelIdentifier.h.

Member Typedef Documentation

Definition at line 14 of file PixelChannelIdentifier.h.

Constructor & Destructor Documentation

constexpr pixelchannelidentifierimpl::Packing::Packing ( unsigned int  row_w,
unsigned int  column_w,
unsigned int  flag_w,
unsigned int  adc_w 
)
inline

Definition at line 17 of file PixelChannelIdentifier.h.

18  : row_width(row_w),
19  column_width(column_w),
20  adc_width(adc_w),
21  row_shift(0),
22  column_shift(row_shift + row_w),
23  flag_shift(column_shift + column_w),
24  adc_shift(flag_shift + flag_w),
25  row_mask(~(~0U << row_w)),
26  column_mask(~(~0U << column_w)),
27  flag_mask(~(~0U << flag_w)),
28  adc_mask(~(~0U << adc_w)),
29  rowcol_mask(~(~0U << (column_w + row_w))),
32  max_adc(adc_mask) {}

Member Data Documentation

const PackedDigiType pixelchannelidentifierimpl::Packing::adc_mask

Definition at line 46 of file PixelChannelIdentifier.h.

Referenced by PixelDigi::adc().

const uint32_t pixelchannelidentifierimpl::Packing::adc_shift

Definition at line 41 of file PixelChannelIdentifier.h.

Referenced by PixelDigi::init().

const uint32_t pixelchannelidentifierimpl::Packing::adc_width

Definition at line 36 of file PixelChannelIdentifier.h.

const PackedDigiType pixelchannelidentifierimpl::Packing::column_mask
const uint32_t pixelchannelidentifierimpl::Packing::column_shift

Definition at line 39 of file PixelChannelIdentifier.h.

const uint32_t pixelchannelidentifierimpl::Packing::column_width
const PackedDigiType pixelchannelidentifierimpl::Packing::flag_mask

Definition at line 45 of file PixelChannelIdentifier.h.

Referenced by PixelDigi::flag().

const uint32_t pixelchannelidentifierimpl::Packing::flag_shift

Definition at line 40 of file PixelChannelIdentifier.h.

const int pixelchannelidentifierimpl::Packing::max_adc

Definition at line 51 of file PixelChannelIdentifier.h.

Referenced by PixelDigi::init().

const int pixelchannelidentifierimpl::Packing::max_column

Definition at line 50 of file PixelChannelIdentifier.h.

const int pixelchannelidentifierimpl::Packing::max_row

Definition at line 49 of file PixelChannelIdentifier.h.

const PackedDigiType pixelchannelidentifierimpl::Packing::row_mask
const uint32_t pixelchannelidentifierimpl::Packing::row_shift

Definition at line 38 of file PixelChannelIdentifier.h.

Referenced by PixelDigi::init().

const uint32_t pixelchannelidentifierimpl::Packing::row_width

Definition at line 34 of file PixelChannelIdentifier.h.

const PackedDigiType pixelchannelidentifierimpl::Packing::rowcol_mask

Definition at line 47 of file PixelChannelIdentifier.h.

Referenced by operator<().