CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
23  public:
24 
29 
32 
34  double generate(RandomEngineAndDistribution const*) const;
35 
36  int binarySearch(const int& n,
37  const std::vector<float>& array,
38  const double& value) const;
39 
40  private:
41 
43  //TH1 * myHisto;
44 
46  //TAxis * theXaxis;
47 
49  int nBins;
50 
51  // Limits of integration
52  double xMin, xMax;
53 
54  // Bin width
55  double binWidth;
56 
58  std::vector<float> integral;
59 
61  double nEntries;
62 
63 };
64 #endif
double nEntries
Number of entries.
std::vector< float > integral
Integral.
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