Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // -*- C++ -*-
0002 // $Id: Landau.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
0003 //---------------------Landau-----------------------------------------------//
0004 //                                                                          //
0005 // Class Landau                                                             //
0006 // Joe Boudreau,  November 1999                                             //
0007 //                                                                          //
0008 //--------------------------------------------------------------------------//
0009 #ifndef Landau_h
0010 #define Landau_h 1
0011 #include "CLHEP/GenericFunctions/AbsFunction.hh"
0012 #include "CLHEP/GenericFunctions/Parameter.hh"
0013 
0014 namespace Genfun {
0015 
0016   /**
0017    * @author
0018    * @ingroup genfun
0019    */
0020   class Landau : public AbsFunction  {
0021 
0022     FUNCTION_OBJECT_DEF(Landau)
0023 
0024       public:
0025 
0026     // Constructor
0027     Landau();
0028 
0029     // Copy constructor
0030     Landau(const Landau &right);
0031   
0032     // Destructor
0033     virtual ~Landau();
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     // Get the mean of the Landau
0040     Parameter & peak(); 
0041     const Parameter & peak() const; 
0042 
0043     // Get the sigma of the Landau
0044     Parameter & width();
0045     const Parameter & width() const;
0046 
0047   
0048   private:
0049 
0050     // It is illegal to assign an adjustable constant
0051     const Landau & operator=(const Landau &right);
0052 
0053     // Here is the decay constant
0054     Parameter _peak;
0055 
0056     // Here is the sigma
0057     Parameter _width;
0058 
0059     // The old cernlib routine does the work:
0060     double _denlan(double x) const;
0061 
0062   };
0063 } // namespace Genfun
0064 
0065 #endif