27 double baryonPotential,
28 double strangePotential,
29 double electroPotential,
30 double charmPotential) {
87 Fatal(
"GrandCanonical::ParticleEnergyDensity",
"GrandCanonical object not fully initialized!!");
90 double degFactor = 2. * particle->
GetSpin() + 1.;
92 double d =
int(2. * particle->
GetSpin()) & 1 ? 1. : -1;
96 double postFactor = 0.;
103 TMath::Power(-d,
n + 1) / (
n *
n) * TMath::Exp(
n * potential /
fTemperature) *
106 return preFactor * postFactor;
112 Fatal(
"GrandCanonical::ParticleNumberDensity",
"GrandCanonical object not fully initialized!!");
114 double degFactor = 2. * particle->
GetSpin() + 1.;
116 double d =
int(2 * particle->
GetSpin()) & 1 ? 1. : -1.;
120 double postFactor = 0.;
128 return preFactor * postFactor;
134 Fatal(
"GrandCanonical::EnergyDensity",
"GrandCanonical object not fully initialized!!");
136 double meanEnergyDensity = 0.;
138 for (
int currParticle = 0; currParticle < database->
GetNParticles(); currParticle++) {
143 return meanEnergyDensity;
149 Fatal(
"GrandCanonical::BaryonDensity",
"GrandCanonical object not fully initialized!!");
151 double meanBaryonDensity = 0.;
153 for (
int currParticle = 0; currParticle < database->
GetNParticles(); currParticle++) {
157 return meanBaryonDensity;
163 Fatal(
"GrandCanonical::StrangeDensity",
"GrandCanonical object not fully initialized!!");
165 double meanStrangeDensity = 0.;
167 for (
int currParticle = 0; currParticle < database->
GetNParticles(); currParticle++) {
172 return meanStrangeDensity;
178 Fatal(
"GrandCanonical::ElectroDensity",
"GrandCanonical object not fully initialized!!");
180 double meanElectroDensity = 0.;
183 for (
int currParticle = 0; currParticle < database->
GetNParticles(); currParticle++) {
188 return meanElectroDensity;
194 Fatal(
"GrandCanonical::CharmDensity",
"GrandCanonical object not fully initialized!!");
196 double meanCharmDensity = 0.;
198 for (
int currParticle = 0; currParticle < database->
GetNParticles(); currParticle++) {
203 return meanCharmDensity;
double ParticleEnergyDensity(ParticlePDG *particle)
int GetNParticles(bool all=kFALSE)
double ParticleNumberDensity(ParticlePDG *particle)
double ElectroPotential()
double HankelKn(int n, double x)
double EnergyDensity(DatabasePDG *database)
double BaryonDensity(DatabasePDG *database)
ParticlePDG * GetPDGParticleByIndex(int index)
double GetElectricCharge()
double CharmDensity(DatabasePDG *database)
double HankelK1(double x)
double StrangeDensity(DatabasePDG *database)
double ElectroDensity(DatabasePDG *database)
double StrangePotential()