CLHEP 2.0.4.7 Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
00001 // -*- C++ -*- 00002 // $Id: Landau.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $ 00003 //---------------------Landau-----------------------------------------------// 00004 // // 00005 // Class Landau // 00006 // Joe Boudreau, November 1999 // 00007 // // 00008 //--------------------------------------------------------------------------// 00009 #ifndef Landau_h 00010 #define Landau_h 1 00011 #include "CLHEP/GenericFunctions/AbsFunction.hh" 00012 #include "CLHEP/GenericFunctions/Parameter.hh" 00013 00014 namespace Genfun { 00015 00020 class Landau : public AbsFunction { 00021 00022 FUNCTION_OBJECT_DEF(Landau) 00023 00024 public: 00025 00026 // Constructor 00027 Landau(); 00028 00029 // Copy constructor 00030 Landau(const Landau &right); 00031 00032 // Destructor 00033 virtual ~Landau(); 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 // Get the mean of the Landau 00040 Parameter & peak(); 00041 const Parameter & peak() const; 00042 00043 // Get the sigma of the Landau 00044 Parameter & width(); 00045 const Parameter & width() const; 00046 00047 00048 private: 00049 00050 // It is illegal to assign an adjustable constant 00051 const Landau & operator=(const Landau &right); 00052 00053 // Here is the decay constant 00054 Parameter _peak; 00055 00056 // Here is the sigma 00057 Parameter _width; 00058 00059 // The old cernlib routine does the work: 00060 double _denlan(double x) const; 00061 00062 }; 00063 } // namespace Genfun 00064 00065 #endif