GeneratorInterface
Hydjet2Interface
src
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
11
#include "
GeneratorInterface/Hydjet2Interface/interface/EquationSolver.h
"
12
13
template
<
class
Function>
14
NAEquationSolver<Function>::NAEquationSolver
(
const
NAEquationSolver
& right) {
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>
24
NAEquationSolver<Function>
&
NAEquationSolver<Function>::operator=
(
const
NAEquationSolver
& right) {
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>
34
bool
NAEquationSolver<Function>::operator==
(
const
NAEquationSolver
& right)
const
{
35
if
(
this
== &right)
36
return
true
;
37
else
38
return
false
;
39
}
40
41
template
<
class
Function>
42
bool
NAEquationSolver<Function>::operator!=
(
const
NAEquationSolver
& right)
const
{
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
Generated for CMSSW Reference Manual by
1.8.16