22 while(minFunction*maxFunction > 0.0 && iter++ <
fNIteration) {
27 if(minFunction*maxFunction > 0.0) {
28 edm::LogError(
"StrangePotential") <<
"CalculateStrangePotential: minFunction*maxFunction is positive!";
37 if (!theSolver->
Brent(*
this))
38 edm::LogError(
"StrangePotential") <<
"CalculateStrangePotential: the root is not found!";
40 double strangePotential = theSolver->
GetRoot();
42 return strangePotential;
void SetBaryonPotential(double value)
double CalculateStrangePotential()
double GetRoot(void) const
double StrangenessDensity(DatabasePDG *database)
bool Brent(Function &theFunction)
double fMinStrangePotential
void SetStrangePotential(double value)
double fMaxStrangePotential
double CalculateStrangeDensity(const double strangePotential)
double operator()(const double strangePotential)
void SetTemperature(double value)
void SetIntervalLimits(const double Limit1, const double Limit2)