CLHEP VERSION Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
00001 // -*- C++ -*- 00002 // $Id: 00003 //---------------------Gamma------------------------------------------------// 00004 // // 00005 // The // 00006 // Joe Boudreau, Jan 2007 // 00007 // // 00008 //--------------------------------------------------------------------------// 00009 #ifndef Gamma_h 00010 #define Gamma_h 1 00011 #include "CLHEP/GenericFunctions/AbsFunction.hh" 00012 #include "CLHEP/GenericFunctions/Parameter.hh" 00013 #include "CLHEP/GenericFunctions/LogGamma.hh" 00014 namespace Genfun { 00015 00020 class Gamma : public AbsFunction { 00021 00022 FUNCTION_OBJECT_DEF(Gamma) 00023 00024 public: 00025 00026 // Constructor 00027 Gamma(); 00028 00029 // Copy constructor 00030 Gamma(const Gamma &right); 00031 00032 // Destructor 00033 virtual ~Gamma(); 00034 00035 // Retreive function value 00036 virtual double operator ()(double argument) const; 00037 virtual double operator ()(const Argument & a) const {return operator() (a[0]);} 00038 00039 private: 00040 00041 // It is illegal to assign an adjustable constant 00042 const Gamma & operator=(const Gamma &right); 00043 00044 // This function has a LogGamma Function; 00045 LogGamma _logGamma; 00046 00047 00048 }; 00049 } // namespace Genfun 00050 #endif