TFCS1DFunctionHistogram class
#include <TFCS1DFunctionHistogram.h>
Contents
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*) -> double*
- static auto sample_from_histo(TH1* hist, double) -> double
Constructors, destructors, conversion operators
- TFCS1DFunctionHistogram()
- TFCS1DFunctionHistogram(TH1* hist, double)
Public functions
- void Initialize(TH1* hist, double)
- auto rnd_to_fct(double rnd) const -> double virtual
- 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() -> std::vector<float>
- auto get_HistoContents() -> std::vector<float>
- void rnd_to_fct() const
- auto rnd_to_fct() const -> double pure virtual
Protected variables
- std::vector<float> m_HistoBorders
- std::vector<float> m_HistoContents
Function documentation
double TFCS1DFunctionHistogram:: rnd_to_fct(double rnd) const virtual
Function gets random number rnd in the range [0,1) as argument and returns function value
void TFCS1DFunctionHistogram:: 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 TFCS1DFunctionHistogram:: rnd_to_fct() const pure virtual
Function gets random number rnd in the range [0,1) as argument and returns function value