CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
NAStrangeDensity Class Reference

#include <StrangeDensity.h>

Public Member Functions

 NAStrangeDensity ()
 
void SetBaryonPotential (double value)
 
void SetNMax (int value)
 
void SetStrangePotential (double value)
 
void SetTemperature (double value)
 
double StrangenessDensity (DatabasePDG *database)
 
 ~NAStrangeDensity ()
 

Private Member Functions

double ParticleNumberDensity (ParticlePDG *particle)
 

Private Attributes

double fBaryonPotential
 
int fNMax
 
double fStrangePotential
 
double fTemperature
 

Detailed Description

Definition at line 23 of file StrangeDensity.h.

Constructor & Destructor Documentation

◆ NAStrangeDensity()

NAStrangeDensity::NAStrangeDensity ( )

Definition at line 4 of file StrangeDensity.cc.

4  {
5  fTemperature = 0. * GeV;
6  fBaryonPotential = 0. * GeV;
7  fStrangePotential = 0. * GeV;
8  fNMax = 5;
9 }

References fBaryonPotential, fNMax, fStrangePotential, fTemperature, and GeV.

◆ ~NAStrangeDensity()

NAStrangeDensity::~NAStrangeDensity ( )
inline

Definition at line 36 of file StrangeDensity.h.

36 {};

Member Function Documentation

◆ ParticleNumberDensity()

double NAStrangeDensity::ParticleNumberDensity ( ParticlePDG particle)
private

Definition at line 22 of file StrangeDensity.cc.

22  {
23  double particleMass = pDef->GetMass();
24  int particleStrangeness = int(pDef->GetStrangeness());
25  double particleBaryon = pDef->GetBaryonNumber();
26  //compute chemical potential
27  double particleChemPotential = fBaryonPotential * particleBaryon + fStrangePotential * particleStrangeness;
28  //compute degeneracy factor
29  double particleDegFactor = 2 * pDef->GetSpin() + 1.; // IA: In ParticlePDG() GetSpin() returns spin not 2*spin !!
30  double d = 1.; //for fermions
31  if (int(2 * pDef->GetSpin()) % 2 == 0) //it gives 0 for Spin = 0,2,4,.. and it gives 1 for Spin = 1,3,7,
32  d = -1; //for bosons
33 
34  double prefactor;
35  double postfactor;
36  prefactor =
37  (particleDegFactor * particleMass * particleMass * fTemperature / hbarc / hbarc / hbarc) / (2. * N_PI * N_PI);
38  postfactor = 0.;
39 
40  for (int n = 1; n <= fNMax; n++) {
41  postfactor += pow(-d, n + 1) / (n)*exp(n * particleChemPotential / fTemperature) *
42  HankelKn(2, n * particleMass / fTemperature);
43  }
44  return prefactor * postfactor;
45 }

References ztail::d, JetChargeProducer_cfi::exp, fBaryonPotential, fNMax, fStrangePotential, fTemperature, ParticlePDG::GetBaryonNumber(), ParticlePDG::GetMass(), ParticlePDG::GetSpin(), ParticlePDG::GetStrangeness(), HankelKn(), hbarc, createfilelist::int, dqmiodumpmetadata::n, N_PI, and funct::pow().

Referenced by StrangenessDensity().

◆ SetBaryonPotential()

void NAStrangeDensity::SetBaryonPotential ( double  value)
inline

◆ SetNMax()

void NAStrangeDensity::SetNMax ( int  value)
inline

Definition at line 42 of file StrangeDensity.h.

42  {
43  fNMax = value;
44  if (fNMax < 1)
45  fNMax = 1;
46  }

References fNMax, and relativeConstraints::value.

◆ SetStrangePotential()

void NAStrangeDensity::SetStrangePotential ( double  value)
inline

◆ SetTemperature()

void NAStrangeDensity::SetTemperature ( double  value)
inline

Definition at line 39 of file StrangeDensity.h.

39 { fTemperature = value; }

References fTemperature, and relativeConstraints::value.

Referenced by NAStrangePotential::CalculateStrangeDensity().

◆ StrangenessDensity()

double NAStrangeDensity::StrangenessDensity ( DatabasePDG database)

Definition at line 11 of file StrangeDensity.cc.

11  {
12  double meanStrangenessDensity = 0.;
13  for (int particleIndex = 0; particleIndex < database->GetNParticles(); particleIndex++) {
14  ParticlePDG* particle = database->GetPDGParticleByIndex(particleIndex);
15  double particleDensity = ParticleNumberDensity(particle);
16  meanStrangenessDensity += particleDensity * particle->GetStrangeness();
17  }
18  return meanStrangenessDensity;
19 }

References DatabasePDG::GetNParticles(), DatabasePDG::GetPDGParticleByIndex(), ParticlePDG::GetStrangeness(), and ParticleNumberDensity().

Referenced by NAStrangePotential::CalculateStrangeDensity().

Member Data Documentation

◆ fBaryonPotential

double NAStrangeDensity::fBaryonPotential
private

Definition at line 27 of file StrangeDensity.h.

Referenced by NAStrangeDensity(), ParticleNumberDensity(), and SetBaryonPotential().

◆ fNMax

int NAStrangeDensity::fNMax
private

Definition at line 29 of file StrangeDensity.h.

Referenced by NAStrangeDensity(), ParticleNumberDensity(), and SetNMax().

◆ fStrangePotential

double NAStrangeDensity::fStrangePotential
private

Definition at line 28 of file StrangeDensity.h.

Referenced by NAStrangeDensity(), ParticleNumberDensity(), and SetStrangePotential().

◆ fTemperature

double NAStrangeDensity::fTemperature
private

Definition at line 26 of file StrangeDensity.h.

Referenced by NAStrangeDensity(), ParticleNumberDensity(), and SetTemperature().

NAStrangeDensity::fBaryonPotential
double fBaryonPotential
Definition: StrangeDensity.h:27
dqmiodumpmetadata.n
n
Definition: dqmiodumpmetadata.py:28
NAStrangeDensity::fTemperature
double fTemperature
Definition: StrangeDensity.h:26
DatabasePDG::GetNParticles
int GetNParticles(bool all=kFALSE)
Definition: DatabasePDG.cc:582
DatabasePDG::GetPDGParticleByIndex
ParticlePDG * GetPDGParticleByIndex(int index)
Definition: DatabasePDG.cc:198
ParticlePDG::GetStrangeness
double GetStrangeness()
Definition: ParticlePDG.h:87
NAStrangeDensity::fNMax
int fNMax
Definition: StrangeDensity.h:29
ParticlePDG
Definition: ParticlePDG.h:24
HankelKn
double HankelKn(int n, double x)
Definition: HankelFunction.cc:202
N_PI
const double N_PI
Definition: MathUtil.h:19
NAStrangeDensity::fStrangePotential
double fStrangePotential
Definition: StrangeDensity.h:28
GeV
const double GeV
Definition: MathUtil.h:16
createfilelist.int
int
Definition: createfilelist.py:10
hbarc
const double hbarc
Definition: MathUtil.h:18
relativeConstraints.value
value
Definition: relativeConstraints.py:53
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:30
ztail.d
d
Definition: ztail.py:151
JetChargeProducer_cfi.exp
exp
Definition: JetChargeProducer_cfi.py:6
NAStrangeDensity::ParticleNumberDensity
double ParticleNumberDensity(ParticlePDG *particle)
Definition: StrangeDensity.cc:22