]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TUHKMgen/UHKM/StrangeDensity.h
Fix for Coverity defect 14006: RESOURCE_LEAK
[u/mrichter/AliRoot.git] / TUHKMgen / UHKM / StrangeDensity.h
1 //
2 //        Nikolai Amelin, Ludmila Malinina, Timur Pocheptsov (C) JINR/Dubna
3 //      amelin@sunhe.jinr.ru, malinina@sunhe.jinr.ru, pocheptsov@sunhe.jinr.ru
4 //                           November. 2, 2005
5 //
6 //
7 //This class is used to obtain grand canonical description  of strange density
8 //by means of the temperature and chemical potentials (input). As for output
9 //we get  strange density.
10
11 #ifndef STRANGEDENSITY_H
12 #define STRANGEDENSITY_H
13
14 #include "HankelFunction.h"
15
16 class DatabasePDG;
17 class ParticlePDG;
18
19 class StrangeDensity {
20  public:
21   StrangeDensity();
22   ~StrangeDensity(){};
23
24   //for input
25   void SetTemperature(Double_t value) {fTemperature = value;}
26   void SetBaryonPotential(Double_t value) {fBaryonPotential = value;}
27   void SetStrangePotential(Double_t value) {fStrangePotential = value;}
28   void SetNMax(Int_t value) {
29     fNMax = value; 
30     if(fNMax < 1) fNMax = 1;
31   }
32   // compute hadron system strangeness density
33   Double_t StrangenessDensity(const DatabasePDG* database);
34
35  private:
36   //input
37   Double_t fTemperature;             // temperature
38   Double_t fBaryonPotential;         // baryon potential
39   Double_t fStrangePotential;        // strange potential
40   Int_t fNMax;   //number of terms for summation, if nMax = 1 then
41                 //Maxwell-Boltzmann distribution will be recovered      
42
43   Double_t ParticleNumberDensity(ParticlePDG* particle);
44 };
45
46 #endif