Provides numeric constants used in RooFit.
Definition at line 22 of file RooNumber.h.
Static Public Member Functions | |
static constexpr double | infinity () |
Return internal infinity representation. | |
static constexpr int | isInfinite (double x) |
Return true if x is infinite by RooNumber internal specification. | |
static double | rangeEpsAbs () |
Get the absolute epsilon that is used by range checks in RooFit, e.g., in RooAbsRealLValue::inRange(). | |
static double | rangeEpsRel () |
Get the relative epsilon that is used by range checks in RooFit, e.g., in RooAbsRealLValue::inRange(). | |
static void | setRangeEpsAbs (double epsRel) |
Set the absolute epsilon that is used by range checks in RooFit, e.g., in RooAbsRealLValue::inRange(). | |
static void | setRangeEpsRel (double epsRel) |
Set the relative epsilon that is used by range checks in RooFit, e.g., in RooAbsRealLValue::inRange(). | |
static std::string | toString (double x) |
Returns an std::to_string compatible number (i.e. | |
Static Private Member Functions | |
static double & | staticRangeEpsAbs () |
static double & | staticRangeEpsRel () |
#include <RooNumber.h>
|
inlinestaticconstexpr |
Return internal infinity representation.
Definition at line 25 of file RooNumber.h.
Return true if x is infinite by RooNumber internal specification.
Definition at line 27 of file RooNumber.h.
|
inlinestatic |
Get the absolute epsilon that is used by range checks in RooFit, e.g., in RooAbsRealLValue::inRange().
Definition at line 41 of file RooNumber.h.
|
inlinestatic |
Get the relative epsilon that is used by range checks in RooFit, e.g., in RooAbsRealLValue::inRange().
Definition at line 34 of file RooNumber.h.
|
inlinestatic |
Set the absolute epsilon that is used by range checks in RooFit, e.g., in RooAbsRealLValue::inRange().
Definition at line 38 of file RooNumber.h.
|
inlinestatic |
Set the relative epsilon that is used by range checks in RooFit, e.g., in RooAbsRealLValue::inRange().
Definition at line 31 of file RooNumber.h.
|
staticprivate |
Definition at line 46 of file RooNumber.cxx.
|
staticprivate |
Definition at line 40 of file RooNumber.cxx.
|
static |
Returns an std::to_string compatible number (i.e.
rounds infinities back to the nearest representable value). This function is primarily used in the code-squashing for AD and as such encodes infinities to double's maximum value. We do this because 1, std::to_string cannot handle infinities correctly on some platforms (e.g. 32 bit debian) and 2, Clad (the AD tool) cannot handle differentiating std::numeric_limits::infinity directly.
Definition at line 31 of file RooNumber.cxx.