GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 epsilon.

Referenced by INukeOsetTable::checkIntegrity(), and isEqual().

102  {
103  return std::abs(x - y) < epsilon;
104  }
const double epsilon
bool osetUtils::isEqual ( const double &  x,
const double &  y 
)
inline

Definition at line 106 of file INukeOset.h.

References epsilon, and isEqual().

107  {
108  static const double epsilon = std::numeric_limits<double>::epsilon();
109  return isEqual (x, y, epsilon);
110  }
bool isEqual(const double &x, const double &y, const double &epsilon)
Definition: INukeOset.h:100
const double epsilon
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().