TFCS1DFunctionSpline class

Base classes

class TFCS1DFunction

Public static functions

static auto get_maxdev(const TH1* hist, const TSpline3& sp, double& maxeffsig, double& p_maxdev, double& p_maxeffsig, int ntoy = 10000) -> double

Constructors, destructors, conversion operators

TFCS1DFunctionSpline(TH1* hist = nullptr, double maxdevgoal = 0.01, double maxeffsiggoal = 3, int maxnp = 20)
~TFCS1DFunctionSpline()

Public functions

auto Initialize(TH1* hist, double maxdevgoal = 0.01, double maxeffsiggoal = 3, int maxnp = 20) -> double
auto InitializeFromSpline(TH1* hist, const TSpline3& sp, double maxdevgoal = 0.01, double maxeffsiggoal = 3) -> double
auto InitializeEqualDistance(TH1* hist, double maxdevgoal = 0.01, double maxeffsiggoal = 3, int nsplinepoints = 5) -> double
auto InitializeEqualProbability(TH1* hist, double maxdevgoal = 0.01, double maxeffsiggoal = 3, int nsplinepoints = 5) -> double
auto rnd_to_fct(double rnd) const -> double virtual
auto spline() const -> const TSpline3&
auto spline() -> TSpline3&
void rnd_to_fct() const
auto rnd_to_fct() const -> double pure virtual

Protected static functions

static auto optimize(TSpline3& sp_best, std::vector<double>& nprop, const TH1* hist, TFCS1DFunctionInt32Histogram& hist_fct, double maxdevgoal = 0.01, double maxeffsiggoal = 3) -> double

Protected variables

TSpline3 m_spline

Function documentation

double TFCS1DFunctionSpline::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 TFCS1DFunctionSpline::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 TFCS1DFunctionSpline::rnd_to_fct() const pure virtual

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