TFCS1DFunctionHistogram class

Base classes

class TFCS1DFunction

Public static functions

static auto linear(double y1, double y2, double x1, double x2, double x) -> double
static auto non_linear(double y1, double y2, double x1, double x2, double x) -> double
static auto get_maxdev(TH1*, TH1D*) -> double
static auto get_change(TH1*) -> double
static auto smart_rebin(TH1D*) -> TH1D *
static auto histo_to_array(TH1*) -> std::unique_ptr< double[]>
static auto sample_from_histo(TH1* hist, double) -> double

Constructors, destructors, conversion operators

TFCS1DFunctionHistogram() defaulted
TFCS1DFunctionHistogram(TH1* hist, double)

Public functions

void Initialize(TH1* hist, double)
auto rnd_to_fct(double rnd) const -> double override
auto vector_to_histo() -> TH1 *
auto get_inverse(double rnd) const -> double
void smart_rebin_loop(TH1* hist, double)
auto sample_from_histovalues(double) -> double
auto get_HistoBorders() const -> const std::vector< float > &
auto get_HistoContents() const -> const std::vector< float > &
void rnd_to_fct() const override
auto rnd_to_fct() const -> double pure virtual

Protected variables

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

Function documentation

auto TFCS1DFunctionHistogram::rnd_to_fct(double rnd) const -> double override

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

void TFCS1DFunctionHistogram::rnd_to_fct() const override

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.

auto TFCS1DFunctionHistogram::rnd_to_fct() const -> double pure virtual

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