1 #ifndef RecoLocalTracker_SiPixelClusterizer_SiPixelArrayBuffer_H 2 #define RecoLocalTracker_SiPixelClusterizer_SiPixelArrayBuffer_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);
42 inline void add_adc(
int row,
int col,
int adc);
46 int index(
int row,
int col)
const {
return col*
nrows+row;}
70 return ( row >= 0 && row < nrows && col >= 0 && col <
ncols);
int adc(sample_type sample)
get the ADC sample (12 bits)
int operator()(int row, int col) const
void set_adc(int row, int col, int adc)
std::vector< int > pixel_vec
void add_adc(int row, int col, int adc)
int index(int row, int col) const
Definition of indexing within the buffer.
int index(const SiPixelCluster::PixelPos &pix) const
constexpr int col() const
bool inside(int row, int col) const
void setSize(int rows, int cols)
constexpr int row() const
Class to store ADC counts during clustering.