CLHEP
2.4.7.1
C++ Class Library for High Energy Physics
CLHEP
GenericFunctions
Legendre.hh
Go to the documentation of this file.
1
// -*- C++ -*-
2
// $Id:
3
// Legendre Functions P_l(x)
4
#ifndef Legendre_h
5
#define Legendre_h 1
6
#include "
CLHEP/GenericFunctions/AbsFunction.hh
"
7
namespace
Genfun
{
8
13
class
Legendre
:
public
AbsFunction
{
14
15
FUNCTION_OBJECT_DEF
(
Legendre
)
16
17
public
:
18
19
// Constructor:
20
Legendre
(
unsigned
int
order);
21
22
// Copy constructor
23
Legendre
(
const
Legendre
&right);
24
25
// Destructor
26
virtual
~Legendre
();
27
28
// Retreive function value
29
virtual
double
operator ()
(
double
argument)
const override
;
30
virtual
double
operator ()
(
const
Argument
& a)
const override
{
return
operator()
(a[0]);}
31
32
private
:
33
34
// It is illegal to assign an adjustable constant
35
const
Legendre
& operator=(
const
Legendre
&right);
36
37
// The type and order of the Legendre function
38
unsigned
int
_order;
39
40
};
41
42
}
// namespace Genfun
43
44
45
#include "
CLHEP/GenericFunctions/Legendre.icc
"
46
#endif
AbsFunction.hh
FUNCTION_OBJECT_DEF
#define FUNCTION_OBJECT_DEF(classname)
Definition
AbsFunction.hh:143
Legendre.icc
Genfun::AbsFunction::AbsFunction
AbsFunction()
Genfun::Argument
Definition
Argument.hh:17
Genfun::Legendre
Definition
Legendre.hh:13
Genfun::Legendre::~Legendre
virtual ~Legendre()
Definition
Legendre.icc:19
Genfun::Legendre::Legendre
Legendre(unsigned int order)
Definition
Legendre.icc:14
Genfun::Legendre::operator()
virtual double operator()(double argument) const override
Definition
Legendre.icc:29
Genfun
Definition
Abs.hh:14
Generated by
1.14.0