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::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

◆ operator()()

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

Definition at line 16 of file EgammaBDTOutputTransformer.h.

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

References offset_, and scale_.

Member Data Documentation

◆ offset_

const double EgammaBDTOutputTransformer::offset_
private

Definition at line 19 of file EgammaBDTOutputTransformer.h.

Referenced by operator()().

◆ scale_

const double EgammaBDTOutputTransformer::scale_
private

Definition at line 20 of file EgammaBDTOutputTransformer.h.

Referenced by operator()().

EgammaBDTOutputTransformer::scale_
const double scale_
Definition: EgammaBDTOutputTransformer.h:20
EgammaBDTOutputTransformer::offset_
const double offset_
Definition: EgammaBDTOutputTransformer.h:19