CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
EgammaBDTOutputTransformer Class Reference

#include <EgammaBDTOutputTransformer.h>

Public Member Functions

 EgammaBDTOutputTransformer (const double limitLow, const double limitHigh)
 
double operator() (const double rawVal) const
 

Private Attributes

const double offset_
 
const double scale_
 

Detailed Description

Definition at line 11 of file EgammaBDTOutputTransformer.h.

Constructor & Destructor Documentation

EgammaBDTOutputTransformer::EgammaBDTOutputTransformer ( const double  limitLow,
const double  limitHigh 
)
inline

Definition at line 13 of file EgammaBDTOutputTransformer.h.

14  : offset_(limitLow + 0.5 * (limitHigh - limitLow)), scale_(0.5 * (limitHigh - limitLow)) {}

Member Function Documentation

double EgammaBDTOutputTransformer::operator() ( const double  rawVal) const
inline

Definition at line 16 of file EgammaBDTOutputTransformer.h.

References offset_, and scale_.

16 { return offset_ + scale_ * vdt::fast_sin(rawVal); }

Member Data Documentation

const double EgammaBDTOutputTransformer::offset_
private

Definition at line 19 of file EgammaBDTOutputTransformer.h.

Referenced by operator()().

const double EgammaBDTOutputTransformer::scale_
private

Definition at line 20 of file EgammaBDTOutputTransformer.h.

Referenced by operator()().