Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:03:24

0001 // -*- C++ -*-
0002 // $Id: AssociatedLegendre.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
0003 //---------------------AssociatedLegendre-----------------------------------//
0004 //                                                                          //
0005 // Class AssociatedLegendre.  An associated legendre polynomial             //
0006 // Joe Boudreau, Petar Maksimovic, November 1999                            //
0007 //                                                                          //
0008 //--------------------------------------------------------------------------//
0009 #ifndef AssociatedLegendre_h
0010 #define AssociatedLegendre_h 1
0011 #include "CLHEP/GenericFunctions/AbsFunction.hh"
0012 #include "CLHEP/GenericFunctions/Parameter.hh"
0013 
0014 namespace Genfun {
0015 
0016   /**
0017    * @author
0018    * @ingroup genfun
0019    */
0020   class AssociatedLegendre : public AbsFunction  {
0021   
0022     FUNCTION_OBJECT_DEF(AssociatedLegendre)
0023 
0024       public:
0025 
0026     // Constructor
0027     AssociatedLegendre(unsigned int l, unsigned int m);
0028 
0029     // Copy constructor
0030     AssociatedLegendre(const AssociatedLegendre &right);
0031   
0032     // Destructor
0033     virtual ~AssociatedLegendre();
0034   
0035     // Retreive function value
0036     virtual double operator ()(double argument) const override;
0037     virtual double operator ()(const Argument & a) const override {return operator() (a[0]);}
0038   
0039     // Get the integer variable l
0040     unsigned int l() const;
0041 
0042     // Get the integer variable mj
0043     unsigned int m() const;
0044 
0045   private:
0046 
0047     // It is illegal to assign an adjustable constant
0048     const AssociatedLegendre & operator=(const AssociatedLegendre &right);
0049 
0050     // Here is the decay constant
0051     unsigned int _l;
0052 
0053     // Here is the sigma
0054     unsigned int _m;
0055 
0056   };
0057 
0058 } // namespace Genfun
0059 
0060 #include "CLHEP/GenericFunctions/AssociatedLegendre.icc"
0061 
0062 
0063 #endif
0064 
0065