19 #include "ThermalFISTConfig.h" 23 #ifdef ThermalFIST_USENAMESPACE 31 int main(
int argc,
char *argv[])
34 double radProton = 0.50;
36 radProton = atof(argv[1]);
73 for (
int i = 0; i < model.
TPS()->
Particles().size(); ++i) {
75 double mass = part.
Mass();
81 vector<FittedQuantity> quantities = ThermalModelFit::loadExpDataFromFile(
string(ThermalFIST_INPUT_FOLDER) +
"/data/ALICE-PbPb2.76TeV-0-5-1512.08046.dat");
108 printf(
"%15s%15s%15s\n",
"T [GeV]",
"R [fm]",
"chi2");
112 for (
double T = Tmin; T <= Tmax; T += dT) {
115 printf(
"%15lf%15lf%15lf\n", T, result.
R.
value, result.
chi2);
virtual void SetStrangenessChemicalPotential(double muS)
Set the strangeness chemical potential.
virtual void SetElectricChemicalPotential(double muQ)
Set the electric chemical potential.
virtual void SetBaryonChemicalPotential(double muB)
Set the baryon chemical potential.
virtual void SetStatistics(bool stats)
void SetParameter(const std::string &name, const FitParameter ¶m)
Sets the fit parameter with a given name.
void SetUseWidth(bool useWidth)
Sets whether finite resonance widths are used. Deprecated.
void SetQuantities(const std::vector< FittedQuantity > &inQuantities)
Same as SetData()
Class implementing the diagonal excluded-volume model.
Class containing the particle list.
double chi2
Value of the function.
int main(int argc, char *argv[])
Class implementing the thermal model fit procedure.
void PrintFitLog(std::string filename="", std::string comment="Thermal fit", bool asymm=false)
Prints the result of the fitting procedure to a file.
Class containing all information about a particle specie.
const std::vector< ThermalParticle > & Particles() const
Returns the vector of all particle species.
virtual void SetCharmChemicalPotential(double muC)
Set the charm chemical potential.
void SetParameterFitFlag(const std::string &name, bool toFit)
Sets whether the fit parameter with a given name is fitted.
double Mass() const
Particle's mass [GeV].
Structure holding information about parameters of a thermal fit.
ThermalModelFitParameters PerformFit(bool verbose=true, bool AsymmErrors=false)
The thermal fit procedure.
double mnucleon()
Nucleon's mass. Value as in UrQMD.
The main namespace where all classes and functions of the Thermal-FIST library reside.
void SetRadius(double rad)
Set the same excluded volume radius parameter for all species.
ThermalParticleSystem * TPS()
void SetParameterValue(const std::string &name, double value)
Sets the (initial) value for the fit parameter with a given name.