test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
{
23
public
:
24
28
SimpleHistogramGenerator
(TH1 *
histo
);
29
31
virtual
~SimpleHistogramGenerator
() {}
32
34
double
generate
(
RandomEngineAndDistribution
const
*)
const
;
35
36
int
binarySearch
(
const
int
&
n
,
37
const
std::vector<double>& 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<double>
integral
;
59
61
double
nEntries
;
62
63
};
64
#endif
SimpleHistogramGenerator::nEntries
double nEntries
Number of entries.
Definition:
SimpleHistogramGenerator.h:61
SimpleHistogramGenerator::myHisto
TH1 * myHisto
Pointer to the histogram.
Definition:
SimpleHistogramGenerator.h:43
relativeConstraints.value
tuple value
Definition:
relativeConstraints.py:54
SimpleHistogramGenerator::xMax
double xMax
Definition:
SimpleHistogramGenerator.h:52
timingPdfMaker.histo
tuple histo
Definition:
timingPdfMaker.py:279
SimpleHistogramGenerator::binWidth
double binWidth
Definition:
SimpleHistogramGenerator.h:55
SimpleHistogramGenerator::SimpleHistogramGenerator
SimpleHistogramGenerator(TH1 *histo)
Definition:
SimpleHistogramGenerator.cc:8
SimpleHistogramGenerator::integral
std::vector< double > integral
Integral.
Definition:
SimpleHistogramGenerator.h:58
SimpleHistogramGenerator::binarySearch
int binarySearch(const int &n, const std::vector< double > &array, const double &value) const
Definition:
SimpleHistogramGenerator.cc:43
SimpleHistogramGenerator::generate
double generate(RandomEngineAndDistribution const *) const
The random generation.
Definition:
SimpleHistogramGenerator.cc:28
SimpleHistogramGenerator::theXaxis
TAxis * theXaxis
the axis
Definition:
SimpleHistogramGenerator.h:46
SimpleHistogramGenerator::~SimpleHistogramGenerator
virtual ~SimpleHistogramGenerator()
Default destructor.
Definition:
SimpleHistogramGenerator.h:31
SimpleHistogramGenerator::nBins
int nBins
Number of bins.
Definition:
SimpleHistogramGenerator.h:49
n
int n
Definition:
DTDataIntegrityTask.cc:30
SimpleHistogramGenerator::xMin
double xMin
Definition:
SimpleHistogramGenerator.h:52
SimpleHistogramGenerator
Definition:
SimpleHistogramGenerator.h:21
RandomEngineAndDistribution
Definition:
RandomEngineAndDistribution.h:18
Generated for CMSSW Reference Manual by
1.8.5