CMS 3D CMS Logo

EquationSolver.cc
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, 2006
6 
7 */
8 
9 //This equation solver class is taken from GEANT4 and modified!!
10 
12 
13 template <class Function>
15  fMaxIter = right.GetMaxIterations();
16  fTolerance = right.GetTolerance();
17  fA = right.GetIntervalLowerLimit();
18  fB = right.GetIntervalUpperLimit();
19  fRoot = right.GetRoot();
20 }
21 
22 // operators
23 template <class Function>
25  fMaxIter = right.GetMaxIterations();
26  fTolerance = right.GetTolerance();
27  fA = right.GetIntervalLowerLimit();
28  fB = right.GetIntervalUpperLimit();
29  fRoot = right.GetRoot();
30  return *this;
31 }
32 
33 template <class Function>
35  if (this == &right)
36  return true;
37  else
38  return false;
39 }
40 
41 template <class Function>
43  return !operator==(right);
44 }
NAEquationSolver::operator==
bool operator==(const NAEquationSolver &right) const
Definition: EquationSolver.cc:34
NAEquationSolver::GetIntervalUpperLimit
double GetIntervalUpperLimit(void) const
Definition: EquationSolver.h:57
NAEquationSolver::GetTolerance
double GetTolerance(void) const
Definition: EquationSolver.h:53
EquationSolver.h
NAEquationSolver::operator=
NAEquationSolver & operator=(const NAEquationSolver &right)
Definition: EquationSolver.cc:24
NAEquationSolver::GetMaxIterations
int GetMaxIterations(void) const
Definition: EquationSolver.h:50
NAEquationSolver
Definition: EquationSolver.h:18
operator==
bool operator==(const QGLikelihoodParameters &lhs, const QGLikelihoodCategory &rhs)
Test if parameters are compatible with category.
Definition: QGLikelihoodObject.h:49
NAEquationSolver::GetRoot
double GetRoot(void) const
Definition: EquationSolver.h:61
NAEquationSolver::GetIntervalLowerLimit
double GetIntervalLowerLimit(void) const
Definition: EquationSolver.h:56
NAEquationSolver::operator!=
bool operator!=(const NAEquationSolver &right) const
Definition: EquationSolver.cc:42
NAEquationSolver::NAEquationSolver
NAEquationSolver()
Definition: EquationSolver.h:34