CLHEP 2.0.4.7 Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

BivariateGaussian.hh

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 // $Id: BivariateGaussian.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
00003 //---------------------BivariateGaussian------------------------------------//
00004 //                                                                          //
00005 // Class BivariateGaussian                                                  //
00006 // Joe Boudreau, Petar Maksimovic, November 1999                            //
00007 //                                                                          //
00008 //--------------------------------------------------------------------------//
00009 #ifndef BivariateGaussian_h
00010 #define BivariateGaussian_h 1
00011 #include "CLHEP/GenericFunctions/AbsFunction.hh"
00012 #include "CLHEP/GenericFunctions/Parameter.hh"
00013 
00014 namespace Genfun {
00015 
00020   class BivariateGaussian : public AbsFunction  {
00021 
00022     FUNCTION_OBJECT_DEF(BivariateGaussian)
00023 
00024       public:
00025 
00026     // Constructor
00027     BivariateGaussian();
00028 
00029     // Copy constructor
00030     BivariateGaussian(const BivariateGaussian &right);
00031   
00032     // Destructor
00033     virtual ~BivariateGaussian();
00034   
00035     // Retreive function value
00036     virtual double operator ()(double argument) const;    // Gives an error.
00037     virtual double operator ()(const Argument & a) const; // Must use this one
00038 
00039     // Dimensionality
00040     virtual unsigned int dimensionality() const;
00041 
00042     // Get the mean of the BivariateGaussian
00043     Parameter & mean0(); 
00044     const Parameter & mean0() const; 
00045     Parameter & mean1(); 
00046     const Parameter & mean1() const; 
00047 
00048     // Get the sigma of the BivariateGaussian
00049     Parameter & sigma0();
00050     const Parameter & sigma0() const;
00051     Parameter & sigma1();
00052     const Parameter & sigma1() const;
00053   
00054     // Get the correlation coefficient:
00055     Parameter & corr01();
00056     const Parameter & corr01() const;
00057     
00058 
00059   private:
00060 
00061     // It is illegal to assign an adjustable constant
00062     const BivariateGaussian & operator=(const BivariateGaussian &right);
00063 
00064     // Here is the decay constant
00065     Parameter _mean0;
00066     Parameter _mean1;
00067     
00068     // Here is the sigma
00069     Parameter _sigma0;
00070     Parameter _sigma1;
00071 
00072     // Here is the correlation coefficient:
00073     Parameter _corr01;
00074 
00075   };
00076 } // namespace Genfun
00077 
00078 #endif

Generated on Thu Jul 1 22:02:30 2010 for CLHEP by  doxygen 1.4.7