52 return pow(x,
m_p1) * exp(-pow(x,
m_p2));
Generates pulse height according to distribution: P(x) = (x/x0)^p1 * exp(-(x/x0)^p2),...
double getValue(double x) const
Returns distribution value at x.
double m_p2
distribution parameter
PulseHeightGenerator()
Default constructor.
double m_xmax
upper bound of range [ADC counts]
double m_x0
distribution parameter [ADC counts]
double m_p1
distribution parameter, must be non-negative
double generate() const
Returns generated pulse height.
Abstract base class for different kinds of events.