1#ifndef __QPDIGITIZERBASE__
2#define __QPDIGITIZERBASE__ 1
88 std::deque<QPSignalBase*> fSignals;
Abstract pixel-matrix digitizer: owns the injected signals and the matrix geometry; concrete classes ...
void InjectSignal(QPSignalBase *signal)
Hands a signal to the digitizer, which takes ownership: the default ClearSignal() deletes it.
virtual void Delete()
Cleanup hook; currently a no-op.
QPSignalBase * GetSignal(int i) const
Borrowed pointer to injected signal i; the digitizer keeps ownership.
virtual double GetAnalogSignal(const double &x, const double &y)
Summed signal density of all injected signals at (x, y), .
virtual ~QPDigitizerBase()
Does not delete the injected signals; see the class warning.
void ClearSignal(bool removeall=true)
Empties the signal store.
int fNpix[2]
number of pixels {x, y}
std::deque< QPPixelBase * > GetFiredPixel(double threshold)
Builds every pixel and keeps those whose digital signal exceeds threshold; the rest are deleted inter...
double fSize[2]
matrix extent {x, y}, µm
virtual QPPixelBase * GetPixel(const int index)
Pixel by linear index.
Abstract pixel bound to a digitizer: pulls the digitizer's injected signals and integrates them over ...
Abstract charge signal: a normalized 2D PDF scaled by an amplitude.