CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
StrangePotential.h
Go to the documentation of this file.
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 */
8 
9 //This class is used to calculate strange potential from
10 //the known initial strange density = 0 at given temperature and baryon potential.
11 
12 #ifndef NAStrangePotential_h
13 #define NAStrangePotential_h 1
14 
15 #include "StrangeDensity.h"
16 #include "EquationSolver.h"
17 #include "DatabasePDG.h"
18 
20 private:
21  double fTemperature;
24  double fMinStrangePotential; //initial min value of strange potential
25  double fMaxStrangePotential; //initial max value of strange potential
26  int fNIteration; //to find proper [minStrangePotential, maxStrangePotential] interval
27  int fNSolverIteration; //to find root in [minStrangePotential,maxStrangePotential] interval
28  double fTolerance; //to find root
31  //compute hadron system strange density through strange potential
32  double CalculateStrangeDensity(const double strangePotential);
33  //default constructor is not accesible
35 
36 public:
37  NAStrangePotential(const double initialStrangeDensity, DatabasePDG* database)
38  : fStrangeDensity(initialStrangeDensity),
39  fMinStrangePotential(0.0001 * GeV),
41  fNIteration(100),
42  fNSolverIteration(100),
43  fTolerance(1.e-8),
44  fDatabase(database){};
45 
47 
48  double operator()(const double strangePotential) {
49  return (fStrangeDensity - this->CalculateStrangeDensity(strangePotential)) / fStrangeDensity;
50  }
51 
52  void SetTemperature(double value) { fTemperature = value; }
57 };
58 
59 #endif
void SetBaryonPotential(double value)
const double GeV
Definition: MathUtil.h:16
double CalculateStrangePotential()
void SetMaxStrangePotential(double value)
NAStrangeDensity fGc
DatabasePDG * fDatabase
void SetMinStrangePotential(double value)
double CalculateStrangeDensity(const double strangePotential)
void SetTemperature(double value)
double operator()(const double strangePotential)
NAStrangePotential(const double initialStrangeDensity, DatabasePDG *database)