1 #ifndef HistogramGenerator_H
2 #define HistogramGenerator_H
21 histo->GetXaxis()->GetXmin(),
22 histo->GetXaxis()->GetXmax(),
27 nbins(histo->GetXaxis()->GetNbins())
34 while (
function(
xmin) <= 0. )
xmin += du;
36 while (
function(
xmax) <= 0. )
xmax -= du;
38 if (
xmin != histo->GetXaxis()->GetXmin() )
xmin -= du;
39 if (
xmax != histo->GetXaxis()->GetXmax() )
xmax += du;
51 virtual double function(
double x) {
return ersatzt(
x); }
HistogramGenerator(TH1 *histo, const RandomEngine *engine)
Constructor : initialization of the Random Generator.
TH1 * myHisto
Pointer to the histogram.
void initialize()
The initialization (numerical integarion, inversion)
virtual ~HistogramGenerator()
Default destructor.
double ersatzt(double x)
Gamma Function.