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
n
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
c
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
src
RecoEgamma
EgammaTools
interface
EgammaBDTOutputTransformer.h
Go to the documentation of this file.
1
#ifndef RecoEgamma_ElectronTools_EgammaBDTOutputTransformer_h
2
#define RecoEgamma_ElectronTools_EgammaBDTOutputTransformer_h
3
4
//author: Sam Harper (RAL)
5
//description:
6
// translates the raw value returned by the BDT output to the true value
7
// apparently its MINUIT-like, orginally taken from E/gamma regression applicator
8
9
#include <vdt/vdtMath.h>
10
11
class
EgammaBDTOutputTransformer
{
12
public
:
13
EgammaBDTOutputTransformer
(
const
double
limitLow,
const
double
limitHigh)
14
:
offset_
(limitLow + 0.5 * (limitHigh - limitLow)),
scale_
(0.5 * (limitHigh - limitLow)) {}
15
16
double
operator()
(
const
double
rawVal)
const
{
return
offset_
+
scale_
* vdt::fast_sin(rawVal); }
17
18
private
:
19
double
offset_
;
20
double
scale_
;
21
};
22
23
#endif
EgammaBDTOutputTransformer::operator()
double operator()(const double rawVal) const
Definition:
EgammaBDTOutputTransformer.h:16
EgammaBDTOutputTransformer::EgammaBDTOutputTransformer
EgammaBDTOutputTransformer(const double limitLow, const double limitHigh)
Definition:
EgammaBDTOutputTransformer.h:13
EgammaBDTOutputTransformer
Definition:
EgammaBDTOutputTransformer.h:11
EgammaBDTOutputTransformer::scale_
double scale_
Definition:
EgammaBDTOutputTransformer.h:20
EgammaBDTOutputTransformer::offset_
double offset_
Definition:
EgammaBDTOutputTransformer.h:19
Generated for CMSSW Reference Manual by
1.8.14