Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // -*- C++ -*-
0002 // $Id: 
0003 //---------------------NonrelativisticBWDistribution------------------------//
0004 //                                                                          //
0005 //                                                                          //
0006 // Joe Boudreau, June 2011                                                  //
0007 //                                                                          //
0008 //--------------------------------------------------------------------------//
0009 #ifndef NonrelativisticBWDistribution_h
0010 #define NonrelativisticBWDistribution_h 1
0011 #include "CLHEP/GenericFunctions/AbsFunction.hh"
0012 #include "CLHEP/GenericFunctions/Parameter.hh"
0013 #include "CLHEP/GenericFunctions/IncompleteGamma.hh"
0014 namespace Genfun {
0015 
0016   /**
0017    * @author
0018    * @ingroup genfun
0019    */
0020   class NonrelativisticBWDistribution : public AbsFunction  {
0021     
0022     FUNCTION_OBJECT_DEF(NonrelativisticBWDistribution)
0023       
0024       public:
0025     
0026     // Constructor
0027     NonrelativisticBWDistribution();
0028     
0029     // Copy constructor
0030     NonrelativisticBWDistribution(const NonrelativisticBWDistribution &right);
0031     
0032     // Destructor
0033     virtual ~NonrelativisticBWDistribution();
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 paramter alpha
0040     Parameter & mass(); 
0041 
0042     // Get the parameter beta
0043     Parameter & width(); 
0044 
0045     
0046   private:
0047     
0048     // It is illegal to assign an adjustable constant
0049     const NonrelativisticBWDistribution & operator=(const NonrelativisticBWDistribution &right);
0050     
0051     // Here are the two parameters alpha and beta:
0052 
0053     Parameter       _mass;
0054     Parameter       _width;
0055 
0056 
0057 
0058   };
0059 } // namespace Genfun
0060 #endif