13 const double deg = 16.0 + 3.0 * 12.0 * (7.0 / 8.0);
19 double EoS::s(
double e,
double nb,
double nq,
double ns) {
20 double T, mub, muq, mus,
p;
21 eos(e, nb, nq, ns, T, mub, muq, mus, p);
23 return (e + p - mub * nb - muq * nq - mus * ns) /
T;
29 #if defined TABLE || defined LAINE_CFO
32 double*
e =
new double[edat];
33 double* pGrid =
new double[edat];
34 double* tpGrid =
new double[edat];
35 double* muGrid =
new double[edat];
37 ifstream finput(fname.c_str(),
ios::in);
40 cerr <<
"can't open input file \"" << fname.c_str() <<
"\"" << endl;
44 while (!finput.eof()) {
46 finput >> e[edat] >> pGrid[edat] >> tpGrid[edat];
49 finput >> e[edat] >> pGrid[edat] >> tpGrid[edat] >> muGrid[edat];
51 if (pGrid[edat] < 0.) pGrid[edat] = 0.;
56 gp =
new TGraph(edat, e, pGrid);
57 gT =
new TGraph(edat, e, tpGrid);
58 gmu =
new TGraph(edat, e, muGrid);
77 return (gp->Eval(e * 1.1) - gp->Eval(e)) / (0.1 * e);
88 (16 + 0.5 * 21.0 * 2.5) * pow(
C_PI, 2) / 30.0 / pow(0.197326968, 3);
89 return e > 0. ? 1.0 * pow(e / cnst, 0.25) : 0.;