CLHEP VERSION Reference Documentation
CLHEP Home Page
CLHEP Documentation
CLHEP Bug Reports
Main Page
Namespaces
Classes
Files
File List
File Members
GenericFunctions
CLHEP
GenericFunctions
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
;
30
virtual
double
operator ()
(
const
Argument
&
a
)
const
{
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
Generated on Mon May 6 2013 04:04:10 for CLHEP by
1.8.1.2