1 #ifndef HistogramGenerator_H 2 #define HistogramGenerator_H 21 histo->GetXaxis()->GetXmax(),
26 nbins(histo->GetXaxis()->GetNbins())
33 while (
function(
xmin) <= 0. )
xmin += du;
35 while (
function(
xmax) <= 0. )
xmax -= du;
37 if (
xmin != histo->GetXaxis()->GetXmin() )
xmin -= du;
38 if (
xmax != histo->GetXaxis()->GetXmax() )
xmax += du;
50 double function(
double x)
override {
return ersatzt(
x); }
TH1 * myHisto
Pointer to the histogram.
~HistogramGenerator() override
Default destructor.
void initialize()
The initialization (numerical integarion, inversion)
HistogramGenerator(TH1 *histo)
Constructor : initialization of the Random Generator.
double ersatzt(double x)
Gamma Function.