CMS 3D CMS Logo

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

#include <PixelChannelIdentifier.h>

Public Types

using PackedDigiType = unsigned int
 

Public Member Functions

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

Public Attributes

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

Detailed Description

Pack the pixel information to use less memory

Definition at line 11 of file PixelChannelIdentifier.h.

Member Typedef Documentation

◆ PackedDigiType

Definition at line 13 of file PixelChannelIdentifier.h.

Constructor & Destructor Documentation

◆ Packing()

constexpr pixelchanelidentifierimpl::Packing::Packing ( unsigned int  row_w,
unsigned int  column_w,
unsigned int  time_w,
unsigned int  adc_w 
)
inlineconstexpr

Definition at line 16 of file PixelChannelIdentifier.h.

17  : row_width(row_w),
18  column_width(column_w),
19  adc_width(adc_w),
20  row_shift(0),
21  column_shift(row_shift + row_w),
22  time_shift(column_shift + column_w),
23  adc_shift(time_shift + time_w),
24  row_mask(~(~0U << row_w)),
25  column_mask(~(~0U << column_w)),
26  time_mask(~(~0U << time_w)),
27  adc_mask(~(~0U << adc_w)),
28  rowcol_mask(~(~0U << (column_w + row_w))),
31  max_adc(adc_mask) {}

Member Data Documentation

◆ adc_mask

const PackedDigiType pixelchanelidentifierimpl::Packing::adc_mask

Definition at line 45 of file PixelChannelIdentifier.h.

Referenced by PixelDigi::adc().

◆ adc_shift

const int pixelchanelidentifierimpl::Packing::adc_shift

Definition at line 40 of file PixelChannelIdentifier.h.

Referenced by PixelDigi::init().

◆ adc_width

const int pixelchanelidentifierimpl::Packing::adc_width

Definition at line 35 of file PixelChannelIdentifier.h.

◆ column_mask

const PackedDigiType pixelchanelidentifierimpl::Packing::column_mask

◆ column_shift

const int pixelchanelidentifierimpl::Packing::column_shift

Definition at line 38 of file PixelChannelIdentifier.h.

◆ column_width

const int pixelchanelidentifierimpl::Packing::column_width

◆ max_adc

const int pixelchanelidentifierimpl::Packing::max_adc

Definition at line 50 of file PixelChannelIdentifier.h.

Referenced by PixelDigi::init().

◆ max_column

const int pixelchanelidentifierimpl::Packing::max_column

Definition at line 49 of file PixelChannelIdentifier.h.

◆ max_row

const int pixelchanelidentifierimpl::Packing::max_row

Definition at line 48 of file PixelChannelIdentifier.h.

◆ row_mask

const PackedDigiType pixelchanelidentifierimpl::Packing::row_mask

◆ row_shift

const int pixelchanelidentifierimpl::Packing::row_shift

Definition at line 37 of file PixelChannelIdentifier.h.

Referenced by PixelDigi::init().

◆ row_width

const int pixelchanelidentifierimpl::Packing::row_width

Definition at line 33 of file PixelChannelIdentifier.h.

◆ rowcol_mask

const PackedDigiType pixelchanelidentifierimpl::Packing::rowcol_mask

Definition at line 46 of file PixelChannelIdentifier.h.

Referenced by operator<().

◆ time_mask

const PackedDigiType pixelchanelidentifierimpl::Packing::time_mask

Definition at line 44 of file PixelChannelIdentifier.h.

◆ time_shift

const int pixelchanelidentifierimpl::Packing::time_shift

Definition at line 39 of file PixelChannelIdentifier.h.

pixelchanelidentifierimpl::Packing::rowcol_mask
const PackedDigiType rowcol_mask
Definition: PixelChannelIdentifier.h:46
pixelchanelidentifierimpl::Packing::column_shift
const int column_shift
Definition: PixelChannelIdentifier.h:38
pixelchanelidentifierimpl::Packing::row_mask
const PackedDigiType row_mask
Definition: PixelChannelIdentifier.h:42
pixelchanelidentifierimpl::Packing::max_adc
const int max_adc
Definition: PixelChannelIdentifier.h:50
pixelchanelidentifierimpl::Packing::max_row
const int max_row
Definition: PixelChannelIdentifier.h:48
mitigatedMETSequence_cff.U
U
Definition: mitigatedMETSequence_cff.py:36
pixelchanelidentifierimpl::Packing::adc_width
const int adc_width
Definition: PixelChannelIdentifier.h:35
pixelchanelidentifierimpl::Packing::adc_shift
const int adc_shift
Definition: PixelChannelIdentifier.h:40
pixelchanelidentifierimpl::Packing::row_width
const int row_width
Definition: PixelChannelIdentifier.h:33
pixelchanelidentifierimpl::Packing::time_mask
const PackedDigiType time_mask
Definition: PixelChannelIdentifier.h:44
pixelchanelidentifierimpl::Packing::column_width
const int column_width
Definition: PixelChannelIdentifier.h:34
pixelchanelidentifierimpl::Packing::row_shift
const int row_shift
Definition: PixelChannelIdentifier.h:37
pixelchanelidentifierimpl::Packing::max_column
const int max_column
Definition: PixelChannelIdentifier.h:49
pixelchanelidentifierimpl::Packing::time_shift
const int time_shift
Definition: PixelChannelIdentifier.h:39
pixelchanelidentifierimpl::Packing::column_mask
const PackedDigiType column_mask
Definition: PixelChannelIdentifier.h:43
pixelchanelidentifierimpl::Packing::adc_mask
const PackedDigiType adc_mask
Definition: PixelChannelIdentifier.h:45