2#include "QPDigitizerSquare.hpp"
21 if(i < 0||
fNpix[0] < i)
return nullptr;
22 if(j < 0||
fNpix[1] < j)
return nullptr;
24 double xoff = -
fSize[0]/2;
25 double yoff = -
fSize[1]/2;
Abstract pixel-matrix digitizer: owns the injected signals and the matrix geometry; concrete classes ...
int fNpix[2]
number of pixels {x, y}
double fSize[2]
matrix extent {x, y}, µm
QPDigitizerSquare(double sizex=1, double sizey=1, int npixx=1, int npixy=1)
virtual QPPixel * GetPixel(const int index)
Pixel by linear index, decomposed as (index / npixx, index % npixx) and forwarded to GetPixel(int,...
Rectangular pixel cell (µm) with grid indices (i, j).