Nanga Parbat 1.1.0
A TMD fitting framework
Public Member Functions | Private Attributes | List of all members
NangaParbat::MeanReplica Class Reference

Parameterisation derived from the "Parameterisation" mother class to compute the mean replica of a Monte Carlo set. More...

#include <meanreplica.h>

Inheritance diagram for NangaParbat::MeanReplica:
NangaParbat::Parameterisation

Public Member Functions

 MeanReplica (std::string const &InputFolder, std::string const &FitConfigFile, std::vector< int > const &discard={})
 The "Parameterisation" constructor. More...
 
 ~MeanReplica ()
 The "MeanReplica" destructor. More...
 
double Evaluate (double const &x, double const &bT, double const &zeta, int const &ifunc) const
 Function that returns the value of one of the functions. More...
 
std::string LatexFormula () const
 Function that returns a string with the formula of the non-perturbative function(s) in LaTex format. More...
 
std::vector< std::string > GetParameterNames () const
 Function that returns a vector of strings containing the names of the parameters in LaTex format. More...
 
- Public Member Functions inherited from NangaParbat::Parameterisation
 Parameterisation (std::string const &name="", int const &nfuncs=0, std::vector< double > pars={}, bool const &anders=false)
 The "Parameterisation" constructor. More...
 
virtual ~Parameterisation ()
 The "Parameterisation" destructor. More...
 
virtual void SetParameters (std::vector< double > const &pars)
 Function that sets the free parameters of the parameterisation. More...
 
virtual void EvaluateOnGrid ()
 
std::function< double(double const &, double const &, double const &, int const &)> Function () const
 Function that returns the parametrisation in the form of a std::function. More...
 
virtual double Derive (double const &x, double const &b, double const &zeta, int const &ifunc, int const &ipar) const
 Virtual function that returns the value of the derivative of one of the functions. More...
 
virtual void DeriveOnGrid ()
 
std::function< double(double const &, double const &, double const &, int const &, int const &)> Derivative () const
 Function that returns the derivative of the parametrisation in the form of a std::function. More...
 
virtual std::string GetDescription () const
 Virtual function that returns a short description of the parametrisation. More...
 
virtual std::function< std::map< int, double >(double const &, double const &)> LHAPDF_Function () const
 
virtual std::function< std::map< int, double >(double const &, double const &)> LHAPDF_Derivative (int) const
 
virtual std::function< apfel::Set< apfel::Distribution >(double const &)> DistributionFunction () const
 
virtual std::function< apfel::Set< apfel::Distribution >(double const &)> DistributionDerivative (int) const
 
std::string GetName () const
 
int GetNumberOfFunctions () const
 
virtual std::vector< double > GetParameters () const
 
virtual int GetParameterNumber () const
 
bool HasGradient () const
 

Private Attributes

NangaParbat::Parameterisation_NPFunc
 
std::vector< NangaParbat::Parameterisation * > _NPFuncv
 
std::unique_ptr< apfel::QGrid< double > > _xg
 
std::unique_ptr< apfel::QGrid< double > > _bTg
 
std::unique_ptr< apfel::QGrid< double > > _zetag
 
std::vector< std::vector< std::vector< double > > > _fNP1g
 
std::vector< std::vector< std::vector< double > > > _fNP2g
 

Additional Inherited Members

- Protected Attributes inherited from NangaParbat::Parameterisation
std::string _name
 Name of the parameterisation. More...
 
int _nfuncs
 Number of output functions. More...
 
std::vector< double > _pars
 The vector of free parameters. More...
 
bool _anders
 Whether the parametersation provides analytic derivatives. More...
 

Detailed Description

Parameterisation derived from the "Parameterisation" mother class to compute the mean replica of a Monte Carlo set.

Examples
ComputeMeanReplica.cc.

Constructor & Destructor Documentation

◆ MeanReplica()

NangaParbat::MeanReplica::MeanReplica ( std::string const &  InputFolder,
std::string const &  FitConfigFile,
std::vector< int > const &  discard = {} 
)

The "Parameterisation" constructor.

Parameters
InputFolderpath to the folder where the replicas are
FitConfigFileconfiguration file in YAML format
discardvector of replicas to be discarded

◆ ~MeanReplica()

NangaParbat::MeanReplica::~MeanReplica ( )

The "MeanReplica" destructor.

Member Function Documentation

◆ Evaluate()

double NangaParbat::MeanReplica::Evaluate ( double const &  x,
double const &  bT,
double const &  zeta,
int const &  ifunc 
) const
virtual

Function that returns the value of one of the functions.

Parameters
xmomentum fraction
bTimpact parameter
zetarapidity scale ζ
ifuncindex of the function
Returns
it returns the value of the ifunc-th function at (x, b, ζ)

Reimplemented from NangaParbat::Parameterisation.

◆ GetParameterNames()

std::vector< std::string > NangaParbat::MeanReplica::GetParameterNames ( ) const
virtual

Function that returns a vector of strings containing the names of the parameters in LaTex format.

Reimplemented from NangaParbat::Parameterisation.

◆ LatexFormula()

std::string NangaParbat::MeanReplica::LatexFormula ( ) const
virtual

Function that returns a string with the formula of the non-perturbative function(s) in LaTex format.

Reimplemented from NangaParbat::Parameterisation.

Member Data Documentation

◆ _bTg

std::unique_ptr<apfel::QGrid<double> > NangaParbat::MeanReplica::_bTg
private

◆ _fNP1g

std::vector<std::vector<std::vector<double> > > NangaParbat::MeanReplica::_fNP1g
private

◆ _fNP2g

std::vector<std::vector<std::vector<double> > > NangaParbat::MeanReplica::_fNP2g
private

◆ _NPFunc

NangaParbat::Parameterisation* NangaParbat::MeanReplica::_NPFunc
private

◆ _NPFuncv

std::vector<NangaParbat::Parameterisation*> NangaParbat::MeanReplica::_NPFuncv
private

◆ _xg

std::unique_ptr<apfel::QGrid<double> > NangaParbat::MeanReplica::_xg
private

◆ _zetag

std::unique_ptr<apfel::QGrid<double> > NangaParbat::MeanReplica::_zetag
private

The documentation for this class was generated from the following file: