Thermal-FIST 1.5
Package for hadron resonance gas model applications
Loading...
Searching...
No Matches
thermalfist::ThermalModelFitParameters Struct Reference

Structure holding information about parameters of a thermal fit. More...

#include <ThermalModelFitParameters.h>

Public Member Functions

 ThermalModelFitParameters (const ThermalModelParameters &params=ThermalModelParameters())
 Default constructor.
 
 ThermalModelFitParameters (const ThermalModelFitParameters &op)
 Copy constructor.
 
ThermalModelFitParametersoperator= (const ThermalModelFitParameters &op)
 Assignment operator.
 
void FillParameterList ()
 Fill ParameterList with pointers to all the parameters.
 
int IndexByName (const std::string &name) const
 Find the index of the parameter with a given name in the ParameterList.
 
FitParameter GetParameter (const std::string &name) const
 Get the FitParameter by its name.
 
FitParameterGetParameter (const std::string &name)
 
FitParameter GetParameter (const int index) const
 Get the FitParameter by its index.
 
FitParameterGetParameter (const int index)
 
void SetParameter (const std::string &name, const FitParameter &param)
 Set the FitParameter with a given name from a copy.
 
void SetParameter (const std::string &name, double val, double err, double xmin, double xmax)
 
void SetParameterValue (const std::string &name, double value)
 Set the value of the FitParameter with a given name.
 
void SetParameterFitFlag (const std::string &name, bool toFit)
 Set whether the FitParameter with a given name should be fitted.
 
ThermalModelParameters GetThermalModelParameters ()
 Return ThermalModelParameters corresponding to the this ThermalModelFitParameters.
 

Public Attributes

bool GCE
 0 - CE, 1 - GCE
 
FitParameter T
 All the fit parameters.
 
FitParameter muB
 
FitParameter muS
 
FitParameter muQ
 
FitParameter muC
 
FitParameter gammaq
 
FitParameter gammaS
 
FitParameter gammaC
 
FitParameter R
 
FitParameter Rc
 
FitParameter Tkin
 Since version 1.3: Kinetic freeze-out temperature.
 
std::vector< FitParameter * > ParameterList
 Vector of pointer to all the parameters.
 
int B
 Total charges (for CE)
 
int S
 
int Q
 
int C
 
double chi2
 Value of the \( \chi^2 \) function.
 
double chi2ndf
 Reduced \( \chi^2 \).
 
int ndf
 Number of degrees of freedom.
 

Static Public Attributes

static const int ParameterCount = 11
 

Detailed Description

Structure holding information about parameters of a thermal fit.

Examples
BagModelFit.cpp, cpc2-chi2-vs-T.cpp, and cpc3-chi2NEQ.cpp.

Definition at line 69 of file ThermalModelFitParameters.h.

Constructor & Destructor Documentation

◆ ThermalModelFitParameters() [1/2]

thermalfist::ThermalModelFitParameters::ThermalModelFitParameters ( const ThermalModelParameters & params = ThermalModelParameters())

Default constructor.

Constructs fit parameters from given thermodynamic parameters

Parameters
paramsThe thermodynamic parameters of an HRG

Definition at line 34 of file ThermalModelFitParameters.cpp.

◆ ThermalModelFitParameters() [2/2]

thermalfist::ThermalModelFitParameters::ThermalModelFitParameters ( const ThermalModelFitParameters & op)

Copy constructor.

Definition at line 57 of file ThermalModelFitParameters.cpp.

Member Function Documentation

◆ FillParameterList()

void thermalfist::ThermalModelFitParameters::FillParameterList ( )

Fill ParameterList with pointers to all the parameters.

Definition at line 94 of file ThermalModelFitParameters.cpp.

◆ GetParameter() [1/4]

FitParameter & thermalfist::ThermalModelFitParameters::GetParameter ( const int index)

Definition at line 146 of file ThermalModelFitParameters.cpp.

◆ GetParameter() [2/4]

FitParameter thermalfist::ThermalModelFitParameters::GetParameter ( const int index) const

Get the FitParameter by its index.

Parameters
indexFitParameter index
Returns
FitParameter

Definition at line 138 of file ThermalModelFitParameters.cpp.

◆ GetParameter() [3/4]

FitParameter & thermalfist::ThermalModelFitParameters::GetParameter ( const std::string & name)

Definition at line 129 of file ThermalModelFitParameters.cpp.

◆ GetParameter() [4/4]

FitParameter thermalfist::ThermalModelFitParameters::GetParameter ( const std::string & name) const

Get the FitParameter by its name.

Parameters
nameFitParameter name
Returns
FitParameter

Definition at line 120 of file ThermalModelFitParameters.cpp.

◆ GetThermalModelParameters()

ThermalModelParameters thermalfist::ThermalModelFitParameters::GetThermalModelParameters ( )

Return ThermalModelParameters corresponding to the this ThermalModelFitParameters.

Definition at line 182 of file ThermalModelFitParameters.cpp.

◆ IndexByName()

int thermalfist::ThermalModelFitParameters::IndexByName ( const std::string & name) const

Find the index of the parameter with a given name in the ParameterList.

Definition at line 111 of file ThermalModelFitParameters.cpp.

◆ operator=()

ThermalModelFitParameters & thermalfist::ThermalModelFitParameters::operator= ( const ThermalModelFitParameters & op)

Assignment operator.

Definition at line 67 of file ThermalModelFitParameters.cpp.

◆ SetParameter() [1/2]

void thermalfist::ThermalModelFitParameters::SetParameter ( const std::string & name,
const FitParameter & param )

Set the FitParameter with a given name from a copy.

Definition at line 154 of file ThermalModelFitParameters.cpp.

◆ SetParameter() [2/2]

void thermalfist::ThermalModelFitParameters::SetParameter ( const std::string & name,
double val,
double err,
double xmin,
double xmax )

Set the FitParameter with a given name

Parameters
valFitParameter value
errFitParameter error
xminFitParameter value lower bound
xmaxFitParameter value upper bound

Definition at line 161 of file ThermalModelFitParameters.cpp.

◆ SetParameterFitFlag()

void thermalfist::ThermalModelFitParameters::SetParameterFitFlag ( const std::string & name,
bool toFit )

Set whether the FitParameter with a given name should be fitted.

Definition at line 175 of file ThermalModelFitParameters.cpp.

◆ SetParameterValue()

void thermalfist::ThermalModelFitParameters::SetParameterValue ( const std::string & name,
double value )

Set the value of the FitParameter with a given name.

Definition at line 168 of file ThermalModelFitParameters.cpp.

Member Data Documentation

◆ B

int thermalfist::ThermalModelFitParameters::B

Total charges (for CE)

Definition at line 84 of file ThermalModelFitParameters.h.

◆ C

int thermalfist::ThermalModelFitParameters::C

Definition at line 84 of file ThermalModelFitParameters.h.

◆ chi2

double thermalfist::ThermalModelFitParameters::chi2

Value of the \( \chi^2 \) function.

Examples
BagModelFit.cpp, cpc2-chi2-vs-T.cpp, and cpc3-chi2NEQ.cpp.

Definition at line 87 of file ThermalModelFitParameters.h.

◆ chi2ndf

double thermalfist::ThermalModelFitParameters::chi2ndf

Reduced \( \chi^2 \).

Examples
cpc2-chi2-vs-T.cpp, and cpc3-chi2NEQ.cpp.

Definition at line 90 of file ThermalModelFitParameters.h.

◆ gammaC

FitParameter thermalfist::ThermalModelFitParameters::gammaC

Definition at line 75 of file ThermalModelFitParameters.h.

◆ gammaq

FitParameter thermalfist::ThermalModelFitParameters::gammaq
Examples
cpc3-chi2NEQ.cpp.

Definition at line 75 of file ThermalModelFitParameters.h.

◆ gammaS

FitParameter thermalfist::ThermalModelFitParameters::gammaS
Examples
cpc3-chi2NEQ.cpp.

Definition at line 75 of file ThermalModelFitParameters.h.

◆ GCE

bool thermalfist::ThermalModelFitParameters::GCE

0 - CE, 1 - GCE

Definition at line 72 of file ThermalModelFitParameters.h.

◆ muB

FitParameter thermalfist::ThermalModelFitParameters::muB
Examples
cpc3-chi2NEQ.cpp.

Definition at line 75 of file ThermalModelFitParameters.h.

◆ muC

FitParameter thermalfist::ThermalModelFitParameters::muC

Definition at line 75 of file ThermalModelFitParameters.h.

◆ muQ

FitParameter thermalfist::ThermalModelFitParameters::muQ

Definition at line 75 of file ThermalModelFitParameters.h.

◆ muS

FitParameter thermalfist::ThermalModelFitParameters::muS

Definition at line 75 of file ThermalModelFitParameters.h.

◆ ndf

int thermalfist::ThermalModelFitParameters::ndf

Number of degrees of freedom.

Examples
cpc2-chi2-vs-T.cpp.

Definition at line 93 of file ThermalModelFitParameters.h.

◆ ParameterCount

const int thermalfist::ThermalModelFitParameters::ParameterCount = 11
static

Definition at line 70 of file ThermalModelFitParameters.h.

◆ ParameterList

std::vector<FitParameter*> thermalfist::ThermalModelFitParameters::ParameterList

Vector of pointer to all the parameters.

Definition at line 81 of file ThermalModelFitParameters.h.

◆ Q

int thermalfist::ThermalModelFitParameters::Q

Definition at line 84 of file ThermalModelFitParameters.h.

◆ R

FitParameter thermalfist::ThermalModelFitParameters::R

◆ Rc

FitParameter thermalfist::ThermalModelFitParameters::Rc

Definition at line 75 of file ThermalModelFitParameters.h.

◆ S

int thermalfist::ThermalModelFitParameters::S

Definition at line 84 of file ThermalModelFitParameters.h.

◆ T

FitParameter thermalfist::ThermalModelFitParameters::T

All the fit parameters.

Examples
cpc3-chi2NEQ.cpp.

Definition at line 75 of file ThermalModelFitParameters.h.

◆ Tkin

FitParameter thermalfist::ThermalModelFitParameters::Tkin

Since version 1.3: Kinetic freeze-out temperature.

Definition at line 78 of file ThermalModelFitParameters.h.


The documentation for this struct was generated from the following files: