/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Reconstruction/MdcPatRec/MdcRecoUtil/MdcRecoUtil-00-01-08/MdcRecoUtil/NumRecipes.h

Go to the documentation of this file.
00001 //--------------------------------------------------------------------------
00002 // File and Version Information:
00003 //      $Id: NumRecipes.h,v 1.2 2009/12/23 02:59:56 zhangy Exp $
00004 //
00005 // Description:
00006 //      A collection of commonly used algorithms from "Numerical Recipes"
00007 //
00008 // Environment:
00009 //      Software developed for the BaBar Detector at the SLAC B-Factory.
00010 //
00011 // Author List:
00012 //      Bob Jacobsen, Ed Iskander
00013 //
00014 // Copyright Information:
00015 //      Copyright (C) 1996
00016 // 
00017 // History:
00018 //      Migration for BESIII MDC
00019 //
00020 //------------------------------------------------------------------------
00021 
00022 #ifndef NUMRECIPES_H
00023 #define NUMRECIPES_H
00024 
00025 #define NUMREC_ITMAX 100
00026 #define NUMREC_EPS 3.0e-7
00027 
00028 //-----------------
00029 //-----------------
00030 class NumRecipes {
00031 public:
00032 
00033   // log of gamma function
00034   static double gammln(double x);
00035 
00036   static double gammq(double a, double x);  
00037 
00038   static double gammp(double a, double x);
00039   
00040   static void gcf(double* gammcf, double a, double x, double* gln);
00041 
00042   static void gser(double* gamser, double a, double x, double* gln);
00043 
00044 private:
00045   static void recipesErr(const char* c);
00046 };
00047 
00048 #endif

Generated on Tue Nov 29 23:13:31 2016 for BOSS_7.0.2 by  doxygen 1.4.7