CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

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
7 namespace Genfun {
8 
13  class Legendre : public AbsFunction {
14 
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
Genfun::Legendre
Definition: CLHEP/GenericFunctions/Legendre.hh:13
a
@ a
Definition: testCategories.cc:125
Genfun::AbsFunction
Definition: CLHEP/GenericFunctions/AbsFunction.hh:48
Genfun::Legendre::Legendre
Legendre(unsigned int order)
AbsFunction.hh
Genfun::Argument
Definition: CLHEP/GenericFunctions/Argument.hh:17
Genfun::Legendre::~Legendre
virtual ~Legendre()
FUNCTION_OBJECT_DEF
#define FUNCTION_OBJECT_DEF(classname)
Definition: CLHEP/GenericFunctions/AbsFunction.hh:144
Genfun::Legendre::operator()
virtual double operator()(double argument) const
Genfun
Definition: CLHEP/GenericFunctions/Abs.hh:14