CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
PixelChannelIdentifier::Packing Class Reference

#include <PixelChannelIdentifier.h>

Public Member Functions

 Packing (unsigned int row_w, unsigned int column_w, unsigned int time_w, unsigned int adc_w)
 

Public Attributes

PackedDigiType adc_mask
 
int adc_shift
 
int adc_width
 
PackedDigiType column_mask
 
int column_shift
 
int column_width
 
int max_adc
 
int max_column
 
int max_row
 
PackedDigiType row_mask
 
int row_shift
 
int row_width
 
PackedDigiType rowcol_mask
 
PackedDigiType time_mask
 
int time_shift
 

Detailed Description

Pack the pixel information to use less memory

Definition at line 24 of file PixelChannelIdentifier.h.

Constructor & Destructor Documentation

PixelChannelIdentifier::Packing::Packing ( unsigned int  row_w,
unsigned int  column_w,
unsigned int  time_w,
unsigned int  adc_w 
)
inline

Definition at line 29 of file PixelChannelIdentifier.h.

Referenced by PixelChannelIdentifier::packing().

30  : row_width(row_w),
31  column_width(column_w),
32  adc_width(adc_w),
33  row_shift(0),
34  column_shift(row_shift + row_w),
35  time_shift(column_shift + column_w),
36  adc_shift(time_shift + time_w),
37  row_mask(~(~0U << row_w)),
38  column_mask(~(~0U << column_w)),
39  time_mask(~(~0U << time_w)),
40  adc_mask(~(~0U << adc_w)),
41  rowcol_mask(~(~0U << (column_w + row_w))),
44  max_adc(adc_mask) {}

Member Data Documentation

PackedDigiType PixelChannelIdentifier::Packing::adc_mask

Definition at line 58 of file PixelChannelIdentifier.h.

Referenced by PixelDigi::adc().

int PixelChannelIdentifier::Packing::adc_shift

Definition at line 53 of file PixelChannelIdentifier.h.

Referenced by PixelDigi::init().

int PixelChannelIdentifier::Packing::adc_width

Definition at line 48 of file PixelChannelIdentifier.h.

PackedDigiType PixelChannelIdentifier::Packing::column_mask
int PixelChannelIdentifier::Packing::column_shift

Definition at line 51 of file PixelChannelIdentifier.h.

int PixelChannelIdentifier::Packing::column_width
int PixelChannelIdentifier::Packing::max_adc

Definition at line 63 of file PixelChannelIdentifier.h.

Referenced by PixelDigi::init().

int PixelChannelIdentifier::Packing::max_column

Definition at line 62 of file PixelChannelIdentifier.h.

int PixelChannelIdentifier::Packing::max_row

Definition at line 61 of file PixelChannelIdentifier.h.

PackedDigiType PixelChannelIdentifier::Packing::row_mask
int PixelChannelIdentifier::Packing::row_shift

Definition at line 50 of file PixelChannelIdentifier.h.

Referenced by PixelDigi::init().

int PixelChannelIdentifier::Packing::row_width

Definition at line 46 of file PixelChannelIdentifier.h.

PackedDigiType PixelChannelIdentifier::Packing::rowcol_mask

Definition at line 59 of file PixelChannelIdentifier.h.

Referenced by operator<().

PackedDigiType PixelChannelIdentifier::Packing::time_mask

Definition at line 57 of file PixelChannelIdentifier.h.

int PixelChannelIdentifier::Packing::time_shift

Definition at line 52 of file PixelChannelIdentifier.h.