CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
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"
13namespace Genfun {
14
15 /**
16 * @author
17 * @ingroup genfun
18 */
19 class LogGamma : public AbsFunction {
20
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 override;
36 virtual double operator ()(const Argument & a) const override {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
#define FUNCTION_OBJECT_DEF(classname)
Definition: AbsFunction.hh:143
virtual double operator()(double argument) const override
Definition: LogGamma.cc:28
virtual ~LogGamma()
Definition: LogGamma.cc:25
Definition: Abs.hh:14