BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Reconstruction/MdcPatRec/MdcRecoUtil/include/MdcRecoUtil/NumRecipes.h
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// File and Version Information:
3// $Id: NumRecipes.h,v 1.2 2009/12/23 02:59:56 zhangy Exp $
4//
5// Description:
6// A collection of commonly used algorithms from "Numerical Recipes"
7//
8// Environment:
9// Software developed for the BaBar Detector at the SLAC B-Factory.
10//
11// Author List:
12// Bob Jacobsen, Ed Iskander
13//
14// Copyright Information:
15// Copyright (C) 1996
16//
17// History:
18// Migration for BESIII MDC
19//
20//------------------------------------------------------------------------
21
22#ifndef NUMRECIPES_H
23#define NUMRECIPES_H
24
25#define NUMREC_ITMAX 100
26#define NUMREC_EPS 3.0e-7
27
28//-----------------
29//-----------------
30class NumRecipes {
31public:
32 // log of gamma function
33 static double gammln( double x );
34
35 static double gammq( double a, double x );
36
37 static double gammp( double a, double x );
38
39 static void gcf( double* gammcf, double a, double x, double* gln );
40
41 static void gser( double* gamser, double a, double x, double* gln );
42
43private:
44 static void recipesErr( const char* c );
45};
46
47#endif
static double gammq(double a, double x)
static void gcf(double *gammcf, double a, double x, double *gln)
static double gammp(double a, double x)
static double gammln(double x)
static void gser(double *gamser, double a, double x, double *gln)