#include <PosteriorWeightsCalculator.h>
Public Member Functions | |
PosteriorWeightsCalculator (const std::vector< TSOS > &mixture) | |
template<unsigned int D> | |
std::vector< double > | weights (const TransientTrackingRecHit &tsos) const |
std::vector< double > | weights (const TransientTrackingRecHit &tsos) const |
Create random state. | |
~PosteriorWeightsCalculator () | |
Private Types | |
typedef TrajectoryStateOnSurface | TSOS |
Private Attributes | |
std::vector< TSOS > | predictedComponents |
Helper class which calculates the posterior weights of a Gaussian mixture given a prior (predicted) mixture and a RecHit. The prior is specified during construction time in the form of a vector of trajectory states.
Definition at line 13 of file PosteriorWeightsCalculator.h.
typedef TrajectoryStateOnSurface PosteriorWeightsCalculator::TSOS [private] |
Definition at line 16 of file PosteriorWeightsCalculator.h.
PosteriorWeightsCalculator::PosteriorWeightsCalculator | ( | const std::vector< TSOS > & | mixture | ) | [inline] |
Definition at line 19 of file PosteriorWeightsCalculator.h.
: predictedComponents(mixture) {}
PosteriorWeightsCalculator::~PosteriorWeightsCalculator | ( | ) | [inline] |
Definition at line 22 of file PosteriorWeightsCalculator.h.
{}
std::vector< double > PosteriorWeightsCalculator::weights | ( | const TransientTrackingRecHit & | tsos | ) | const |
Create random state.
Definition at line 9 of file PosteriorWeightsCalculator.cc.
References TrackingRecHit::dimension(), and Exception.
Referenced by GsfChi2MeasurementEstimator::estimate(), and GsfMultiStateUpdator::update().
{ switch (recHit.dimension()) { case 1: return weights<1>(recHit); case 2: return weights<2>(recHit); case 3: return weights<3>(recHit); case 4: return weights<4>(recHit); case 5: return weights<5>(recHit); } throw cms::Exception("Error: rechit of size not 1,2,3,4,5"); }
std::vector<double> PosteriorWeightsCalculator::weights | ( | const TransientTrackingRecHit & | tsos | ) | const |
std::vector<TSOS> PosteriorWeightsCalculator::predictedComponents [private] |
Definition at line 29 of file PosteriorWeightsCalculator.h.