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 virtual double function(
double x) {
return ersatzt(
x); }
TH1 * myHisto
Pointer to the histogram.
void initialize()
The initialization (numerical integarion, inversion)
HistogramGenerator(TH1 *histo)
Constructor : initialization of the Random Generator.
virtual ~HistogramGenerator()
Default destructor.
double ersatzt(double x)
Gamma Function.