CMS 3D CMS Logo

SimpleHistogramGenerator.h
Go to the documentation of this file.
1 #ifndef SimpleHistogramGenerator_H
2 #define SimpleHistogramGenerator_H
3 
15 #include <vector>
16 
18 class TH1;
19 class TAxis;
20 
22 public:
27 
30 
32  double generate(RandomEngineAndDistribution const*) const;
33 
34  int binarySearch(const int& n, const std::vector<float>& array, const double& value) const;
35 
36 private:
38  //TH1 * myHisto;
39 
41  //TAxis * theXaxis;
42 
44  int nBins;
45 
46  // Limits of integration
47  double xMin, xMax;
48 
49  // Bin width
50  double binWidth;
51 
53  std::vector<float> integral;
54 
56  double nEntries;
57 };
58 #endif
double nEntries
Number of entries.
std::vector< float > integral
Integral.
Definition: value.py:1
double generate(RandomEngineAndDistribution const *) const
The random generation.
virtual ~SimpleHistogramGenerator()
Default destructor.
int nBins
Pointer to the histogram.
int binarySearch(const int &n, const std::vector< float > &array, const double &value) const