Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooNumber Class Reference

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 doublestaticRangeEpsAbs ()
 
static doublestaticRangeEpsRel ()
 

#include <RooNumber.h>

Member Function Documentation

◆ infinity()

static constexpr double RooNumber::infinity ( )
inlinestaticconstexpr

Return internal infinity representation.

Definition at line 25 of file RooNumber.h.

◆ isInfinite()

static constexpr int RooNumber::isInfinite ( double  x)
inlinestaticconstexpr

Return true if x is infinite by RooNumber internal specification.

Definition at line 27 of file RooNumber.h.

◆ rangeEpsAbs()

static double RooNumber::rangeEpsAbs ( )
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.

◆ rangeEpsRel()

static double RooNumber::rangeEpsRel ( )
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.

◆ setRangeEpsAbs()

static void RooNumber::setRangeEpsAbs ( double  epsRel)
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.

◆ setRangeEpsRel()

static void RooNumber::setRangeEpsRel ( double  epsRel)
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.

◆ staticRangeEpsAbs()

double & RooNumber::staticRangeEpsAbs ( )
staticprivate

Definition at line 46 of file RooNumber.cxx.

◆ staticRangeEpsRel()

double & RooNumber::staticRangeEpsRel ( )
staticprivate

Definition at line 40 of file RooNumber.cxx.

◆ toString()

std::string RooNumber::toString ( double  x)
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.


The documentation for this class was generated from the following files: