77 Fatal(
"GrandCanonical::ParticleEnergyDensity",
"GrandCanonical object not fully initialized!!");
80 double degFactor = 2.*particle->
GetSpin() + 1.;
82 double d =
int(2.*particle->
GetSpin()) & 1 ? 1. : -1;
85 double postFactor = 0.;
93 postFactor += TMath::Power(-d,
n+1)/(
n*
n) *
97 return preFactor * postFactor;
103 Fatal(
"GrandCanonical::ParticleNumberDensity",
"GrandCanonical object not fully initialized!!");
105 double degFactor = 2.*particle->
GetSpin() + 1.;
107 double d =
int(2*particle->
GetSpin()) & 1 ? 1. : -1.;
110 double postFactor = 0.;
117 postFactor += TMath::Power(-d,
n+1)/
n *
121 return preFactor * postFactor;
128 Fatal(
"GrandCanonical::EnergyDensity",
"GrandCanonical object not fully initialized!!");
130 double meanEnergyDensity = 0.;
132 for(
int currParticle = 0; currParticle<database->
GetNParticles(); currParticle++) {
137 return meanEnergyDensity;
143 Fatal(
"GrandCanonical::BaryonDensity",
"GrandCanonical object not fully initialized!!");
145 double meanBaryonDensity = 0.;
147 for(
int currParticle = 0; currParticle<database->
GetNParticles(); currParticle++) {
151 return meanBaryonDensity;
157 Fatal(
"GrandCanonical::StrangeDensity",
"GrandCanonical object not fully initialized!!");
159 double meanStrangeDensity = 0.;
161 for(
int currParticle = 0; currParticle<database->
GetNParticles(); currParticle++) {
166 return meanStrangeDensity;
172 Fatal(
"GrandCanonical::ElectroDensity",
"GrandCanonical object not fully initialized!!");
174 double meanElectroDensity = 0.;
177 for(
int currParticle = 0; currParticle<database->
GetNParticles(); currParticle++) {
182 return meanElectroDensity;
188 Fatal(
"GrandCanonical::CharmDensity",
"GrandCanonical object not fully initialized!!");
190 double meanCharmDensity = 0.;
192 for(
int currParticle = 0; currParticle<database->
GetNParticles(); currParticle++) {
197 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()