1 #ifndef RecoLocalTracker_Phase2ITPixelClusterizer_Phase2ITPixelArrayBuffer_H 2 #define RecoLocalTracker_Phase2ITPixelClusterizer_Phase2ITPixelArrayBuffer_H 33 inline void setSize(
int rows,
int cols);
39 inline bool inside(
int row,
int col)
const;
40 inline void set_adc(
int row,
int col,
int adc);
45 int index(
int row,
int col)
const {
return col*
nrows+row;}
69 return ( row >= 0 && row < nrows && col >= 0 && col <
ncols);
int adc(sample_type sample)
get the ADC sample (12 bits)
std::vector< int > pixel_vec
void setSize(int rows, int cols)
Class to store ADC counts during clustering.
int operator()(int row, int col) const
bool inside(int row, int col) const
int index(int row, int col) const
Definition of indexing within the buffer.
void set_adc(int row, int col, int adc)
int index(const Phase2ITPixelCluster::PixelPos &pix) const
Phase2ITPixelArrayBuffer()