CMS 3D CMS Logo

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 
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(const double limitLow, const double limitHigh)
double operator()(const double rawVal) const