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

GenericFunctions/BivariateGaussian.hh
Go to the documentation of this file.
1 // -*- C++ -*-
2 // $Id: BivariateGaussian.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3 //---------------------BivariateGaussian------------------------------------//
4 // //
5 // Class BivariateGaussian //
6 // Joe Boudreau, Petar Maksimovic, November 1999 //
7 // //
8 //--------------------------------------------------------------------------//
9 #ifndef BivariateGaussian_h
10 #define BivariateGaussian_h 1
13 
14 namespace Genfun {
15 
20  class BivariateGaussian : public AbsFunction {
21 
23 
24  public:
25 
26  // Constructor
28 
29  // Copy constructor
30  BivariateGaussian(const BivariateGaussian &right);
31 
32  // Destructor
33  virtual ~BivariateGaussian();
34 
35  // Retreive function value
36  virtual double operator ()(double argument) const; // Gives an error.
37  virtual double operator ()(const Argument & a) const; // Must use this one
38 
39  // Dimensionality
40  virtual unsigned int dimensionality() const;
41 
42  // Get the mean of the BivariateGaussian
43  Parameter & mean0();
44  const Parameter & mean0() const;
45  Parameter & mean1();
46  const Parameter & mean1() const;
47 
48  // Get the sigma of the BivariateGaussian
49  Parameter & sigma0();
50  const Parameter & sigma0() const;
51  Parameter & sigma1();
52  const Parameter & sigma1() const;
53 
54  // Get the correlation coefficient:
55  Parameter & corr01();
56  const Parameter & corr01() const;
57 
58 
59  private:
60 
61  // It is illegal to assign an adjustable constant
62  const BivariateGaussian & operator=(const BivariateGaussian &right);
63 
64  // Here is the decay constant
65  Parameter _mean0;
66  Parameter _mean1;
67 
68  // Here is the sigma
69  Parameter _sigma0;
70  Parameter _sigma1;
71 
72  // Here is the correlation coefficient:
73  Parameter _corr01;
74 
75  };
76 } // namespace Genfun
77 
78 #endif