KaliVeda
Toolkit for HIC analysis
|
Exponential function relating mean value of observable to centrality.
PolyDegree | The degree of the polynomial, \(N\) |
This implements the function
\[ k(c_b) = k_0 \exp{\left(-\sum_{i=1}^{N} a_i c_b^i\right)} \]
from Rogly et al., Phys. Rev. C 98, 024902(2018), describing the centrality dependence of the mean value of an observable which decreases monotonically with impact parameter.
Definition at line 27 of file rogly_fitting_function.h.
#include <rogly_fitting_function.h>
Public Member Functions | |
rogly_fitting_function () | |
rogly_fitting_function (const rogly_fitting_function &prev_fit) | |
rogly_fitting_function (std::initializer_list< double > params) | |
void | backup_params () |
void | fill_array_from_params (double *p) const |
void | fill_params_from_array (double *p) |
double | k_cb (double cb) const |
double | meanX (double cb) const |
void | normalise_shape_function () |
constexpr int | npar () const |
void | print_fit_params () const |
double | redVar (double) const |
void | restore_params () |
void | set_initial_parameters (TH1 *h, TF1 &f) |
void | set_par_names (TF1 &f) const |
Private Attributes | |
ipde_fit_parameter | kmax |
maximum of mean value for \(b=0\) | |
std::vector< ipde_fit_parameter > | poly_param |
polynomial coefficients | |
ipde_fit_parameter | theta_p |
fluctuation parameter \(\theta\) | |
|
inline |
Definition at line 33 of file rogly_fitting_function.h.
|
inline |
Definition at line 36 of file rogly_fitting_function.h.
|
inline |
Constructor with initializer list containing (in order): theta, kmax, PolyDegree coefficients
i.e. with PolyDegree=3 can construct with
Definition at line 41 of file rogly_fitting_function.h.
|
inline |
Store all current values of parameters in backup
Definition at line 150 of file rogly_fitting_function.h.
|
inline |
Copy values of parameters into the array (interface to ROOT TF1)
[in] | p | address of an array of size given by npar() |
[in] | p[0] | \(\theta\) |
[in] | p[1] | \(k_{max}\) |
[in] | p[2] | \(a_1\) |
[in] | p[...] | ... |
[in] | p[1+PolyDegree] | \(a_{PolyDegree}\) |
Definition at line 92 of file rogly_fitting_function.h.
|
inline |
Set values of parameters from values in the array (interface to ROOT TF1)
[in] | p | address of an array of size given by npar() |
[in] | p[0] | \(\theta\) |
[in] | p[1] | \(k_{max}\) |
[in] | p[2] | \(a_1\) |
[in] | p[...] | ... |
[in] | p[1+PolyDegree] | \(a_{PolyDegree}\) |
Definition at line 79 of file rogly_fitting_function.h.
|
inline |
[in] | cb | centrality |
Definition at line 71 of file rogly_fitting_function.h.
|
inline |
Definition at line 175 of file rogly_fitting_function.h.
|
inline |
Modify values of parameters so that \(k(c_b)\) varies between 1 at \(c_b=0\) to 0 at \(c_b=1\).
Definition at line 168 of file rogly_fitting_function.h.
|
inlineconstexpr |
Definition at line 65 of file rogly_fitting_function.h.
|
inline |
Definition at line 134 of file rogly_fitting_function.h.
|
inline |
Definition at line 179 of file rogly_fitting_function.h.
|
inline |
Retore all current values of parameters from backup
Definition at line 159 of file rogly_fitting_function.h.
|
inline |
Set initial values for parameters in TF1 object based on data in histogram h
[in] | h | histogram with data (inclusive distribution of observable, \(P(X)\)) to be fitted |
[in,out] | f | ROOT function using this implementation of \(k(c_b)\) |
Definition at line 118 of file rogly_fitting_function.h.
|
inline |
double theta() const { // Get value of \(\theta\) parameter return theta_p.value; }
Set name of parameters in TF1 object
[in,out] | f | ROOT function using this implementation of \(k(c_b)\) |
Definition at line 110 of file rogly_fitting_function.h.
|
private |
maximum of mean value for \(b=0\)
Definition at line 29 of file rogly_fitting_function.h.
|
private |
polynomial coefficients
Definition at line 30 of file rogly_fitting_function.h.
|
private |
fluctuation parameter \(\theta\)
Definition at line 28 of file rogly_fitting_function.h.