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

GenericFunctions/AssociatedLaguerre.hh
Go to the documentation of this file.
1 // -*- C++ -*-
2 // $Id: AssociatedLaguerre.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3 //---------------------AssociatedLaguerre-----------------------------------//
4 // //
5 // Class AssociatedLaguerre. An associated laguerre polynomial L_n^k(x) //
6 // Joe Boudreau, Petar Maksimovic, November 1999 //
7 // //
8 // //
9 // Different definitions exist. These are taken from Arfken, Mathematical //
10 // Methods for physicists //
11 // //
12 //--------------------------------------------------------------------------//
13 #ifndef AssociatedLaguerre_h
14 #define AssociatedLaguerre_h 1
16 
17 namespace Genfun {
18 
23  class AssociatedLaguerre : public AbsFunction {
24 
26 
27  public:
28 
29  // Constructor
30  AssociatedLaguerre(unsigned int n, unsigned int k);
31 
32  // Copy constructor
34 
35  // Destructor
36  virtual ~AssociatedLaguerre();
37 
38  // Retreive function value
39 
40  virtual double operator ()(double argument) const;
41  virtual double operator ()(const Argument & a) const {return operator() (a[0]);}
42 
43  // Get the integer variable n
44  unsigned int n() const;
45 
46  // Get the integer variable k
47  unsigned int k() const;
48 
49  private:
50 
51  // It is illegal to assign an adjustable constant
52  const AssociatedLaguerre & operator=(const AssociatedLaguerre &right);
53 
54  // Here is the decay constant
55  unsigned int _n;
56 
57  // Here is the sigma
58  unsigned int _k;
59 
60  // Here is the "work function"
61  const AbsFunction *_function;
62 
63  // This function is needed in all constructors:
64  void create();
65  };
66 
67 } // namespace Genfun
68 
69 
70 
71 #endif
72 
73 
a
@ a
Definition: testCategories.cc:125
Genfun::AbsFunction
Definition: CLHEP/GenericFunctions/AbsFunction.hh:48
AbsFunction.hh
Genfun::AssociatedLaguerre::n
unsigned int n() const
Definition: AssociatedLaguerre.cc:39
Genfun::AssociatedLaguerre::operator()
virtual double operator()(double argument) const
Definition: AssociatedLaguerre.cc:35
Genfun::AssociatedLaguerre
Definition: CLHEP/GenericFunctions/AssociatedLaguerre.hh:23
Genfun::Argument
Definition: CLHEP/GenericFunctions/Argument.hh:17
Genfun::AssociatedLaguerre::~AssociatedLaguerre
virtual ~AssociatedLaguerre()
Definition: AssociatedLaguerre.cc:23
Genfun::AssociatedLaguerre::AssociatedLaguerre
AssociatedLaguerre(unsigned int n, unsigned int k)
Definition: AssociatedLaguerre.cc:16
FUNCTION_OBJECT_DEF
#define FUNCTION_OBJECT_DEF(classname)
Definition: CLHEP/GenericFunctions/AbsFunction.hh:144
Genfun::AssociatedLaguerre::k
unsigned int k() const
Definition: AssociatedLaguerre.cc:43
Genfun
Definition: CLHEP/GenericFunctions/Abs.hh:14