CLHEP VERSION Reference Documentation
CLHEP Home Page
CLHEP Documentation
CLHEP Bug Reports
Main Page
Namespaces
Classes
Files
File List
File Members
GenericFunctions
GenericFunctions
GenericFunctions/LogGamma.hh
Go to the documentation of this file.
1
// -*- C++ -*-
2
// $Id: LogGamma.hh,v 1.3 2010/06/16 18:22:01 garren Exp $
3
//---------------------Logarithm of Gamma Function--------------------------//
4
// //
5
// Class LogGamma //
6
// Joe Boudreau October 2K //
7
// //
8
//--------------------------------------------------------------------------//
9
#ifndef LogGamma_h
10
#define LogGamma_h 1
11
#include "
CLHEP/GenericFunctions/AbsFunction.hh
"
12
#include "
CLHEP/GenericFunctions/Parameter.hh
"
13
namespace
Genfun {
14
19
class
LogGamma :
public
AbsFunction {
20
21
FUNCTION_OBJECT_DEF
(
LogGamma
)
22
23
public:
24
25
// Constructor
26
LogGamma
();
27
28
// Copy constructor
29
LogGamma(const LogGamma &right);
30
31
// Destructor
32
virtual ~LogGamma();
33
34
// Retreive function value
35
virtual
double
operator ()(
double
argument) const;
36
virtual
double
operator ()(const
Argument
&
a
)
const
{
return
operator()
(a[0]);}
37
38
private
:
39
40
// It is illegal to assign an adjustable constant
41
const
LogGamma
& operator=(
const
LogGamma
&right);
42
43
// Constants used in evaluating the function call:
44
static
const
double
_coefficient[6];
45
46
};
47
}
// namespace Genfun
48
#endif
Generated on Mon May 6 2013 04:04:10 for CLHEP by
1.8.1.2