CLHEP
2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
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
11
#include "CLHEP/GenericFunctions/AbsFunction.hh"
12
#include "CLHEP/GenericFunctions/Parameter.hh"
13
14
namespace
Genfun
{
15
16
/**
17
* @author
18
* @ingroup genfun
19
*/
20
class
BivariateGaussian
:
public
AbsFunction
{
21
22
FUNCTION_OBJECT_DEF
(
BivariateGaussian
)
23
24
public
:
25
26
// Constructor
27
BivariateGaussian
();
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 override
;
// Gives an error.
37
virtual
double
operator ()
(
const
Argument
& a)
const override
;
// Must use this one
38
39
// Dimensionality
40
virtual
unsigned
int
dimensionality
()
const override
;
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
FUNCTION_OBJECT_DEF
#define FUNCTION_OBJECT_DEF(classname)
Definition:
AbsFunction.hh:143
Genfun::AbsFunction
Definition:
AbsFunction.hh:48
Genfun::Argument
Definition:
Argument.hh:17
Genfun::BivariateGaussian
Definition:
BivariateGaussian.hh:20
Genfun::BivariateGaussian::operator()
virtual double operator()(double argument) const override
Definition:
BivariateGaussian.cc:108
Genfun::BivariateGaussian::mean0
Parameter & mean0()
Definition:
BivariateGaussian.cc:61
Genfun::BivariateGaussian::dimensionality
virtual unsigned int dimensionality() const override
Definition:
BivariateGaussian.cc:104
Genfun::BivariateGaussian::sigma0
Parameter & sigma0()
Definition:
BivariateGaussian.cc:65
Genfun::BivariateGaussian::sigma1
Parameter & sigma1()
Definition:
BivariateGaussian.cc:81
Genfun::BivariateGaussian::corr01
Parameter & corr01()
Definition:
BivariateGaussian.cc:95
Genfun::BivariateGaussian::BivariateGaussian
BivariateGaussian()
Definition:
BivariateGaussian.cc:18
Genfun::BivariateGaussian::~BivariateGaussian
virtual ~BivariateGaussian()
Definition:
BivariateGaussian.cc:26
Genfun::BivariateGaussian::mean1
Parameter & mean1()
Definition:
BivariateGaussian.cc:77
Genfun::Parameter
Definition:
Parameter.hh:35
Genfun
Definition:
Abs.hh:14
CLHEP-CLHEP_2_4_6_4
GenericFunctions
GenericFunctions
BivariateGaussian.hh
Generated by
1.9.6