CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelDigi.cc
Go to the documentation of this file.
1 // Modify the pixel packing to make 100micron pixels possible. d.k. 2/02
2 //
4 
5 #include <algorithm>
6 
7 void PixelDigi::init( int row, int col, int adc) {
8  // This check is for the maximal row or col number that can be packed
9  // in a PixelDigi. The actual number of rows or columns in a detector
10  // may be smaller!
11  if ( row < 0 || row > PixelChannelIdentifier::thePacking.max_row ||
12  col < 0 || col > PixelChannelIdentifier::thePacking.max_column) {
13  std::cout << "PixelDigi constructor: row or column out packing range" << std::endl;
14  }
15 
16  // Set adc to max_adc in case of overflow
18 
20  (col << PixelChannelIdentifier::thePacking.column_shift) |
22 }
23 
int adc(sample_type sample)
get the ADC sample (12 bits)
static const Packing thePacking
const T & max(const T &a, const T &b)
uint16_t row() const
void init(int row, int col, int adc)
Definition: PixelDigi.cc:7
tuple cout
Definition: gather_cfg.py:121
int col
Definition: cuy.py:1008
PackedDigiType theData
Definition: PixelDigi.h:54