#include <RandArrayFunction.h>
Public Member Functions | |
double | Fire () const |
void | FireArray (int size, double *array) const |
double | operator() () const |
void | PrepareTable (const double *aProbFunc) |
RandArrayFunction (const double *aProbFunc, int theProbSize, int interpolationType=0) | |
RandArrayFunction (int probSize, int interpolationType=0) | |
double | Shoot () const |
void | ShootArray (int size, double *array) const |
Private Member Functions | |
double | MapRandom (double rand) const |
double | StandardRand () const |
void | UseFlatDistribution () |
Private Attributes | |
std::vector< double > | fIntegralPdf |
int | fInterpolationType |
int | fNBins |
double | fOneOverNbins |
Definition at line 73 of file RandArrayFunction.h.
RandArrayFunction::RandArrayFunction | ( | const double * | aProbFunc, |
int | theProbSize, | ||
int | interpolationType = 0 |
||
) |
Definition at line 12 of file RandArrayFunction.cc.
References PrepareTable().
RandArrayFunction::RandArrayFunction | ( | int | probSize, |
int | interpolationType = 0 |
||
) |
Definition at line 19 of file RandArrayFunction.cc.
|
inline |
Definition at line 102 of file RandArrayFunction.h.
References MapRandom(), and StandardRand().
Referenced by FireArray(), operator()(), and Shoot().
void RandArrayFunction::FireArray | ( | int | size, |
double * | array | ||
) | const |
Definition at line 113 of file RandArrayFunction.cc.
References Fire(), i, and findQualityFiles::size.
Referenced by ShootArray().
|
private |
Definition at line 73 of file RandArrayFunction.cc.
References fIntegralPdf, fInterpolationType, fNBins, and fOneOverNbins.
Referenced by Fire().
|
inline |
void RandArrayFunction::PrepareTable | ( | const double * | aProbFunc | ) |
Definition at line 24 of file RandArrayFunction.cc.
References fIntegralPdf, fInterpolationType, fNBins, fOneOverNbins, UseFlatDistribution(), and puppiForMET_cff::weight.
Referenced by gen::Hydjet2Hadronizer::generatePartonsAndHadronize(), and RandArrayFunction().
|
inline |
|
inline |
Definition at line 114 of file RandArrayFunction.h.
References FireArray().
|
inlineprivate |
|
private |
Definition at line 64 of file RandArrayFunction.cc.
References fIntegralPdf, fNBins, and fOneOverNbins.
Referenced by PrepareTable().
|
private |
Definition at line 75 of file RandArrayFunction.h.
Referenced by MapRandom(), PrepareTable(), and UseFlatDistribution().
|
private |
Definition at line 78 of file RandArrayFunction.h.
Referenced by MapRandom(), and PrepareTable().
|
private |
Definition at line 76 of file RandArrayFunction.h.
Referenced by MapRandom(), PrepareTable(), and UseFlatDistribution().
|
private |
Definition at line 77 of file RandArrayFunction.h.
Referenced by MapRandom(), PrepareTable(), and UseFlatDistribution().