31int main(
int argc,
char *argv[])
52 params_chemical_freezeout.
T = 0.155;
53 params_chemical_freezeout.
muB = 0.;
54 params_chemical_freezeout.
V = 4700.;
60 params_chemical_freezeout = model.
Parameters();
68 vector<long long> pdgcodes_stable;
69 pdgcodes_stable.push_back(211);
70 pdgcodes_stable.push_back(321);
71 pdgcodes_stable.push_back(2212);
72 pdgcodes_stable.push_back(3122);
73 pdgcodes_stable.push_back(3222);
74 pdgcodes_stable.push_back(3312);
75 pdgcodes_stable.push_back(3334);
78 vector< pair<long long, long long> > ratios;
80 ratios.push_back(make_pair(1000010020, 2212));
81 ratios.push_back(make_pair(1000020030, 2212));
82 ratios.push_back(make_pair(1000010030, 2212));
83 ratios.push_back(make_pair(1000020040, 2212));
84 ratios.push_back(make_pair(1010010030, 2212));
85 ratios.push_back(make_pair(1010010040, 2212));
87 ratios.push_back(make_pair(313, -321));
88 ratios.push_back(make_pair(113, 211));
89 ratios.push_back(make_pair(3124, 3122));
90 ratios.push_back(make_pair(9010221, 211));
91 ratios.push_back(make_pair(2224, 2212));
95 FILE* fout_params = fopen(
"PCE.LHC.Parameters.dat",
"w");
96 fprintf(fout_params,
"%15s %15s %15s ",
"T[MeV]",
"V/Vch",
"S/Sch");
97 for (
int i = 0; i < pdgcodes_stable.size(); ++i) {
98 fprintf(fout_params,
"%15s ", (
"mu_" +
string(parts.
ParticleByPDG(pdgcodes_stable[i]).
Name())).c_str());
100 fprintf(fout_params,
"\n");
103 FILE* fout_ratios = fopen(
"PCE.LHC.Ratios.dat",
"w");
104 fprintf(fout_ratios,
"%15s ",
"T[MeV]");
105 for (
int i = 0; i < ratios.size(); ++i) {
108 fprintf(fout_ratios,
"\n");
111 double T0 = params_chemical_freezeout.
T;
116 double entropy_chemical_freezeout = modelpce.
ThermalModel()->EntropyDensity() * params_chemical_freezeout.
V;
119 for (
double T = T0; T >= Tmin - 1.e-9; T -= dT) {
120 printf(
"T = %lf MeV\n", T * 1.e3);
126 fprintf(fout_params,
"%15lf %15lf %15lf ",
132 for (
int i = 0; i < pdgcodes_stable.size(); ++i) {
133 fprintf(fout_params,
"%15lf ",
137 fprintf(fout_params,
"\n");
140 fprintf(fout_ratios,
"%15lf ", T * 1.e3);
141 for (
int i = 0; i < ratios.size(); ++i) {
142 fprintf(fout_ratios,
"%15E ",
146 fprintf(fout_ratios,
"\n");
const std::string & Name() const
Particle's name.
Class containing the particle list.
int PdgToId(long long pdgid) const
Transforms PDG ID to a 0-based particle id number.
const ThermalParticle & ParticleByPDG(long long pdgid) const
ThermalParticle object corresponding to particle species with a provided PDG ID.