|
Nanga Parbat 1.1.0
A TMD fitting framework
|
The "DataHandler" class provides a common interface to all datasets. It provides methods to get kinematics, central values, uncertainties, etc. More...
#include <datahandler.h>
Classes | |
| struct | Binning |
| Structure containing the single bin information. This is currently used only for the FF_SIDIS project. More... | |
| struct | Kinematics |
| Structure containing the kinematic information of one single data set. More... | |
Public Types | |
| enum | Process : int { UnknownProcess = -1 , DY = 0 , SIDIS = 1 , SIA = 2 , DIA = 3 } |
| The process enumerator. More... | |
| enum | Observable : int { UnknownObservable = -1 , dsigma_dxdydz = 0 , dsigma_dxdQdz = 1 , multiplicity = 2 , F_uut = 3 , opposite_sign_ratio = 4 } |
| The observable enumerator. More... | |
Public Member Functions | |
| DataHandler (DataHandler const &DH) | |
| The "DataHandler" copy constructor. More... | |
| DataHandler (std::string const &name, YAML::Node const &datafile, gsl_rng *rng=nullptr, int const &fluctuation=0, std::vector< double > const &t0={}) | |
| The "DataHandler" constructor. More... | |
| void | FluctuateData (gsl_rng *rng, int const &fluctuation) |
| Function that fluctuates data. More... | |
| void | SetMeans (std::vector< double > const &means, gsl_rng *rng=nullptr, int const &fluctuation=0) |
| Function that sets the data central values replacing that introduced in the constructor. More... | |
| std::string | GetName () const |
| Function that returns the name of the dataset. More... | |
| YAML::Node | GetDataFile () const |
| Function that returns the datafile in YAML format. More... | |
| Process | GetProcess () const |
| Function that returns the process code. More... | |
| Observable | GetObservable () const |
| Function that returns the observable code. More... | |
| double | GetTargetIsoscalarity () const |
| Function that returns the target isoscalarity. More... | |
| std::string | GetHadron () const |
| Function that returns the possible identified hadron species in the final state. More... | |
| int | GetCharge () const |
| Function that returns the charge of the identified final state. More... | |
| std::vector< apfel::QuarkFlavour > | GetTagging () const |
| Function that returns the quark-tagged compoments. Zero corresponds to total. More... | |
| double | GetPrefactor () const |
| Function that returns any possible constant prefactor to be used to multiply the theoretical predictions. More... | |
| Kinematics | GetKinematics () const |
| Function that returns the kinematic object. More... | |
| std::vector< double > | GetMeanValues () const |
| Function that returns the mean values. More... | |
| std::vector< double > | GetFluctutatedData () const |
| Function that returns the fluctuated data. More... | |
| std::vector< double > | GetUncorrelatedUnc () const |
| Function that returns the sum in quadrature of the uncorrelated uncertainties. More... | |
| std::vector< std::vector< double > > | GetAddCorrelatedUnc () const |
| Function that returns the additive correlated systematic uncertainties. More... | |
| std::vector< std::vector< double > > | GetMultCorrelatedUnc () const |
| Function that returns the multiplicative correlated systematic uncertainties. More... | |
| std::vector< std::vector< double > > | GetCorrelatedUnc () const |
| Function that returns the all the correlated systematic uncertainties (additive first and multiplicative second). More... | |
| apfel::matrix< double > | GetCovarianceMatrix () const |
| Function that returns the covariance matrix of the correlated uncertainties. More... | |
| apfel::matrix< double > | GetCholeskyDecomposition () const |
| Function that returns the Cholesky decomposition of the covariance matrix. More... | |
| std::vector< double > | GetT0 () const |
| Function that returns the set of t0 predictions. More... | |
| std::map< std::string, std::string > | GetLabels () const |
| Function that returns the plotting labels. More... | |
| std::vector< Binning > | GetBinning () const |
| Get vector of bins. This is currently used only for the FF_SIDIS project. More... | |
Protected Attributes | |
| std::string | _name |
| Name of the dataset. More... | |
| YAML::Node | _datafile |
| Datafile in YAML. More... | |
| Process | _proc |
| The process. More... | |
| Observable | _obs |
| The observable. More... | |
| double | _targetiso |
| Isoscalarity of the target. More... | |
| std::string | _hadron |
| Hadron species identified in the final state. More... | |
| double | _charge |
| Charge of the identified final state. More... | |
| std::vector< apfel::QuarkFlavour > | _tagging |
| Possible quark-tagged components. More... | |
| double | _prefact |
| Possible overall prefactor to multiply the theoretical predictions. More... | |
| Kinematics | _kin |
| Kinematics block. More... | |
| std::vector< double > | _means |
| Vector of central values. More... | |
| std::vector< double > | _uncor |
| Vector of uncorrelated uncertainties. More... | |
| std::vector< std::vector< double > > | _corra |
| Additive correlated uncertainties. More... | |
| std::vector< std::vector< double > > | _corrm |
| Multiplicative correlated uncertainties. More... | |
| std::vector< std::vector< double > > | _corr |
| All correlated uncertainties. More... | |
| apfel::matrix< double > | _covmat |
| Covariance matrix. More... | |
| apfel::matrix< double > | _CholL |
| Cholesky decomposition of the covariance matrix. More... | |
| std::map< std::string, std::string > | _labels |
| Labels used for plotting. More... | |
| std::vector< double > | _fluctuations |
| Vector of fluctuated data. More... | |
| std::vector< double > | _t0 |
| Vector of t0-predictions. More... | |
| std::vector< Binning > | _bins |
| Vector of bins (currently used only for the FF_SIDIS project) More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, DataHandler const &DH) |
The "DataHandler" class provides a common interface to all datasets. It provides methods to get kinematics, central values, uncertainties, etc.
| enum NangaParbat::DataHandler::Observable : int |
| enum NangaParbat::DataHandler::Process : int |
| NangaParbat::DataHandler::DataHandler | ( | DataHandler const & | DH | ) |
The "DataHandler" copy constructor.
| NangaParbat::DataHandler::DataHandler | ( | std::string const & | name, |
| YAML::Node const & | datafile, | ||
| gsl_rng * | rng = nullptr, |
||
| int const & | fluctuation = 0, |
||
| std::vector< double > const & | t0 = {} |
||
| ) |
The "DataHandler" constructor.
| name | the name associated to the data set |
| datafile | the YAML:Node with the interpolation table |
| rng | GSL random number object |
| fluctuation | ID of the fluctuation (i.e. Monte-Carlo replica ID) (default: 0, i.e. no fluctuations) |
| t0 | vector of predictions to be used for the t0-prescription |
| void NangaParbat::DataHandler::FluctuateData | ( | gsl_rng * | rng, |
| int const & | fluctuation | ||
| ) |
Function that fluctuates data.
| rng | GSL random number object |
| fluctuation | ID of the fluctuation (i.e. Monte-Carlo replica ID) (default: 0, i.e. no fluctuations) |
|
inline |
Function that returns the additive correlated systematic uncertainties.
|
inline |
Get vector of bins. This is currently used only for the FF_SIDIS project.
|
inline |
Function that returns the charge of the identified final state.
|
inline |
Function that returns the Cholesky decomposition of the covariance matrix.
|
inline |
Function that returns the all the correlated systematic uncertainties (additive first and multiplicative second).
|
inline |
Function that returns the covariance matrix of the correlated uncertainties.
|
inline |
Function that returns the datafile in YAML format.
|
inline |
Function that returns the fluctuated data.
|
inline |
Function that returns the possible identified hadron species in the final state.
|
inline |
Function that returns the kinematic object.
|
inline |
Function that returns the plotting labels.
|
inline |
Function that returns the mean values.
|
inline |
Function that returns the multiplicative correlated systematic uncertainties.
|
inline |
Function that returns the name of the dataset.
|
inline |
Function that returns the observable code.
|
inline |
Function that returns any possible constant prefactor to be used to multiply the theoretical predictions.
|
inline |
Function that returns the process code.
|
inline |
Function that returns the set of t0 predictions.
|
inline |
Function that returns the quark-tagged compoments. Zero corresponds to total.
|
inline |
Function that returns the target isoscalarity.
|
inline |
Function that returns the sum in quadrature of the uncorrelated uncertainties.
| void NangaParbat::DataHandler::SetMeans | ( | std::vector< double > const & | means, |
| gsl_rng * | rng = nullptr, |
||
| int const & | fluctuation = 0 |
||
| ) |
Function that sets the data central values replacing that introduced in the constructor.
| means | the new means |
| rng | GSL random number generator |
| fluctuation | fluctuation index (default: 0) |
|
friend |
|
protected |
Vector of bins (currently used only for the FF_SIDIS project)
|
protected |
Charge of the identified final state.
|
protected |
Cholesky decomposition of the covariance matrix.
|
protected |
All correlated uncertainties.
|
protected |
Additive correlated uncertainties.
|
protected |
Multiplicative correlated uncertainties.
|
protected |
Covariance matrix.
|
protected |
Datafile in YAML.
|
protected |
Vector of fluctuated data.
|
protected |
Hadron species identified in the final state.
|
protected |
Kinematics block.
|
protected |
Labels used for plotting.
|
protected |
Vector of central values.
|
protected |
Name of the dataset.
|
protected |
The observable.
|
protected |
Possible overall prefactor to multiply the theoretical predictions.
|
protected |
The process.
|
protected |
Vector of t0-predictions.
|
protected |
Possible quark-tagged components.
|
protected |
Isoscalarity of the target.
|
protected |
Vector of uncorrelated uncertainties.