Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-15 10:11:05

0001 // -*- C++ -*-
0002 // $Id: BivariateGaussian.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
0003 //---------------------BivariateGaussian------------------------------------//
0004 //                                                                          //
0005 // Class BivariateGaussian                                                  //
0006 // Joe Boudreau, Petar Maksimovic, November 1999                            //
0007 //                                                                          //
0008 //--------------------------------------------------------------------------//
0009 #ifndef BivariateGaussian_h
0010 #define BivariateGaussian_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 BivariateGaussian : public AbsFunction  {
0021 
0022     FUNCTION_OBJECT_DEF(BivariateGaussian)
0023 
0024       public:
0025 
0026     // Constructor
0027     BivariateGaussian();
0028 
0029     // Copy constructor
0030     BivariateGaussian(const BivariateGaussian &right);
0031   
0032     // Destructor
0033     virtual ~BivariateGaussian();
0034   
0035     // Retreive function value
0036     virtual double operator ()(double argument) const override;    // Gives an error.
0037     virtual double operator ()(const Argument & a) const override; // Must use this one
0038 
0039     // Dimensionality
0040     virtual unsigned int dimensionality() const override;
0041 
0042     // Get the mean of the BivariateGaussian
0043     Parameter & mean0(); 
0044     const Parameter & mean0() const; 
0045     Parameter & mean1(); 
0046     const Parameter & mean1() const; 
0047 
0048     // Get the sigma of the BivariateGaussian
0049     Parameter & sigma0();
0050     const Parameter & sigma0() const;
0051     Parameter & sigma1();
0052     const Parameter & sigma1() const;
0053   
0054     // Get the correlation coefficient:
0055     Parameter & corr01();
0056     const Parameter & corr01() const;
0057     
0058 
0059   private:
0060 
0061     // It is illegal to assign an adjustable constant
0062     const BivariateGaussian & operator=(const BivariateGaussian &right);
0063 
0064     // Here is the decay constant
0065     Parameter _mean0;
0066     Parameter _mean1;
0067     
0068     // Here is the sigma
0069     Parameter _sigma0;
0070     Parameter _sigma1;
0071 
0072     // Here is the correlation coefficient:
0073     Parameter _corr01;
0074 
0075   };
0076 } // namespace Genfun
0077 
0078 #endif