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 14 of file EgammaBDTOutputTransformer.h.

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

Member Function Documentation

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

Definition at line 18 of file EgammaBDTOutputTransformer.h.

References offset_, and scale_.

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

Member Data Documentation

const double EgammaBDTOutputTransformer::offset_
private

Definition at line 21 of file EgammaBDTOutputTransformer.h.

Referenced by operator()().

const double EgammaBDTOutputTransformer::scale_
private

Definition at line 22 of file EgammaBDTOutputTransformer.h.

Referenced by operator()().