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
#define FUNCTION_OBJECT_DEF(classname)
virtual ~Legendre()
virtual double operator()(double argument) const
Legendre(unsigned int order)