MissingETBase::Numerical Struct Reference

Numerical constants and operations. More...

#include <MissingETBase.h>

List of all members.

Static Public Member Functions

Access to constants



static double precision ()
 Access precision of numerical distance measure for equality.
static double wpxDefault ()
 Access default kinematic weight $ w_{x} $.
static double wpyDefault ()
 Access default kinematic weight $ w_{y} $.
static double wetDefault ()
 Access default kinematic weight $ w_{\rm T} $.
static double wpxError ()
 Access error return value for kinematic weight $ w_{x} $.
static double wpyError ()
 Access error return value for kinematic weight $ w_{y} $.
static double wetError ()
 Access error return value for kinematic weight $ w_{\rm T} $.
static double cpxDefault ()
 Access default constituent vector $ P_{x} $.
static double cpyDefault ()
 Access default constituent vector $ P_{y} $.
static double cpzDefault ()
 Access default constituent vector $ P_{z} $.
static double ceDefault ()
 Access default constituent vector $ E $.
static double sumptDefault ()
 Access default constituent vector sumpt.
static double cpxError ()
 Access error return value for constituent vector $ P_{x} $.
static double cpyError ()
 Access error return value for constituent vector $ P_{y} $.
static double cpzError ()
 Access error return value for constituent vector $ P_{z} $.
static double ceError ()
 Access error return value for constituent vector $ E $.
static double sumptError ()
 Access error return value for constituent vector sumpt.
static size_t invalidIndex ()
 Access invalid index indicator.
static size_t unknownIndex ()
 Access unknown index indicator.
static Types::indexedlink_t invalidLink ()
 Access invaalid link tag.
Helpers



static bool isEqual (double x, double y)
 Test of equality.
static double divide (double x, double y)
 Failsafe division.

Detailed Description

Numerical constants and operations.


Member Function Documentation

static double MissingETBase::Numerical::divide ( double  x,
double  y 
) [inline, static]

Failsafe division.

This function executes the division of two numbers $ x $ and $ y $ such that $ f = x/y $ is

\begin{eqnarray*} f & = & \left\{ \begin{array}{2} x/y & y \neq 0 \\ 0 & y = 0 \end{array} \right. \end{eqnarray*}

static bool MissingETBase::Numerical::isEqual ( double  x,
double  y 
) [inline, static]

Test of equality.

Compares the absolute difference $ \Delta = | x - y | $ between two numbers $ ( x, y ) $ with a precision indicator $ \Delta_{\rm min} $, and declares those two numbers equal if $ \Delta < \Delta_{\rm min} $.

Returns:
true if the two numbers are identical within the distance $ \Delta_{\rm min} $, else false.
Parameters:
[in] x first number for distance measure
[in] y second number for distance measure

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1