Functions | Variables
osetUtils Namespace Reference

Functions

bool isEqual (const double &x, const double &y, const double &epsilon)
 
bool isEqual (const double &x, const double &y)
 
double quadraticFunction (const double &x, const double *a)
 

Variables

INukeOsetcurrentInstance = NULL
 

Function Documentation

bool osetUtils::isEqual ( const double &  x,
const double &  y,
const double &  epsilon 
)
inline

Definition at line 100 of file INukeOset.h.

References std::abs(), and epsilon.

Referenced by INukeOsetTable::checkIntegrity().

102  {
103  return std::abs(x - y) < epsilon;
104  }
float abs(float number)
Definition: d0nt_math.hpp:39
double epsilon
bool osetUtils::isEqual ( const double &  x,
const double &  y 
)
inline

Definition at line 106 of file INukeOset.h.

References epsilon.

107  {
108  static const double epsilon = std::numeric_limits<double>::epsilon();
109  return isEqual (x, y, epsilon);
110  }
double epsilon
bool isEqual(const double &x, const double &y)
Definition: INukeOset.h:106
double osetUtils::quadraticFunction ( const double &  x,
const double *  a 
)
inline

Definition at line 112 of file INukeOset.h.

Referenced by INukeOsetFormula::setCrossSections(), and INukeOsetFormula::setSelfEnergy().

113  {
114  return a[0] * x * x + a[1] * x + a[2];
115  }
const double a

Variable Documentation

INukeOset * osetUtils::currentInstance = NULL

Definition at line 5 of file INukeOset.cxx.

Referenced by genie::HNIntranuke2018::HadronFateOset().