|
qupid 0.2
Quasi-Signal Generation Model for Pixelized Detector
|
Uniform rectangular pixel grid centered on the origin: pixel (i, j) covers ![$ [i\,p_x - S_x/2,\ (i+1)\,p_x - S_x/2] \times
[j\,p_y - S_y/2,\ (j+1)\,p_y - S_y/2] $](form_1.png)


#include <QPDigitizerSquare.hpp>
Public Member Functions | |
| 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,int). | |
| virtual QPPixel * | GetPixel (const int i, const int j) |
| Allocates and returns the pixel cell (i, j); every call produces a new QPPixel owned by the caller. | |
Public Member Functions inherited from QPDigitizerBase | |
| virtual | ~QPDigitizerBase () |
| Does not delete the injected signals; see the class warning. | |
| virtual void | Delete () |
| Cleanup hook; currently a no-op. | |
| void | InjectSignal (QPSignalBase *signal) |
| Hands a signal to the digitizer, which takes ownership: the default ClearSignal() deletes it. | |
| QPSignalBase * | GetSignal (int i) const |
Borrowed pointer to injected signal i; the digitizer keeps ownership. | |
| int | GetNSignal () const |
| void | ClearSignal (bool removeall=true) |
| Empties the signal store. | |
| virtual double | GetAnalogSignal (const double &x, const double &y) |
| Summed signal density of all injected signals at (x, y), | |
| std::deque< QPPixelBase * > | GetFiredPixel (double threshold) |
Builds every pixel and keeps those whose digital signal exceeds threshold; the rest are deleted internally. | |
| int | GetNPixel () const |
| double | GetSizeX () const |
| double | GetSizeY () const |
| int | GetNPixelX () const |
| int | GetNPixelY () const |
Friends | |
| class | QPGraphFactory |
| Grants the visualization module access to the digitizer internals. | |
Additional Inherited Members | |
Protected Member Functions inherited from QPDigitizerBase | |
| QPDigitizerBase (int npix) | |
Protected Attributes inherited from QPDigitizerBase | |
| double | fSize [2] |
| matrix extent {x, y}, µm | |
| int | fNpix [2] |
| number of pixels {x, y} | |
Uniform rectangular pixel grid centered on the origin: pixel (i, j) covers ![$ [i\,p_x - S_x/2,\ (i+1)\,p_x - S_x/2] \times
[j\,p_y - S_y/2,\ (j+1)\,p_y - S_y/2] $](form_1.png)


Lengths in µm.
Definition at line 13 of file QPDigitizerSquare.hpp.
| QPDigitizerSquare::QPDigitizerSquare | ( | double | sizex = 1, |
| double | sizey = 1, |
||
| int | npixx = 1, |
||
| int | npixy = 1 |
||
| ) |
| sizex | matrix extent along x, µm |
| sizey | matrix extent along y, µm |
| npixx | number of pixels along x |
| npixy | number of pixels along y |
Definition at line 4 of file QPDigitizerSquare.cpp.
References QPDigitizerBase::fNpix, and QPDigitizerBase::fSize.
|
virtual |
Pixel by linear index, decomposed as (index / npixx, index % npixx) and forwarded to GetPixel(int,int).
| index | linear pixel index |
Reimplemented from QPDigitizerBase.
Definition at line 14 of file QPDigitizerSquare.cpp.
References QPDigitizerBase::fNpix, and GetPixel().
Referenced by GetPixel().
|
virtual |
Allocates and returns the pixel cell (i, j); every call produces a new QPPixel owned by the caller.
fNpix < i rather than <=, so i == npixx and j == npixy are accepted and yield a one-past-the-end pixel outside the matrix. | i | pixel index along x |
| j | pixel index along y |
Reimplemented from QPDigitizerBase.
Definition at line 20 of file QPDigitizerSquare.cpp.
References QPDigitizerBase::fNpix, and QPDigitizerBase::fSize.
|
friend |
Grants the visualization module access to the digitizer internals.
Definition at line 47 of file QPDigitizerSquare.hpp.