1#include "QPGeneral.hpp"
2#include "QPSignalBase.hpp"
16 std::cout<<
"QPSignalBase::GetPDF - Calling pure function, return 0"<<std::endl;
21 return GetPDF(x,y)*fAmplitude;
29 double sx = x0 + (x1-x0) / (2*ndiv);
30 double sy = y0 + (y1-y0) / (2*ndiv);
32 double dx = (x1-x0) / (ndiv);
33 double dy = (y1-y0) / (ndiv);
36 for(
int i=0; i<ndiv; i++){
37 for(
int j=0; j<ndiv; j++){
virtual void Delete()
Cleanup hook called by the destructor; currently a no-op.
virtual double GetPDF(const double &x, const double &y)
Normalized PDF of the signal shape, 1/µm².
QPSignalBase(const double &litude)
double Integral(const double &x0, const double &x1, const double &y0, const double &y1)
Midpoint-rule integral of GetSignal over the rectangle : the rectangle is divided into an grid sampl...
double GetSignal(const double &x, const double &y)
Signal density : amplitude times GetPDF.
virtual ~QPSignalBase()
Calls Delete().