Thermal-FIST  1.3
Package for hadron resonance gas model applications
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
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. More...
 
 ThermalModelFitParameters (const ThermalModelFitParameters &op)
 Copy constructor. More...
 
ThermalModelFitParametersoperator= (const ThermalModelFitParameters &op)
 Assignment operator. More...
 
void FillParameterList ()
 Fill ParameterList with pointers to all the parameters. More...
 
int IndexByName (const std::string &name) const
 Find the index of the parameter with a given name in the ParameterList. More...
 
void SetParameter (const std::string &name, const FitParameter &param)
 Set the FitParameter with a given name from a copy. More...
 
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. More...
 
void SetParameterFitFlag (const std::string &name, bool toFit)
 Set whether the FitParameter with a given name should be fitted. More...
 
ThermalModelParameters GetThermalModelParameters ()
 Return ThermalModelParameters corresponding to the this ThermalModelFitParameters. More...
 
FitParameter GetParameter (const std::string &name) const
 Get the FitParameter by its name. More...
 
FitParameterGetParameter (const std::string &name)
 
FitParameter GetParameter (const int index) const
 Get the FitParameter by its index. More...
 
FitParameterGetParameter (const int index)
 

Public Attributes

bool GCE
 0 - CE, 1 - GCE More...
 
FitParameter T
 All the fit parameters. More...
 
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. More...
 
std::vector< FitParameter * > ParameterList
 Vector of pointer to all the parameters. More...
 
int B
 Total charges (for CE) More...
 
int S
 
int Q
 
int C
 
double chi2
 Value of the \( \chi^2 \) function. More...
 
double chi2ndf
 Reduced \( \chi^2 \). More...
 
int ndf
 Number of degrees of freedom. More...
 

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

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.

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

Copy constructor.

Definition at line 57 of file ThermalModelFitParameters.cpp.

Member Function Documentation

void thermalfist::ThermalModelFitParameters::FillParameterList ( )

Fill ParameterList with pointers to all the parameters.

Definition at line 94 of file ThermalModelFitParameters.cpp.

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.

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

Definition at line 129 of file ThermalModelFitParameters.cpp.

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.

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

Definition at line 146 of file ThermalModelFitParameters.cpp.

ThermalModelParameters thermalfist::ThermalModelFitParameters::GetThermalModelParameters ( )

Return ThermalModelParameters corresponding to the this ThermalModelFitParameters.

Definition at line 182 of file ThermalModelFitParameters.cpp.

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.

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

Assignment operator.

Definition at line 67 of file ThermalModelFitParameters.cpp.

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.

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.

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.

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

int thermalfist::ThermalModelFitParameters::B

Total charges (for CE)

Definition at line 84 of file ThermalModelFitParameters.h.

int thermalfist::ThermalModelFitParameters::C

Definition at line 84 of file ThermalModelFitParameters.h.

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.

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.

FitParameter thermalfist::ThermalModelFitParameters::gammaC

Definition at line 75 of file ThermalModelFitParameters.h.

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

Definition at line 75 of file ThermalModelFitParameters.h.

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

Definition at line 75 of file ThermalModelFitParameters.h.

bool thermalfist::ThermalModelFitParameters::GCE

0 - CE, 1 - GCE

Definition at line 72 of file ThermalModelFitParameters.h.

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

Definition at line 75 of file ThermalModelFitParameters.h.

FitParameter thermalfist::ThermalModelFitParameters::muC

Definition at line 75 of file ThermalModelFitParameters.h.

FitParameter thermalfist::ThermalModelFitParameters::muQ

Definition at line 75 of file ThermalModelFitParameters.h.

FitParameter thermalfist::ThermalModelFitParameters::muS

Definition at line 75 of file ThermalModelFitParameters.h.

int thermalfist::ThermalModelFitParameters::ndf

Number of degrees of freedom.

Examples:
cpc2-chi2-vs-T.cpp.

Definition at line 93 of file ThermalModelFitParameters.h.

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

Definition at line 70 of file ThermalModelFitParameters.h.

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

Vector of pointer to all the parameters.

Definition at line 81 of file ThermalModelFitParameters.h.

int thermalfist::ThermalModelFitParameters::Q

Definition at line 84 of file ThermalModelFitParameters.h.

FitParameter thermalfist::ThermalModelFitParameters::R
FitParameter thermalfist::ThermalModelFitParameters::Rc

Definition at line 75 of file ThermalModelFitParameters.h.

int thermalfist::ThermalModelFitParameters::S

Definition at line 84 of file ThermalModelFitParameters.h.

FitParameter thermalfist::ThermalModelFitParameters::T

All the fit parameters.

Examples:
cpc3-chi2NEQ.cpp.

Definition at line 75 of file ThermalModelFitParameters.h.

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: