CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

VoigtProfile.hh

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 // $Id: 
00003 //---------------------VoigtProfile----------------------------------------//
00004 //                                                                          //
00005 //                                                                          //
00006 // Joe Boudreau, June 2011                                                  //
00007 //                                                                          //
00008 //--------------------------------------------------------------------------//
00009 #ifndef VoigtProfile_h
00010 #define VoigtProfile_h 1
00011 #include "CLHEP/GenericFunctions/AbsFunction.hh"
00012 #include "CLHEP/GenericFunctions/Parameter.hh"
00013 #include "CLHEP/GenericFunctions/IncompleteGamma.hh"
00014 namespace Genfun {
00015 
00020   class VoigtProfile : public AbsFunction  {
00021     
00022     FUNCTION_OBJECT_DEF(VoigtProfile)
00023       
00024       public:
00025     
00026     // Constructor
00027     VoigtProfile();
00028     
00029     // Copy constructor
00030     VoigtProfile(const VoigtProfile &right);
00031     
00032     // Destructor
00033     virtual ~VoigtProfile();
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 paramter alpha
00040     Parameter & mass(); 
00041 
00042     // Get the parameter beta
00043     Parameter & width(); 
00044 
00045     // Get the parameter beta
00046     Parameter & sigma(); 
00047 
00048     
00049   private:
00050     
00051     // It is illegal to assign an adjustable constant
00052     const VoigtProfile & operator=(const VoigtProfile &right);
00053     
00054     // Here are the two parameters alpha and beta:
00055 
00056     Parameter       _mass;
00057     Parameter       _width;
00058     Parameter       _sigma;
00059 
00060 
00061   };
00062 } // namespace Genfun
00063 #endif

Generated on 15 Nov 2012 for CLHEP by  doxygen 1.4.7