CLHEP
2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
TrivariateGaussian.hh
Go to the documentation of this file.
1
// -*- C++ -*-
2
// $Id: TrivariateGaussian.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3
//---------------------TrivariateGaussian-----------------------------------//
4
// //
5
// Class TrivariateGaussian //
6
// Joe Boudreau, Petar Maksimovic, November 1999 //
7
// //
8
//--------------------------------------------------------------------------//
9
#ifndef TrivariateGaussian_h
10
#define TrivariateGaussian_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
TrivariateGaussian
:
public
AbsFunction
{
21
22
FUNCTION_OBJECT_DEF
(
TrivariateGaussian
)
23
24
public
:
25
26
// Constructor
27
TrivariateGaussian
();
28
29
// Copy constructor
30
TrivariateGaussian
(
const
TrivariateGaussian
&right);
31
32
// Destructor
33
virtual
~TrivariateGaussian
();
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 TrivariateGaussian
43
Parameter
&
mean0
();
44
const
Parameter
&
mean0
()
const
;
45
Parameter
&
mean1
();
46
const
Parameter
&
mean1
()
const
;
47
Parameter
&
mean2
();
48
const
Parameter
&
mean2
()
const
;
49
50
// Get the sigma of the TrivariateGaussian
51
Parameter
&
sigma0
();
52
const
Parameter
&
sigma0
()
const
;
53
Parameter
&
sigma1
();
54
const
Parameter
&
sigma1
()
const
;
55
Parameter
&
sigma2
();
56
const
Parameter
&
sigma2
()
const
;
57
58
// Get the correlation coefficient:
59
Parameter
&
corr01
();
60
const
Parameter
&
corr01
()
const
;
61
Parameter
&
corr02
();
62
const
Parameter
&
corr02
()
const
;
63
Parameter
&
corr12
();
64
const
Parameter
&
corr12
()
const
;
65
66
67
private
:
68
69
// It is illegal to assign an adjustable constant
70
const
TrivariateGaussian
& operator=(
const
TrivariateGaussian
&right);
71
72
// Here is the decay constant
73
Parameter
_mean0;
74
Parameter
_mean1;
75
Parameter
_mean2;
76
77
// Here is the sigma
78
Parameter
_sigma0;
79
Parameter
_sigma1;
80
Parameter
_sigma2;
81
82
// Here is the correlation coefficient:
83
Parameter
_corr01;
84
Parameter
_corr02;
85
Parameter
_corr12;
86
87
};
88
}
// namespace Genfun
89
90
#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::Parameter
Definition:
Parameter.hh:35
Genfun::TrivariateGaussian
Definition:
TrivariateGaussian.hh:20
Genfun::TrivariateGaussian::operator()
virtual double operator()(double argument) const override
Definition:
TrivariateGaussian.cc:171
Genfun::TrivariateGaussian::TrivariateGaussian
TrivariateGaussian()
Definition:
TrivariateGaussian.cc:20
Genfun::TrivariateGaussian::dimensionality
virtual unsigned int dimensionality() const override
Definition:
TrivariateGaussian.cc:167
Genfun::TrivariateGaussian::mean1
Parameter & mean1()
Definition:
TrivariateGaussian.cc:107
Genfun::TrivariateGaussian::mean0
Parameter & mean0()
Definition:
TrivariateGaussian.cc:91
Genfun::TrivariateGaussian::corr02
Parameter & corr02()
Definition:
TrivariateGaussian.cc:150
Genfun::TrivariateGaussian::~TrivariateGaussian
virtual ~TrivariateGaussian()
Definition:
TrivariateGaussian.cc:32
Genfun::TrivariateGaussian::corr12
Parameter & corr12()
Definition:
TrivariateGaussian.cc:158
Genfun::TrivariateGaussian::sigma1
Parameter & sigma1()
Definition:
TrivariateGaussian.cc:111
Genfun::TrivariateGaussian::mean2
Parameter & mean2()
Definition:
TrivariateGaussian.cc:123
Genfun::TrivariateGaussian::corr01
Parameter & corr01()
Definition:
TrivariateGaussian.cc:142
Genfun::TrivariateGaussian::sigma0
Parameter & sigma0()
Definition:
TrivariateGaussian.cc:95
Genfun::TrivariateGaussian::sigma2
Parameter & sigma2()
Definition:
TrivariateGaussian.cc:128
Genfun
Definition:
Abs.hh:14
CLHEP-CLHEP_2_4_6_4
GenericFunctions
GenericFunctions
TrivariateGaussian.hh
Generated by
1.9.6