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 27 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 33 of file PixelChannelIdentifier.h.

Referenced by PixelChannelIdentifier::packing().

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

Member Data Documentation

PackedDigiType PixelChannelIdentifier::Packing::adc_mask

Definition at line 62 of file PixelChannelIdentifier.h.

Referenced by PixelDigi::adc().

int PixelChannelIdentifier::Packing::adc_shift

Definition at line 57 of file PixelChannelIdentifier.h.

Referenced by PixelDigi::init().

int PixelChannelIdentifier::Packing::adc_width

Definition at line 52 of file PixelChannelIdentifier.h.

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

Definition at line 55 of file PixelChannelIdentifier.h.

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

Definition at line 68 of file PixelChannelIdentifier.h.

Referenced by PixelDigi::init().

int PixelChannelIdentifier::Packing::max_column

Definition at line 67 of file PixelChannelIdentifier.h.

int PixelChannelIdentifier::Packing::max_row

Definition at line 66 of file PixelChannelIdentifier.h.

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

Definition at line 54 of file PixelChannelIdentifier.h.

Referenced by PixelDigi::init().

int PixelChannelIdentifier::Packing::row_width

Definition at line 50 of file PixelChannelIdentifier.h.

PackedDigiType PixelChannelIdentifier::Packing::rowcol_mask

Definition at line 63 of file PixelChannelIdentifier.h.

Referenced by operator<().

PackedDigiType PixelChannelIdentifier::Packing::time_mask

Definition at line 61 of file PixelChannelIdentifier.h.

int PixelChannelIdentifier::Packing::time_shift

Definition at line 56 of file PixelChannelIdentifier.h.