Main Page
Namespaces
Classes
Package Documentation
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
13
public
:
14
EgammaBDTOutputTransformer
(
const
double
limitLow,
const
double
limitHigh):
15
offset_
(limitLow + 0.5*(limitHigh-limitLow)),
16
scale_
(0.5*(limitHigh-limitLow)){}
17
18
double
operator()
(
const
double
rawVal)
const
{
return
offset_
+
scale_
*vdt::fast_sin(rawVal);}
19
20
private
:
21
const
double
offset_
;
22
const
double
scale_
;
23
};
24
25
26
#endif
EgammaBDTOutputTransformer::EgammaBDTOutputTransformer
EgammaBDTOutputTransformer(const double limitLow, const double limitHigh)
Definition:
EgammaBDTOutputTransformer.h:14
EgammaBDTOutputTransformer::operator()
double operator()(const double rawVal) const
Definition:
EgammaBDTOutputTransformer.h:18
EgammaBDTOutputTransformer
Definition:
EgammaBDTOutputTransformer.h:11
EgammaBDTOutputTransformer::scale_
const double scale_
Definition:
EgammaBDTOutputTransformer.h:22
EgammaBDTOutputTransformer::offset_
const double offset_
Definition:
EgammaBDTOutputTransformer.h:21
Generated for CMSSW Reference Manual by
1.8.11