ROOT logo
/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitCore                                                       *
 * @(#)root/roofitcore:$Id: RooNumber.cxx 24285 2008-06-16 15:05:15Z wouter $
 * Authors:                                                                  *
 *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
 *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
 *                                                                           *
 * Copyright (c) 2000-2005, Regents of the University of California          *
 *                          and Stanford University. All rights reserved.    *
 *                                                                           *
 * Redistribution and use in source and binary forms,                        *
 * with or without modification, are permitted according to the terms        *
 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
 *****************************************************************************/

//////////////////////////////////////////////////////////////////////////////
//
// BEGIN_HTML
// Class RooNumber implements numeric constants used by RooFit
// END_HTML
//

#include "RooFit.h"
#include "RooNumber.h"

ClassImp(RooNumber)
;

#ifdef HAS_NUMERIC_LIMITS

#include <numeric_limits.h>
Double_t RooNumber::_Infinity= numeric_limits<Double_t>::infinity();
#else

// This assumes a well behaved IEEE-754 floating point implementation.
// The next line may generate a compiler warning that can be ignored.
Double_t RooNumber::_Infinity= 1.0e30 ;  //1./0.;

#endif


//_____________________________________________________________________________
Double_t RooNumber::infinity() 
{
  // Return internal infinity representation

  return _Infinity ;
}


//_____________________________________________________________________________
Int_t RooNumber::isInfinite(Double_t x) 
{
  // Return true if x is infinite by RooNumBer internal specification

  return (x >= +_Infinity) ? +1 : ((x <= -_Infinity) ? -1 : 0);
}

 RooNumber.cxx:1
 RooNumber.cxx:2
 RooNumber.cxx:3
 RooNumber.cxx:4
 RooNumber.cxx:5
 RooNumber.cxx:6
 RooNumber.cxx:7
 RooNumber.cxx:8
 RooNumber.cxx:9
 RooNumber.cxx:10
 RooNumber.cxx:11
 RooNumber.cxx:12
 RooNumber.cxx:13
 RooNumber.cxx:14
 RooNumber.cxx:15
 RooNumber.cxx:16
 RooNumber.cxx:17
 RooNumber.cxx:18
 RooNumber.cxx:19
 RooNumber.cxx:20
 RooNumber.cxx:21
 RooNumber.cxx:22
 RooNumber.cxx:23
 RooNumber.cxx:24
 RooNumber.cxx:25
 RooNumber.cxx:26
 RooNumber.cxx:27
 RooNumber.cxx:28
 RooNumber.cxx:29
 RooNumber.cxx:30
 RooNumber.cxx:31
 RooNumber.cxx:32
 RooNumber.cxx:33
 RooNumber.cxx:34
 RooNumber.cxx:35
 RooNumber.cxx:36
 RooNumber.cxx:37
 RooNumber.cxx:38
 RooNumber.cxx:39
 RooNumber.cxx:40
 RooNumber.cxx:41
 RooNumber.cxx:42
 RooNumber.cxx:43
 RooNumber.cxx:44
 RooNumber.cxx:45
 RooNumber.cxx:46
 RooNumber.cxx:47
 RooNumber.cxx:48
 RooNumber.cxx:49
 RooNumber.cxx:50
 RooNumber.cxx:51
 RooNumber.cxx:52
 RooNumber.cxx:53
 RooNumber.cxx:54
 RooNumber.cxx:55
 RooNumber.cxx:56
 RooNumber.cxx:57
 RooNumber.cxx:58
 RooNumber.cxx:59