Logo ROOT  
Reference Guide
RooMathMoreReg.cxx
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * File: $Id$
5  * Authors: *
6  * WV, Wouter Verkerke, NIKHEF, verkerke@nikhef.nl *
7  * *
8  * Copyright (c) 2000-2008, NIKHEF, Regents of the University of California *
9  * and Stanford University. All rights reserved. *
10  * *
11  *****************************************************************************/
12 
13 /** \class RooMathMoreReg
14  \ingroup Roofit
15 
16 **/
17 
18 #include "Riostream.h"
19 #include "RooMathMoreReg.h"
20 #include "RooCFunction1Binding.h"
21 #include "RooCFunction2Binding.h"
22 #include "RooCFunction3Binding.h"
23 #include "RooCFunction4Binding.h"
24 #include "Math/SpecFuncMathMore.h"
25 #include "Math/DistFuncMathMore.h"
26 
28 
30 {
31 #ifdef MATHMORE
32 
33  // Import MathMore 'special' functions from ROOT::Math namespace
34  RooCFunction1Ref<double,double>::fmap().add("ROOT::Math::comp_ellint_1",ROOT::Math::comp_ellint_1,"k") ;
35  RooCFunction1Ref<double,double>::fmap().add("ROOT::Math::comp_ellint_2",ROOT::Math::comp_ellint_2,"k") ;
36  RooCFunction1Ref<double,double>::fmap().add("ROOT::Math::expint",ROOT::Math::expint) ;
37  RooCFunction1Ref<double,double>::fmap().add("ROOT::Math::riemann_zeta",ROOT::Math::riemann_zeta) ;
38  RooCFunction2Ref<double,double,double>::fmap().add("ROOT::Math::cyl_bessel_i",ROOT::Math::cyl_bessel_i, "nu", "x") ;
39  RooCFunction2Ref<double,double,double>::fmap().add("ROOT::Math::cyl_bessel_j",ROOT::Math::cyl_bessel_j, "nu", "x") ;
40  RooCFunction2Ref<double,double,double>::fmap().add("ROOT::Math::cyl_bessel_k",ROOT::Math::cyl_bessel_k, "nu", "x") ;
41  RooCFunction2Ref<double,double,double>::fmap().add("ROOT::Math::cyl_neumann",ROOT::Math::cyl_neumann, "nu", "x") ;
42  RooCFunction2Ref<double,double,double>::fmap().add("ROOT::Math::ellint_1",ROOT::Math::ellint_1, "k", "phi") ;
43  RooCFunction2Ref<double,double,double>::fmap().add("ROOT::Math::ellint_2",ROOT::Math::ellint_2, "k", "phi") ;
44  RooCFunction2Ref<double,unsigned int,double>::fmap().add("ROOT::Math::laguerre",ROOT::Math::laguerre, "n", "x") ;
45  RooCFunction2Ref<double,unsigned int,double>::fmap().add("ROOT::Math::legendre",ROOT::Math::legendre, "l", "x") ;
46  RooCFunction2Ref<double,unsigned int,double>::fmap().add("ROOT::Math::sph_bessel",ROOT::Math::sph_bessel, "n", "x") ;
47  RooCFunction2Ref<double,unsigned int,double>::fmap().add("ROOT::Math::sph_neumann",ROOT::Math::sph_neumann, "n", "x") ;
48  RooCFunction3Ref<double,double,double,double>::fmap().add("ROOT::Math::conf_hyperg",ROOT::Math::conf_hyperg,"a","b","z") ;
49  RooCFunction3Ref<double,double,double,double>::fmap().add("ROOT::Math::conf_hypergU",ROOT::Math::conf_hypergU,"a","b","z") ;
50  RooCFunction3Ref<double,double,double,double>::fmap().add("ROOT::Math::ellint_3",ROOT::Math::ellint_3,"n","k","phi") ;
51  RooCFunction3Ref<double,unsigned int,double,double>::fmap().add("ROOT::Math::assoc_laguerre",ROOT::Math::assoc_laguerre,"n","m","x") ;
53  RooCFunction3Ref<double,unsigned int,unsigned int,double>::fmap().add("ROOT::Math::sph_legendre",ROOT::Math::sph_legendre,"l","m","theta") ;
54 
55  // MathMore quantile functions from ROOT::Math namespace
56  RooCFunction2Ref<double,double,double>::fmap().add("ROOT::Math::tdistribution_quantile_c",ROOT::Math::tdistribution_quantile_c,"z","r") ;
57  RooCFunction2Ref<double,double,double>::fmap().add("ROOT::Math::tdistribution_quantile",ROOT::Math::tdistribution_quantile,"z","r") ;
58 
59 #endif
60 }
RooMathMoreReg.h
RooCFunction2Binding.h
ROOT::Math::sph_legendre
double sph_legendre(unsigned l, unsigned m, double theta)
Computes the spherical (normalized) associated Legendre polynomials, or spherical harmonic without az...
Definition: SpecFuncMathMore.cxx:368
ROOT::Math::cyl_bessel_k
double cyl_bessel_k(double nu, double x)
Calculates the modified Bessel functions of the second kind (also called irregular modified (cylindri...
Definition: SpecFuncMathMore.cxx:184
DistFuncMathMore.h
ROOT::Math::cyl_bessel_j
double cyl_bessel_j(double nu, double x)
Calculates the (cylindrical) Bessel functions of the first kind (also called regular (cylindrical) Be...
Definition: SpecFuncMathMore.cxx:173
RooMathMoreReg::RooMathMoreReg
RooMathMoreReg()
Definition: RooMathMoreReg.cxx:29
ROOT::Math::ellint_2
double ellint_2(double k, double phi)
Calculates the complete elliptic integral of the second kind.
Definition: SpecFuncMathMore.cxx:220
ROOT::Math::tdistribution_quantile_c
double tdistribution_quantile_c(double z, double r)
Inverse ( ) of the cumulative distribution function of the upper tail of Student's t-distribution (td...
Definition: QuantFuncMathMore.cxx:12
RooCFunction1Binding.h
ROOT::Math::legendre
double legendre(unsigned l, double x)
Calculates the Legendre polynomials.
Definition: SpecFuncMathMore.cxx:335
SpecFuncMathMore.h
ROOT::Math::conf_hyperg
double conf_hyperg(double a, double b, double z)
Calculates the confluent hypergeometric functions of the first kind.
Definition: SpecFuncMathMore.cxx:143
RooMathMoreReg
Definition: RooMathMoreReg.h:16
ROOT::Math::comp_ellint_1
double comp_ellint_1(double k)
Calculates the complete elliptic integral of the first kind.
Definition: SpecFuncMathMore.cxx:69
ROOT::Math::sph_bessel
double sph_bessel(unsigned n, double x)
Calculates the spherical Bessel functions of the first kind (also called regular spherical Bessel fun...
Definition: SpecFuncMathMore.cxx:357
RooCFunction3Binding.h
ROOT::Math::comp_ellint_2
double comp_ellint_2(double k)
Calculates the complete elliptic integral of the second kind.
Definition: SpecFuncMathMore.cxx:80
RooCFunction3Ref::fmap
static RooCFunction3Map< VO, VI1, VI2, VI3 > & fmap()
Definition: RooCFunction3Binding.h:136
ROOT::Math::expint
double expint(double x)
Calculates the exponential integral.
Definition: SpecFuncMathMore.cxx:285
ROOT::Math::assoc_legendre
double assoc_legendre(unsigned l, unsigned m, double x)
Computes the associated Legendre polynomials.
Definition: SpecFuncMathMore.cxx:52
ROOT::Math::ellint_3
double ellint_3(double n, double k, double phi)
Calculates the complete elliptic integral of the third kind.
Definition: SpecFuncMathMore.cxx:274
ROOT::Math::riemann_zeta
double riemann_zeta(double x)
Calculates the Riemann zeta function.
Definition: SpecFuncMathMore.cxx:346
RooCFunction1Ref::fmap
static RooCFunction1Map< VO, VI > & fmap()
ROOT::Math::assoc_laguerre
double assoc_laguerre(unsigned n, double m, double x)
Computes the generalized Laguerre polynomials for .
Definition: SpecFuncMathMore.cxx:41
ROOT::Math::ellint_1
double ellint_1(double k, double phi)
Calculates the incomplete elliptic integral of the first kind.
Definition: SpecFuncMathMore.cxx:208
ROOT::Math::laguerre
double laguerre(unsigned n, double x)
Calculates the Laguerre polynomials.
Definition: SpecFuncMathMore.cxx:325
dummy
static RooMathMoreReg dummy
Definition: RooMathMoreReg.cxx:27
RooCFunction4Binding.h
RooCFunction2Ref::fmap
static RooCFunction2Map< VO, VI1, VI2 > & fmap()
Definition: RooCFunction2Binding.h:134
ROOT::Math::sph_neumann
double sph_neumann(unsigned n, double x)
Calculates the spherical Bessel functions of the second kind (also called irregular spherical Bessel ...
Definition: SpecFuncMathMore.cxx:380
ROOT::Math::cyl_neumann
double cyl_neumann(double nu, double x)
Calculates the (cylindrical) Bessel functions of the second kind (also called irregular (cylindrical)...
Definition: SpecFuncMathMore.cxx:196
ROOT::Math::cyl_bessel_i
double cyl_bessel_i(double nu, double x)
Calculates the modified Bessel function of the first kind (also called regular modified (cylindrical)...
Definition: SpecFuncMathMore.cxx:162
Riostream.h
ROOT::Math::conf_hypergU
double conf_hypergU(double a, double b, double z)
Calculates the confluent hypergeometric functions of the second kind, known also as Kummer function o...
Definition: SpecFuncMathMore.cxx:151
ROOT::Math::tdistribution_quantile
double tdistribution_quantile(double z, double r)
Inverse ( ) of the cumulative distribution function of the lower tail of Student's t-distribution (td...
Definition: QuantFuncMathMore.cxx:20