template<typename Txvec, typename Tyvec, typename Tz, typename Trandom = float>
TFCS2DFunctionTemplateInterpolationHistogram class

Base classes

template<typename Txvec, typename Tyvec, typename Tz, typename Trandom = float>
class TFCS2DFunctionTemplateHistogram<Txvec, Tyvec, Tz, Trandom>

Constructors, destructors, conversion operators

TFCS2DFunctionTemplateInterpolationHistogram(TH2* hist = nullptr)

Public functions

void rnd_to_fct(float& valuex, float& valuey, float rnd, float rnd2) const virtual

Function documentation

template<typename Txvec, typename Tyvec, typename Tz, typename Trandom>
void TFCS2DFunctionTemplateInterpolationHistogram<Txvec, Tyvec, Tz, Trandom>::rnd_to_fct(float& valuex, float& valuey, float rnd, float rnd2) const virtual

Function gets random number rnd in the range [0,1) as argument and returns function value according to a histogram distribution. An exponential interpolation is done within each bin Function gets random number rnd in the range [0,1) as argument and returns function value according to a histogram distribution. A linear interpolation is done within each bin