#include <HistogramGenerator.h>
Public Member Functions | |
double | function (double x) override |
The probability density function implementation. More... | |
HistogramGenerator (TH1 *histo) | |
Constructor : initialization of the Random Generator. More... | |
~HistogramGenerator () override | |
Default destructor. More... | |
Public Member Functions inherited from BaseNumericalRandomGenerator | |
BaseNumericalRandomGenerator (double xmin=0., double xmax=1., int n=1000, int iter=6) | |
double | generate (RandomEngineAndDistribution const *) const |
The random generation according to function() More... | |
double | generateExp (RandomEngineAndDistribution const *) const |
double | generateLin (RandomEngineAndDistribution const *) const |
void | initialize () |
The initialization (numerical integarion, inversion) More... | |
bool | setSubInterval (double x1, double x2) |
To shoot in a given interval. More... | |
virtual | ~BaseNumericalRandomGenerator () |
Default destructor. More... | |
Private Member Functions | |
double | ersatzt (double x) |
Gamma Function. More... | |
Private Attributes | |
TH1 * | myHisto |
Pointer to the histogram. More... | |
int | nbins |
n bins More... | |
TAxis * | theXaxis |
the axis More... | |
Additional Inherited Members | |
Protected Attributes inherited from BaseNumericalRandomGenerator | |
double | deltar |
std::vector< double > | f |
int | iter |
int | n |
double | rmin |
std::vector< double > | sampling |
double | xmax |
double | xmin |
Definition at line 14 of file HistogramGenerator.h.
|
inline |
Constructor : initialization of the Random Generator.
Definition at line 17 of file HistogramGenerator.h.
References timingPdfMaker::histo, BaseNumericalRandomGenerator::initialize(), nbins, BaseNumericalRandomGenerator::xmax, and BaseNumericalRandomGenerator::xmin.
|
inlineoverride |
|
private |
Gamma Function.
Definition at line 5 of file HistogramGenerator.cc.
References myHisto, nbins, theXaxis, x, testProducerWithPsetDescEmpty_cfi::x1, testProducerWithPsetDescEmpty_cfi::x2, testProducerWithPsetDescEmpty_cfi::y1, and testProducerWithPsetDescEmpty_cfi::y2.
Referenced by function().
|
inlineoverridevirtual |
The probability density function implementation.
Implements BaseNumericalRandomGenerator.
Definition at line 47 of file HistogramGenerator.h.
|
private |
Pointer to the histogram.
Definition at line 51 of file HistogramGenerator.h.
Referenced by ersatzt().
|
private |
n bins
Definition at line 57 of file HistogramGenerator.h.
Referenced by python.rootplot.utilities.Hist::__init_TGraph(), python.rootplot.utilities.Hist::__len__(), python.rootplot.root2matplotlib.Hist::_prepare_xaxis(), python.rootplot.root2matplotlib.Hist::_prepare_yaxis(), python.rootplot.utilities.Hist::av_xerr(), python.rootplot.utilities.Hist::av_yerr(), python.rootplot.utilities.Hist::delete_bin(), python.rootplot.utilities.Hist::divide(), ersatzt(), HistogramGenerator(), python.rootplot.utilities.Hist::TGraph(), and python.rootplot.utilities.Hist::TH1F().
|
private |