#include <GammaFunctionGenerator.h>
Public Member Functions | |
GammaFunctionGenerator (const RandomEngine *engine) | |
Constructor. More... | |
void | setParameters (double a, double b, double xm) |
The parameters must be set before shooting. More... | |
double | shoot () const |
virtual | ~GammaFunctionGenerator () |
Destructor. More... | |
Private Member Functions | |
double | gammaFrac () const |
values 0<a<1. More... | |
double | gammaInt () const |
integer values More... | |
Private Attributes | |
double | alpha |
std::vector< double > | approxLimit |
bool | badRange |
double | beta |
std::vector< double > | coreCoeff |
double | coreProba |
double | frac |
std::vector< double > | integralToApproxLimit |
Genfun::IncompleteGamma | myIncompleteGamma |
unsigned | na |
const RandomEngine * | random |
std::vector < GammaNumericalGenerator > | theGammas |
double | xmax |
double | xmin |
Definition at line 21 of file GammaFunctionGenerator.h.
GammaFunctionGenerator::GammaFunctionGenerator | ( | const RandomEngine * | engine | ) |
Constructor.
Definition at line 5 of file GammaFunctionGenerator.cc.
References approxLimit, coreCoeff, alignCSCRings::e, i, integralToApproxLimit, myIncompleteGamma, random, theGammas, and xmax.
|
virtual |
|
private |
values 0<a<1.
Definition at line 64 of file GammaFunctionGenerator.cc.
References create_public_lumi_plots::exp, RandomEngine::flatShoot(), frac, create_public_lumi_plots::log, AlCaHLTBitMon_ParallelJobs::p, lumiQueryAPI::q, random, v, and x.
Referenced by shoot().
|
private |
integer values
Definition at line 92 of file GammaFunctionGenerator.cc.
References approxLimit, coreCoeff, coreProba, RandomEngine::flatShoot(), create_public_lumi_plots::log, na, random, theGammas, and xmin.
Referenced by shoot().
void GammaFunctionGenerator::setParameters | ( | double | a, |
double | b, | ||
double | xm | ||
) |
The parameters must be set before shooting.
Definition at line 115 of file GammaFunctionGenerator.cc.
References a, alpha, approxLimit, b, badRange, beta, coreProba, frac, integralToApproxLimit, myIncompleteGamma, na, theGammas, tmp, xmax, and xmin.
Referenced by EMShower::compute().
double GammaFunctionGenerator::shoot | ( | ) | const |
shoot along a gamma distribution with shape parameter alpha and scale beta values > xmin
Definition at line 35 of file GammaFunctionGenerator.cc.
References alpha, badRange, beta, gammaFrac(), gammaInt(), gf, na, and xmin.
Referenced by EMShower::compute().
|
private |
Definition at line 69 of file GammaFunctionGenerator.h.
Referenced by setParameters(), and shoot().
|
private |
Definition at line 58 of file GammaFunctionGenerator.h.
Referenced by GammaFunctionGenerator(), gammaInt(), and setParameters().
|
private |
Definition at line 77 of file GammaFunctionGenerator.h.
Referenced by setParameters(), and shoot().
|
private |
Definition at line 69 of file GammaFunctionGenerator.h.
Referenced by setParameters(), and shoot().
|
private |
Definition at line 52 of file GammaFunctionGenerator.h.
Referenced by GammaFunctionGenerator(), and gammaInt().
|
private |
Definition at line 55 of file GammaFunctionGenerator.h.
Referenced by gammaInt(), and setParameters().
|
private |
Definition at line 67 of file GammaFunctionGenerator.h.
Referenced by gammaFrac(), and setParameters().
|
private |
Definition at line 74 of file GammaFunctionGenerator.h.
Referenced by GammaFunctionGenerator(), and setParameters().
|
private |
Definition at line 71 of file GammaFunctionGenerator.h.
Referenced by GammaFunctionGenerator(), and setParameters().
|
private |
Definition at line 65 of file GammaFunctionGenerator.h.
Referenced by gammaInt(), setParameters(), and shoot().
|
private |
Definition at line 79 of file GammaFunctionGenerator.h.
Referenced by gammaFrac(), GammaFunctionGenerator(), and gammaInt().
|
private |
Definition at line 49 of file GammaFunctionGenerator.h.
Referenced by GammaFunctionGenerator(), gammaInt(), and setParameters().
|
private |
Definition at line 62 of file GammaFunctionGenerator.h.
Referenced by svgfig.XAxis::__repr__(), GammaFunctionGenerator(), and setParameters().
|
private |
Definition at line 61 of file GammaFunctionGenerator.h.
Referenced by svgfig.XAxis::__repr__(), svgfig.Axes::__repr__(), svgfig.HGrid::__repr__(), svgfig.Grid::__repr__(), gammaInt(), setParameters(), shoot(), and svgfig.Axes::SVG().