10 theXaxis(histo->GetXaxis()),
11 nBins(theXaxis->GetNbins()),
12 xMin(theXaxis->GetXmin()),
13 xMax(theXaxis->GetXmax()),
14 binWidth((xMax-xMin)/(float)nBins)
44 const std::vector<double>& array,
45 const double&
value)
const
53 int nabove, nbelow, middle;
56 while(nabove-nbelow > 1) {
57 middle = (nabove+nbelow)/2;
58 if (value == array[middle-1])
return middle-1;
59 if (value < array[middle-1]) nabove = middle;
double nEntries
Number of entries.
double flatShoot(double xmin=0.0, double xmax=1.0) const
SimpleHistogramGenerator(TH1 *histo)
std::vector< double > integral
Integral.
int binarySearch(const int &n, const std::vector< double > &array, const double &value) const
double generate(RandomEngineAndDistribution const *) const
The random generation.