TrackingTools
GsfTools
interface
MultiGaussianState1D.h
Go to the documentation of this file.
1
#ifndef MultiGaussianState1D_H_
2
#define MultiGaussianState1D_H_
3
4
#include "
TrackingTools/GsfTools/interface/SingleGaussianState1D.h
"
5
6
#include <vector>
7
12
class
MultiGaussianState1D
{
13
public
:
14
typedef
std::vector<SingleGaussianState1D>
SingleState1dContainer
;
15
16
public
:
17
MultiGaussianState1D
() :
theCombinedStateUp2Date
(
false
) {}
18
19
MultiGaussianState1D
(
const
SingleState1dContainer
& stateV) :
theComponents
(stateV),
theCombinedStateUp2Date
(
false
) {}
20
21
~MultiGaussianState1D
() {}
22
24
double
weight
()
const
;
26
double
mean
()
const
;
28
double
variance
()
const
;
30
const
SingleState1dContainer
&
components
()
const
{
return
theComponents
; }
31
32
// protected:
33
private
:
35
void
checkCombinedState
()
const
;
36
37
// should become a vector of pointers to const SingleState
38
const
SingleState1dContainer
theComponents
;
39
mutable
SingleGaussianState1D
theCombinedState
;
40
mutable
bool
theCombinedStateUp2Date
;
41
};
42
43
#endif
MultiGaussianState1D::theComponents
const SingleState1dContainer theComponents
Definition:
MultiGaussianState1D.h:38
MultiGaussianState1D::weight
double weight() const
combined weight
Definition:
MultiGaussianState1D.cc:5
funct::false
false
Definition:
Factorize.h:34
MultiGaussianState1D::theCombinedStateUp2Date
bool theCombinedStateUp2Date
Definition:
MultiGaussianState1D.h:40
MultiGaussianState1D
Definition:
MultiGaussianState1D.h:12
MultiGaussianState1D::~MultiGaussianState1D
~MultiGaussianState1D()
Definition:
MultiGaussianState1D.h:21
SingleGaussianState1D.h
SingleGaussianState1D
Definition:
SingleGaussianState1D.h:10
MultiGaussianState1D::components
const SingleState1dContainer & components() const
access to components
Definition:
MultiGaussianState1D.h:30
MultiGaussianState1D::mean
double mean() const
combined mean
Definition:
MultiGaussianState1D.cc:15
MultiGaussianState1D::variance
double variance() const
combined variance
Definition:
MultiGaussianState1D.cc:20
MultiGaussianState1D::checkCombinedState
void checkCombinedState() const
calculation of the combined state (on demand)
Definition:
MultiGaussianState1D.cc:25
MultiGaussianState1D::SingleState1dContainer
std::vector< SingleGaussianState1D > SingleState1dContainer
Definition:
MultiGaussianState1D.h:14
MultiGaussianState1D::theCombinedState
SingleGaussianState1D theCombinedState
Definition:
MultiGaussianState1D.h:39
MultiGaussianState1D::MultiGaussianState1D
MultiGaussianState1D()
Definition:
MultiGaussianState1D.h:17
MultiGaussianState1D::MultiGaussianState1D
MultiGaussianState1D(const SingleState1dContainer &stateV)
Definition:
MultiGaussianState1D.h:19
Generated for CMSSW Reference Manual by
1.8.16