Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
FastSimulation
Utilities
src
HistogramGenerator.cc
Go to the documentation of this file.
1
#include "
FastSimulation/Utilities/interface/HistogramGenerator.h
"
2
3
//#include "TAxis.h"
4
5
double
HistogramGenerator::ersatzt
(
double
x
) {
6
int
ibin =
theXaxis
->FindBin(
x
);
7
// std::cout << x << " Bin " << ibin << std::endl;
8
double
x1
=
myHisto
->GetBinLowEdge(ibin);
9
double
x2
=
x1
+
myHisto
->GetBinWidth(ibin);
10
double
y1
=
myHisto
->GetBinContent(ibin);
11
double
y2
;
12
if
(ibin <
nbins
)
13
y2
=
myHisto
->GetBinContent(ibin + 1);
14
else
15
y2
=
y1
;
16
// std::cout << " X1 " << x1 <<" X2 " << x2 << " Y1 " <<y1 << " Y2 " << y2 << std::endl;
17
return
y2
+ (
y1
-
y2
) * (
x2
-
x
) / (
x2
-
x1
);
18
}
HistogramGenerator::myHisto
TH1 * myHisto
Pointer to the histogram.
Definition:
HistogramGenerator.h:51
testProducerWithPsetDescEmpty_cfi.x2
x2
Definition:
testProducerWithPsetDescEmpty_cfi.py:28
DDAxes::x
testProducerWithPsetDescEmpty_cfi.x1
x1
Definition:
testProducerWithPsetDescEmpty_cfi.py:33
testProducerWithPsetDescEmpty_cfi.y1
y1
Definition:
testProducerWithPsetDescEmpty_cfi.py:29
testProducerWithPsetDescEmpty_cfi.y2
y2
Definition:
testProducerWithPsetDescEmpty_cfi.py:30
HistogramGenerator::ersatzt
double ersatzt(double x)
Gamma Function.
Definition:
HistogramGenerator.cc:5
HistogramGenerator::nbins
int nbins
n bins
Definition:
HistogramGenerator.h:57
genVertex_cff.x
x
Definition:
genVertex_cff.py:13
HistogramGenerator::theXaxis
TAxis * theXaxis
the axis
Definition:
HistogramGenerator.h:54
HistogramGenerator.h
Generated for CMSSW Reference Manual by
1.8.16