CMS 3D CMS Logo

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
NAStrangePotential::fDatabase
DatabasePDG * fDatabase
Definition: StrangePotential.h:29
NAStrangeDensity
Definition: StrangeDensity.h:23
NAStrangePotential::SetMaxStrangePotential
void SetMaxStrangePotential(double value)
Definition: StrangePotential.h:55
NAStrangePotential::fNIteration
int fNIteration
Definition: StrangePotential.h:26
NAStrangePotential::fGc
NAStrangeDensity fGc
Definition: StrangePotential.h:30
NAStrangePotential::fBaryonPotential
double fBaryonPotential
Definition: StrangePotential.h:22
NAStrangePotential::SetMinStrangePotential
void SetMinStrangePotential(double value)
Definition: StrangePotential.h:54
NAStrangePotential::fTolerance
double fTolerance
Definition: StrangePotential.h:28
NAStrangePotential::fStrangeDensity
double fStrangeDensity
Definition: StrangePotential.h:23
NAStrangePotential::fNSolverIteration
int fNSolverIteration
Definition: StrangePotential.h:27
NAStrangePotential::fMaxStrangePotential
double fMaxStrangePotential
Definition: StrangePotential.h:25
EquationSolver.h
NAStrangePotential::NAStrangePotential
NAStrangePotential(const double initialStrangeDensity, DatabasePDG *database)
Definition: StrangePotential.h:37
NAStrangePotential::fMinStrangePotential
double fMinStrangePotential
Definition: StrangePotential.h:24
NAStrangePotential::operator()
double operator()(const double strangePotential)
Definition: StrangePotential.h:48
NAStrangePotential
Definition: StrangePotential.h:19
NAStrangePotential::SetBaryonPotential
void SetBaryonPotential(double value)
Definition: StrangePotential.h:53
GeV
const double GeV
Definition: MathUtil.h:16
NAStrangePotential::~NAStrangePotential
~NAStrangePotential()
Definition: StrangePotential.h:46
value
Definition: value.py:1
NAStrangePotential::CalculateStrangeDensity
double CalculateStrangeDensity(const double strangePotential)
Definition: StrangePotential.cc:46
StrangeDensity.h
NAStrangePotential::NAStrangePotential
NAStrangePotential()
Definition: StrangePotential.h:34
relativeConstraints.value
value
Definition: relativeConstraints.py:53
DatabasePDG
Definition: DatabasePDG.h:34
NAStrangePotential::SetTemperature
void SetTemperature(double value)
Definition: StrangePotential.h:52
NAStrangePotential::fTemperature
double fTemperature
Definition: StrangePotential.h:21
NAStrangePotential::CalculateStrangePotential
double CalculateStrangePotential()
Definition: StrangePotential.cc:11
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
DatabasePDG.h