11 nBins(histo->GetXaxis()->GetNbins()),
12 xMin(histo->GetXaxis()->GetXmin()),
13 xMax(histo->GetXaxis()->GetXmax()),
14 binWidth((xMax - xMin) / (float)nBins) {
44 int nabove, nbelow, middle;
47 while (nabove - nbelow > 1) {
48 middle = (nabove + nbelow) / 2;
49 if (value == array[middle - 1])
51 if (value < array[middle - 1])
double nEntries
Number of entries.
double flatShoot(double xmin=0.0, double xmax=1.0) const
std::vector< float > integral
Integral.
SimpleHistogramGenerator(TH1 *histo)
double generate(RandomEngineAndDistribution const *) const
The random generation.
int nBins
Pointer to the histogram.
int binarySearch(const int &n, const std::vector< float > &array, const double &value) const