26 nH.value = model->CalculateHadronDensity();
27 rhoB.value = model->CalculateBaryonDensity();
28 rhoQ.value = model->CalculateChargeDensity();
29 en.value = model->CalculateEnergyDensity();
30 entropy.value = model->CalculateEntropyDensity();
31 pressure.value = model->CalculatePressure();
140 if (index >= 0 && index <
static_cast<int>(
ParameterList.size()))
148 if (index >= 0 && index <
static_cast<int>(
ParameterList.size()))
map< string, double > params
Abstract base class for an HRG model implementation.
const ThermalModelParameters & Parameters() const
constexpr double Pi()
Pi constant.
The main namespace where all classes and functions of the Thermal-FIST library reside.
Structure for an arbitrary fit parameter.
ThermalModelFitParametersExtended()
FitParameter nH
Auxiliary quantities.
ThermalModelParameters GetThermalModelParameters()
Return ThermalModelParameters corresponding to the this ThermalModelFitParameters.
void SetParameter(const std::string &name, const FitParameter ¶m)
Set the FitParameter with a given name from a copy.
int B
Total charges (for CE)
int ndf
Number of degrees of freedom.
FitParameter Tkin
Since version 1.3: Kinetic freeze-out temperature.
double chi2
Value of the function.
void FillParameterList()
Fill ParameterList with pointers to all the parameters.
FitParameter T
All the fit parameters.
int IndexByName(const std::string &name) const
Find the index of the parameter with a given name in the ParameterList.
void SetParameterFitFlag(const std::string &name, bool toFit)
Set whether the FitParameter with a given name should be fitted.
ThermalModelFitParameters & operator=(const ThermalModelFitParameters &op)
Assignment operator.
std::vector< FitParameter * > ParameterList
Vector of pointer to all the parameters.
void SetParameterValue(const std::string &name, double value)
Set the value of the FitParameter with a given name.
FitParameter GetParameter(const std::string &name) const
Get the FitParameter by its name.
ThermalModelFitParameters(const ThermalModelParameters ¶ms=ThermalModelParameters())
Default constructor.
Structure containing all thermal parameters of the model.