FastSimulation
Utilities
interface
SimpleHistogramGenerator.h
Go to the documentation of this file.
1
#ifndef SimpleHistogramGenerator_H
2
#define SimpleHistogramGenerator_H
3
15
#include <vector>
16
17
class
RandomEngineAndDistribution
;
18
class
TH1;
19
class
TAxis;
20
21
class
SimpleHistogramGenerator
{
22
public
:
26
SimpleHistogramGenerator
(TH1*
histo
);
27
29
virtual
~SimpleHistogramGenerator
() {}
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
dqmiodumpmetadata.n
n
Definition:
dqmiodumpmetadata.py:28
SimpleHistogramGenerator::xMin
double xMin
Definition:
SimpleHistogramGenerator.h:47
timingPdfMaker.histo
histo
Definition:
timingPdfMaker.py:278
mps_check.array
array
Definition:
mps_check.py:216
SimpleHistogramGenerator::generate
double generate(RandomEngineAndDistribution const *) const
The random generation.
Definition:
SimpleHistogramGenerator.cc:25
SimpleHistogramGenerator::binarySearch
int binarySearch(const int &n, const std::vector< float > &array, const double &value) const
Definition:
SimpleHistogramGenerator.cc:37
SimpleHistogramGenerator::nBins
int nBins
Pointer to the histogram.
Definition:
SimpleHistogramGenerator.h:44
SimpleHistogramGenerator::nEntries
double nEntries
Number of entries.
Definition:
SimpleHistogramGenerator.h:56
value
Definition:
value.py:1
SimpleHistogramGenerator
Definition:
SimpleHistogramGenerator.h:21
SimpleHistogramGenerator::xMax
double xMax
Definition:
SimpleHistogramGenerator.h:47
SimpleHistogramGenerator::SimpleHistogramGenerator
SimpleHistogramGenerator(TH1 *histo)
Definition:
SimpleHistogramGenerator.cc:8
SimpleHistogramGenerator::~SimpleHistogramGenerator
virtual ~SimpleHistogramGenerator()
Default destructor.
Definition:
SimpleHistogramGenerator.h:29
SimpleHistogramGenerator::integral
std::vector< float > integral
Integral.
Definition:
SimpleHistogramGenerator.h:53
SimpleHistogramGenerator::binWidth
double binWidth
Definition:
SimpleHistogramGenerator.h:50
RandomEngineAndDistribution
Definition:
RandomEngineAndDistribution.h:18
Generated for CMSSW Reference Manual by
1.8.16