Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:54:35

0001 // -*- C++ -*-
0002 // $Id: SphericalBessel.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
0003 //---------------------SphericalBessel--------------------------------------//
0004 //                                                                          //
0005 // Class SphericalBessel.  An spherical bessel function of integral order   //
0006 // Joe Boudreau, Petar Maksimovic, January 2000                             //
0007 //                                                                          //
0008 //--------------------------------------------------------------------------//
0009 #ifndef SphericalBessel_h
0010 #define SphericalBessel_h 1
0011 #include "CLHEP/GenericFunctions/AbsFunction.hh"
0012 #include "CLHEP/GenericFunctions/Parameter.hh"
0013 namespace Genfun {
0014 
0015   /**
0016    * @author
0017    * @ingroup genfun
0018    */
0019   class SphericalBessel : public AbsFunction  {
0020 
0021     FUNCTION_OBJECT_DEF(SphericalBessel)
0022 
0023       public:
0024 
0025     // Constructor
0026     SphericalBessel(unsigned int l);
0027 
0028     // Copy constructor
0029     SphericalBessel(const SphericalBessel &right);
0030   
0031     // Destructor
0032     virtual ~SphericalBessel();
0033   
0034     // Retreive function value
0035     virtual double operator ()(double argument) const override;
0036     virtual double operator ()(const Argument & a) const override {return operator() (a[0]);}
0037   
0038     // Get the integer variable l
0039     unsigned int l() const;
0040 
0041   private:
0042 
0043     // It is illegal to assign a spherical bessel
0044     const SphericalBessel & operator=(const SphericalBessel &right);
0045 
0046     // Here is the index
0047     unsigned int _l;
0048   
0049   };
0050 } // namespace Genfun
0051 #include "CLHEP/GenericFunctions/SphericalBessel.icc"
0052 #endif