TFCS1DFunctionInt16Histogram class

Base classes

class TFCS1DFunction

Public types

using HistoContent_t = uint16_t

Public static variables

static const HistoContent_t s_MaxValue

Constructors, destructors, conversion operators

TFCS1DFunctionInt16Histogram(const TH1* hist = nullptr)
~TFCS1DFunctionInt16Histogram()

Public functions

void Initialize(const TH1* hist)
auto rnd_to_fct(double rnd) const -> double virtual
auto get_HistoBordersx() const -> const std::vector<float>&
auto get_HistoBordersx() -> std::vector<float>&
auto get_HistoContents() const -> const std::vector<HistoContent_t>&
auto get_HistoContents() -> std::vector<HistoContent_t>&
void rnd_to_fct() const
auto rnd_to_fct() const -> double pure virtual

Protected variables

std::vector<float> m_HistoBorders
std::vector<HistoContent_t> m_HistoContents

Function documentation

double TFCS1DFunctionInt16Histogram::rnd_to_fct(double rnd) const virtual

Function gets random number rnd in the range [0,1) as argument and returns function value according to a histogram distribution

void TFCS1DFunctionInt16Histogram::rnd_to_fct() const

Function gets array of random numbers rnd[] in the range [0,1) as arguments and returns function value in array value. For a n-dimensional function, value and rnd should both have n elements.

double TFCS1DFunctionInt16Histogram::rnd_to_fct() const pure virtual

Function gets random number rnd in the range [0,1) as argument and returns function value