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

GenericFunctions/AssociatedLegendre.hh
Go to the documentation of this file.
1 // -*- C++ -*-
2 // $Id: AssociatedLegendre.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3 //---------------------AssociatedLegendre-----------------------------------//
4 // //
5 // Class AssociatedLegendre. An associated legendre polynomial //
6 // Joe Boudreau, Petar Maksimovic, November 1999 //
7 // //
8 //--------------------------------------------------------------------------//
9 #ifndef AssociatedLegendre_h
10 #define AssociatedLegendre_h 1
13 
14 namespace Genfun {
15 
20  class AssociatedLegendre : public AbsFunction {
21 
23 
24  public:
25 
26  // Constructor
27  AssociatedLegendre(unsigned int l, unsigned int m);
28 
29  // Copy constructor
31 
32  // Destructor
33  virtual ~AssociatedLegendre();
34 
35  // Retreive function value
36  virtual double operator ()(double argument) const;
37  virtual double operator ()(const Argument & a) const {return operator() (a[0]);}
38 
39  // Get the integer variable l
40  unsigned int l() const;
41 
42  // Get the integer variable mj
43  unsigned int m() const;
44 
45  private:
46 
47  // It is illegal to assign an adjustable constant
48  const AssociatedLegendre & operator=(const AssociatedLegendre &right);
49 
50  // Here is the decay constant
51  unsigned int _l;
52 
53  // Here is the sigma
54  unsigned int _m;
55 
56  };
57 
58 } // namespace Genfun
59 
60 #include "CLHEP/GenericFunctions/AssociatedLegendre.icc"
61 
62 
63 #endif
64 
65