CMS 3D CMS Logo

MultiGaussianState1D.cc
Go to the documentation of this file.
3 // #include "TrackingTools/GsfTools/interface/MultiGaussianState.h"
4 
7  return theCombinedState.weight();
8 
9  double result(0.);
10  for (SingleState1dContainer::const_iterator ic = theComponents.begin(); ic != theComponents.end(); ic++)
11  result += (*ic).weight();
12  return result;
13 }
14 
17  return theCombinedState.mean();
18 }
19 
22  return theCombinedState.variance();
23 }
24 
27  return;
28 
31 
32  // typedef SingleGaussianState<1> SingleState;
33  // typedef std::shared_ptr< SingleGaussianState<1> > SingleStatePtr;
34  // typedef std::vector< SingleStatePtr > SingleStateContainer;
35 
36  // SingleStateContainer components;
37  // for ( SingleState1dContainer::const_iterator ic=theComponents.begin();
38  // ic!=theComponents.end(); ic++ ) {
39  // SingleStatePtr ssp(new SingleState(SingleState::Vector((*ic).mean()),
40  // SingleState::Matrix((*ic).variance()),
41  // (*ic).weight()));
42  // components.push_back(ssp);
43  // }
44  // MultiGaussianState<1> multiState(components);
45 
46  // theCombinedState = SingleGaussianState1D(multiState.mean()(0),
47  // multiState.covariance()(0,0),
48  // multiState.weight());
49 
51 }
MultiGaussianState1D::theComponents
const SingleState1dContainer theComponents
Definition: MultiGaussianState1D.h:38
MultiGaussianState1D::weight
double weight() const
combined weight
Definition: MultiGaussianState1D.cc:5
MultiGaussianState1D::theCombinedStateUp2Date
bool theCombinedStateUp2Date
Definition: MultiGaussianState1D.h:40
SingleGaussianState1D::mean
double mean() const
parameter vector
Definition: SingleGaussianState1D.h:25
MultiGaussianState1D.h
SingleGaussianState1D::variance
double variance() const
variance
Definition: SingleGaussianState1D.h:27
SingleGaussianState1D::weight
double weight() const
weight
Definition: SingleGaussianState1D.h:23
MultiGaussianState1D::mean
double mean() const
combined mean
Definition: MultiGaussianState1D.cc:15
MultiGaussianStateCombiner1D.h
combiner
Definition: CandCombiner.h:17
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::theCombinedState
SingleGaussianState1D theCombinedState
Definition: MultiGaussianState1D.h:39
MultiGaussianStateCombiner1D
Definition: MultiGaussianStateCombiner1D.h:13
mps_fire.result
result
Definition: mps_fire.py:303
heavyFlavorValidationHarvestingSequence_cff.combiner
combiner
Definition: heavyFlavorValidationHarvestingSequence_cff.py:107