An example of doing the thermal fits to hadron yield data.
Performs thermal fits to ALICE Pb-Pb 0-10% data with the HRG model with excluded-volume corrections with a bag model scaling of hadron eigenvolumes.
These calculations reproduce the results published in arXiv:1512.08046
Calculation proceeds in two steps:
- The global fit is performed obtaining the temperature and volume that minimize \(\chi^2\).
- The temperature profile of \(\chi^2\) by minimizing it a different fixed temperature values in a loop.
Usage:
1 BagModelFit <rp> <Tmin> <Tmax> <dT>
<rp> is the proton radius parameter (in fm)
#include <string.h>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <ctime>
#include <cstdio>
#include "ThermalFISTConfig.h"
#ifdef ThermalFIST_USENAMESPACE
#endif
int main(
int argc,
char *argv[])
{
double radProton = 0.50;
if (argc>1)
radProton = atof(argv[1]);
double Tmin = 0.100;
if (argc>2)
Tmin = atof(argv[2]);
double Tmax = 0.301;
if (argc>3)
Tmax = atof(argv[3]);
double dT = 0.001;
if (argc>4)
dT = atof(argv[4]);
double mass = part.
Mass();
}
vector<FittedQuantity> quantities = ThermalModelFit::loadExpDataFromFile(string(ThermalFIST_INPUT_FOLDER) + "/data/ALICE-PbPb2.76TeV-0-5-1512.08046.dat");
double Rinit = 10.0;
double Rdelta = 1.0;
double Rmin = 0.0;
double Rmax = 30.0;
printf("%15s%15s%15s\n", "T [GeV]", "R [fm]", "chi2");
for (double T = Tmin; T <= Tmax; T += dT) {
printf(
"%15lf%15lf%15lf\n", T, result.
R.
value, result.
chi2);
}
return 0;
}