Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // -*- C++ -*-
0002 // $Id: 
0003 //---------------------Gamma------------------------------------------------//
0004 //                                                                          //
0005 // The                   //
0006 // Joe Boudreau, Jan 2007                                                   //
0007 //                                                                          //
0008 //--------------------------------------------------------------------------//
0009 #ifndef Gamma_h
0010 #define Gamma_h 1
0011 #include "CLHEP/GenericFunctions/AbsFunction.hh"
0012 #include "CLHEP/GenericFunctions/Parameter.hh"
0013 #include "CLHEP/GenericFunctions/LogGamma.hh"
0014 namespace Genfun {
0015 
0016   /**
0017    * @author
0018    * @ingroup genfun
0019    */
0020   class Gamma : public AbsFunction  {
0021     
0022     FUNCTION_OBJECT_DEF(Gamma)
0023       
0024       public:
0025     
0026     // Constructor
0027     Gamma();
0028     
0029     // Copy constructor
0030     Gamma(const Gamma &right);
0031     
0032     // Destructor
0033     virtual ~Gamma();
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   private:
0040     
0041     // It is illegal to assign an adjustable constant
0042     const Gamma & operator=(const Gamma &right);
0043     
0044     // This function has a LogGamma Function;
0045     LogGamma _logGamma;
0046 
0047     
0048   };
0049 } // namespace Genfun
0050 #endif