RooMath Class Reference

#include <RooMath.h>

List of all members.

Public Member Functions

virtual ~RooMath ()
virtual ~RooMath ()

Static Public Member Functions

static RooComplex ComplexErrFunc (Double_t re, Double_t im=0)
static RooComplex ComplexErrFunc (const RooComplex &z)
static RooComplex FastComplexErrFunc (const RooComplex &z)
static Double_t FastComplexErrFuncRe (const RooComplex &z)
static Double_t FastComplexErrFuncIm (const RooComplex &z)
static RooComplex ITPComplexErrFunc (const RooComplex &z, Int_t nOrder)
static Double_t ITPComplexErrFuncRe (const RooComplex &z, Int_t nOrder)
static Double_t ITPComplexErrFuncIm (const RooComplex &z, Int_t nOrder)
static void cacheCERF (Bool_t flag=kTRUE)
static Double_t interpolate (Double_t yArr[], Int_t nOrder, Double_t x)
static Double_t interpolate (Double_t xa[], Double_t ya[], Int_t n, Double_t x)
static Double_t erf (Double_t x)
static Double_t erfc (Double_t x)
static void cleanup ()
static RooComplex ComplexErrFunc (Double_t re, Double_t im=0)
static RooComplex ComplexErrFunc (const RooComplex &z)
static RooComplex FastComplexErrFunc (const RooComplex &z)
static Double_t FastComplexErrFuncRe (const RooComplex &z)
static Double_t FastComplexErrFuncIm (const RooComplex &z)
static RooComplex ITPComplexErrFunc (const RooComplex &z, Int_t nOrder)
static Double_t ITPComplexErrFuncRe (const RooComplex &z, Int_t nOrder)
static Double_t ITPComplexErrFuncIm (const RooComplex &z, Int_t nOrder)
static void cacheCERF (Bool_t flag=kTRUE)
static Double_t interpolate (Double_t yArr[], Int_t nOrder, Double_t x)
static Double_t interpolate (Double_t xa[], Double_t ya[], Int_t n, Double_t x)
static Double_t erf (Double_t x)
static Double_t erfc (Double_t x)
static void cleanup ()

Static Private Member Functions

static Bool_t loadCache ()
static void storeCache ()
static const char * cacheFileName ()
static void initFastCERF (Int_t reBins=800, Double_t reMin=-4.0, Double_t reMax=4.0, Int_t imBins=1000, Double_t imMin=-4.0, Double_t imMax=6.0)
static Bool_t loadCache ()
static void storeCache ()
static const char * cacheFileName ()
static void initFastCERF (Int_t reBins=800, Double_t reMin=-4.0, Double_t reMax=4.0, Int_t imBins=1000, Double_t imMin=-4.0, Double_t imMax=6.0)

Static Private Attributes

static pDouble_t_imCerfArray
static pDouble_t_reCerfArray
static Int_t _reBins
static Double_t _reMin
static Double_t _reMax
static Double_t _reRange
static Double_t _reStep
static Int_t _imBins
static Double_t _imMin
static Double_t _imMax
static Double_t _imRange
static Double_t _imStep
static Bool_t _cacheTable
static pDouble_t_imCerfArray
static pDouble_t_reCerfArray


Detailed Description

Definition at line 27 of file RooMath.h.


Constructor & Destructor Documentation

virtual RooMath::~RooMath (  )  [inline, virtual]

Definition at line 30 of file RooMath.h.

virtual RooMath::~RooMath (  )  [inline, virtual]

Definition at line 30 of file RooMath.h.


Member Function Documentation

RooComplex RooMath::ComplexErrFunc ( Double_t  re,
Double_t  im = 0 
) [static]

Definition at line 59 of file RooMath.cxx.

Referenced by RooVoigtian::evaluate(), G__G__RooFitCore2_485_0_1(), G__G__RooFitCore2_485_0_2(), G__setup_memfuncRooMath(), initFastCERF(), ITPComplexErrFunc(), ITPComplexErrFuncIm(), and ITPComplexErrFuncRe().

RooComplex RooMath::ComplexErrFunc ( const RooComplex z  )  [static]

Definition at line 64 of file RooMath.cxx.

References C, C2, C4, exp(), ROOT::Math::fabs(), N, ROOT::Math::Cephes::P, pow(), R, RooFitShortHand::S(), T, V, X, Y, and Z.

RooComplex RooMath::FastComplexErrFunc ( const RooComplex z  )  [static]

Definition at line 38 of file RooMath.cxx.

References ITPComplexErrFunc().

Referenced by RooGaussModel::evalCerf(), RooGExpModel::evalCerf(), RooVoigtian::evaluate(), G__G__RooFitCore2_485_0_3(), and G__setup_memfuncRooMath().

Double_t RooMath::FastComplexErrFuncRe ( const RooComplex z  )  [static]

Definition at line 43 of file RooMath.cxx.

References ITPComplexErrFuncRe().

Referenced by RooGExpModel::evalCerfRe(), RooGaussModel::evalCerfRe(), G__G__RooFitCore2_485_0_4(), and G__setup_memfuncRooMath().

Double_t RooMath::FastComplexErrFuncIm ( const RooComplex z  )  [static]

Definition at line 48 of file RooMath.cxx.

References ITPComplexErrFuncIm().

Referenced by RooGaussModel::evalCerfIm(), RooGExpModel::evalCerfIm(), G__G__RooFitCore2_485_0_5(), and G__setup_memfuncRooMath().

RooComplex RooMath::ITPComplexErrFunc ( const RooComplex z,
Int_t  nOrder 
) [static]

Definition at line 200 of file RooMath.cxx.

References _imBins, _imCerfArray, _imMin, _imStep, _reBins, _reCerfArray, _reMin, _reStep, ComplexErrFunc(), initFastCERF(), and interpolate().

Referenced by FastComplexErrFunc(), G__G__RooFitCore2_485_0_6(), and G__setup_memfuncRooMath().

Double_t RooMath::ITPComplexErrFuncRe ( const RooComplex z,
Int_t  nOrder 
) [static]

Definition at line 245 of file RooMath.cxx.

References _imBins, _imMin, _imStep, _reBins, _reCerfArray, _reMin, _reStep, ComplexErrFunc(), initFastCERF(), interpolate(), and RooComplex::re().

Referenced by FastComplexErrFuncRe(), G__G__RooFitCore2_485_0_7(), and G__setup_memfuncRooMath().

Double_t RooMath::ITPComplexErrFuncIm ( const RooComplex z,
Int_t  nOrder 
) [static]

Definition at line 288 of file RooMath.cxx.

References _imBins, _imCerfArray, _imMin, _imStep, _reBins, _reCerfArray, _reMin, _reStep, ComplexErrFunc(), RooComplex::im(), initFastCERF(), and interpolate().

Referenced by FastComplexErrFuncIm(), G__G__RooFitCore2_485_0_8(), and G__setup_memfuncRooMath().

void RooMath::cacheCERF ( Bool_t  flag = kTRUE  )  [static]

Definition at line 53 of file RooMath.cxx.

References _cacheTable.

Referenced by G__G__RooFitCore2_485_0_9(), G__setup_memfuncRooMath(), and main().

Double_t RooMath::interpolate ( Double_t  yArr[],
Int_t  nOrder,
Double_t  x 
) [static]

Definition at line 332 of file RooMath.cxx.

References c, d, ROOT::Math::fabs(), i, m, and y.

Referenced by RooStepFunction::evaluate(), G__G__RooFitCore2_485_0_10(), G__G__RooFitCore2_485_0_11(), G__setup_memfuncRooMath(), RooDataHist::interpolateDim(), ITPComplexErrFunc(), ITPComplexErrFuncIm(), ITPComplexErrFuncRe(), and RooDataHist::weight().

Double_t RooMath::interpolate ( Double_t  xa[],
Double_t  ya[],
Int_t  n,
Double_t  x 
) [static]

Definition at line 368 of file RooMath.cxx.

References c, d, RooFit::Eval, ROOT::Math::fabs(), hp, i, m, oocoutE, w, and y.

Double_t RooMath::erf ( Double_t  x  )  [static]

Definition at line 468 of file RooMath.cxx.

References TMath::Erf().

Referenced by RooBifurGauss::analyticalIntegral(), RooGaussModel::analyticalIntegral(), RooLognormal::analyticalIntegral(), RooGaussian::analyticalIntegral(), RooArgusBG::analyticalIntegral(), RooCBShape::ApproxErf(), RooGaussModel::evalCerfInt(), RooGExpModel::evalCerfInt(), G__G__RooFitCore2_485_0_12(), and G__setup_memfuncRooMath().

Double_t RooMath::erfc ( Double_t  x  )  [static]

Definition at line 473 of file RooMath.cxx.

References TMath::Erfc().

Referenced by RooGaussModel::analyticalIntegral(), RooGExpModel::calcDecayConv(), RooGExpModel::evalCerfRe(), RooGaussModel::evalCerfRe(), RooGaussModel::evaluate(), RooGExpModel::evaluate(), G__G__RooFitCore2_485_0_13(), and G__setup_memfuncRooMath().

void RooMath::cleanup (  )  [static]

Definition at line 184 of file RooMath.cxx.

References _imBins, _imCerfArray, and _reCerfArray.

Referenced by CleanUpRooFitAtExit(), G__G__RooFitCore2_485_0_14(), and G__setup_memfuncRooMath().

Bool_t RooMath::loadCache (  )  [static, private]

Definition at line 412 of file RooMath.cxx.

References _imBins, _imCerfArray, _reBins, _reCerfArray, cacheFileName(), RooFit::Eval, i, kFALSE, kTRUE, ok, oocoutE, and oocxcoutD.

Referenced by initFastCERF().

void RooMath::storeCache (  )  [static, private]

Definition at line 443 of file RooMath.cxx.

References _imBins, _imCerfArray, _reBins, _reCerfArray, cacheFileName(), RooFit::Eval, i, and oocxcoutI.

Referenced by initFastCERF().

const char * RooMath::cacheFileName (  )  [static, private]

Definition at line 459 of file RooMath.cxx.

References _imBins, _reBins, TSystem::GetUid(), gSystem, and snprintf.

Referenced by loadCache(), and storeCache().

void RooMath::initFastCERF ( Int_t  reBins = 800,
Double_t  reMin = -4.0,
Double_t  reMax = 4.0,
Int_t  imBins = 1000,
Double_t  imMin = -4.0,
Double_t  imMax = 6.0 
) [static, private]

Definition at line 124 of file RooMath.cxx.

References _cacheTable, _imBins, _imCerfArray, _imMax, _imMin, _imRange, _imStep, _reBins, _reCerfArray, _reMax, _reMin, _reRange, _reStep, RooSentinel::activate(), ComplexErrFunc(), RooFit::Eval, kFALSE, loadCache(), ooccoutI, ooccxcoutD, oocxcoutD, storeCache(), and val.

Referenced by ITPComplexErrFunc(), ITPComplexErrFuncIm(), and ITPComplexErrFuncRe().

static RooComplex RooMath::ComplexErrFunc ( Double_t  re,
Double_t  im = 0 
) [static]

static RooComplex RooMath::ComplexErrFunc ( const RooComplex z  )  [static]

static RooComplex RooMath::FastComplexErrFunc ( const RooComplex z  )  [static]

static Double_t RooMath::FastComplexErrFuncRe ( const RooComplex z  )  [static]

static Double_t RooMath::FastComplexErrFuncIm ( const RooComplex z  )  [static]

static RooComplex RooMath::ITPComplexErrFunc ( const RooComplex z,
Int_t  nOrder 
) [static]

static Double_t RooMath::ITPComplexErrFuncRe ( const RooComplex z,
Int_t  nOrder 
) [static]

static Double_t RooMath::ITPComplexErrFuncIm ( const RooComplex z,
Int_t  nOrder 
) [static]

static void RooMath::cacheCERF ( Bool_t  flag = kTRUE  )  [static]

static Double_t RooMath::interpolate ( Double_t  yArr[],
Int_t  nOrder,
Double_t  x 
) [static]

static Double_t RooMath::interpolate ( Double_t  xa[],
Double_t  ya[],
Int_t  n,
Double_t  x 
) [static]

static Double_t RooMath::erf ( Double_t  x  )  [static]

static Double_t RooMath::erfc ( Double_t  x  )  [static]

static void RooMath::cleanup (  )  [static]

static Bool_t RooMath::loadCache (  )  [static, private]

static void RooMath::storeCache (  )  [static, private]

static const char* RooMath::cacheFileName (  )  [static, private]

static void RooMath::initFastCERF ( Int_t  reBins = 800,
Double_t  reMin = -4.0,
Double_t  reMax = 4.0,
Int_t  imBins = 1000,
Double_t  imMin = -4.0,
Double_t  imMax = 6.0 
) [static, private]


Member Data Documentation

pDouble_t * RooMath::_imCerfArray [static, private]

Definition at line 73 of file RooMath.h.

Referenced by cleanup(), initFastCERF(), ITPComplexErrFunc(), ITPComplexErrFuncIm(), loadCache(), and storeCache().

pDouble_t * RooMath::_reCerfArray [static, private]

Definition at line 74 of file RooMath.h.

Referenced by cleanup(), initFastCERF(), ITPComplexErrFunc(), ITPComplexErrFuncIm(), ITPComplexErrFuncRe(), loadCache(), and storeCache().

Int_t RooMath::_reBins [static, private]

Definition at line 77 of file RooMath.h.

Referenced by cacheFileName(), initFastCERF(), ITPComplexErrFunc(), ITPComplexErrFuncIm(), ITPComplexErrFuncRe(), loadCache(), and storeCache().

Double_t RooMath::_reMin [static, private]

Definition at line 78 of file RooMath.h.

Referenced by initFastCERF(), ITPComplexErrFunc(), ITPComplexErrFuncIm(), and ITPComplexErrFuncRe().

Double_t RooMath::_reMax [static, private]

Definition at line 79 of file RooMath.h.

Referenced by initFastCERF().

Double_t RooMath::_reRange [static, private]

Definition at line 80 of file RooMath.h.

Referenced by initFastCERF().

Double_t RooMath::_reStep [static, private]

Definition at line 81 of file RooMath.h.

Referenced by initFastCERF(), ITPComplexErrFunc(), ITPComplexErrFuncIm(), and ITPComplexErrFuncRe().

Int_t RooMath::_imBins [static, private]

Definition at line 83 of file RooMath.h.

Referenced by cacheFileName(), cleanup(), initFastCERF(), ITPComplexErrFunc(), ITPComplexErrFuncIm(), ITPComplexErrFuncRe(), loadCache(), and storeCache().

Double_t RooMath::_imMin [static, private]

Definition at line 84 of file RooMath.h.

Referenced by initFastCERF(), ITPComplexErrFunc(), ITPComplexErrFuncIm(), and ITPComplexErrFuncRe().

Double_t RooMath::_imMax [static, private]

Definition at line 85 of file RooMath.h.

Referenced by initFastCERF().

Double_t RooMath::_imRange [static, private]

Definition at line 86 of file RooMath.h.

Referenced by initFastCERF().

Double_t RooMath::_imStep [static, private]

Definition at line 87 of file RooMath.h.

Referenced by initFastCERF(), ITPComplexErrFunc(), ITPComplexErrFuncIm(), and ITPComplexErrFuncRe().

Bool_t RooMath::_cacheTable [static, private]

Definition at line 89 of file RooMath.h.

Referenced by cacheCERF(), and initFastCERF().

pDouble_t* RooMath::_imCerfArray [static, private]

Definition at line 73 of file RooMath.h.

pDouble_t* RooMath::_reCerfArray [static, private]

Definition at line 74 of file RooMath.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:33:54 2011 for ROOT_528-00b_version by  doxygen 1.5.1