]>
Commit | Line | Data |
---|---|---|
03896fc4 | 1 | ////////////////////////////////////////////////////////////////////////////////// |
2 | // // | |
3 | // Nikolai Amelin, Ludmila Malinina, Timur Pocheptsov (C) JINR/Dubna // | |
4 | // amelin@sunhe.jinr.ru, malinina@sunhe.jinr.ru, pocheptsov@sunhe.jinr.ru // | |
5 | // November. 2, 2005 // | |
6 | // // | |
7 | ////////////////////////////////////////////////////////////////////////////////// | |
b1c2e580 | 8 | |
b7d1d891 | 9 | #ifndef GRANDCANONICAL_H |
10 | #define GRANDCANONICAL_H | |
b1c2e580 | 11 | |
b7d1d891 | 12 | class DatabasePDG; |
13 | class ParticlePDG; | |
b1c2e580 | 14 | |
15 | class GrandCanonical { | |
b1c2e580 | 16 | public: |
17 | GrandCanonical(); | |
18 | GrandCanonical(Int_t nmax, Double_t temperature, Double_t baryonPotential, Double_t strangePotential, Double_t electroPotential); | |
19 | ~GrandCanonical(); | |
20 | ||
21 | void Temperature(Double_t value); | |
b7d1d891 | 22 | Double_t Temperature() const { return fTemperature; } |
b1c2e580 | 23 | void BaryonPotential(Double_t value); |
b7d1d891 | 24 | Double_t BaryonPotential() const { return fBaryonPotential; } |
b1c2e580 | 25 | void StrangePotential(Double_t value); |
b7d1d891 | 26 | Double_t StrangePotential() const { return fStrangePotential; } |
b1c2e580 | 27 | void ElectroPotential(Double_t value); |
b7d1d891 | 28 | Double_t ElectroPotential() const { return fElectroPotential; } |
b1c2e580 | 29 | void NMax(Int_t value); |
b7d1d891 | 30 | Int_t NMax() const { return fNMax; } |
b1c2e580 | 31 | |
32 | // compute of system baryon number, system strangeness, system charge and | |
33 | // system energy | |
34 | // calculate system energy density | |
b7d1d891 | 35 | Double_t EnergyDensity(DatabasePDG *const database); |
b1c2e580 | 36 | // calculate system baryon density |
b7d1d891 | 37 | Double_t BaryonDensity(DatabasePDG *const database); |
b1c2e580 | 38 | // calculate system strangeness density |
b7d1d891 | 39 | Double_t StrangeDensity(DatabasePDG *const database); |
b1c2e580 | 40 | // calculate system electro density |
b7d1d891 | 41 | Double_t ElectroDensity(DatabasePDG *const database); |
b1c2e580 | 42 | // compute of particle number density |
b7d1d891 | 43 | Double_t ParticleNumberDensity(ParticlePDG *const particle); |
b1c2e580 | 44 | // compute the particle energy density |
b7d1d891 | 45 | Double_t ParticleEnergyDensity(ParticlePDG *const particle); |
786056a2 | 46 | |
47 | private: | |
48 | ||
03896fc4 | 49 | Double_t fTemperature; // temperature |
50 | Double_t fBaryonPotential; // baryon chemical potential | |
51 | Double_t fStrangePotential; // strangeness chemical potential | |
52 | Double_t fElectroPotential; // electro chemical potential | |
53 | ||
54 | Int_t fNMax; // Number of terms for summation, if fNMax = 1 then | |
55 | Bool_t fInitialized; // flag | |
b1c2e580 | 56 | }; |
57 | ||
58 | #endif |