CMS 3D CMS Logo

PosteriorWeightsCalculator Class Reference

Helper class which calculates the posterior weights of a Gaussian mixture given a prior (predicted) mixture and a RecHit. More...

#include <TrackingTools/GsfTracking/interface/PosteriorWeightsCalculator.h>

List of all members.

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< TSOSpredictedComponents


Detailed Description

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.


Member Typedef Documentation

typedef TrajectoryStateOnSurface PosteriorWeightsCalculator::TSOS [private]

Definition at line 16 of file PosteriorWeightsCalculator.h.


Constructor & Destructor Documentation

PosteriorWeightsCalculator::PosteriorWeightsCalculator ( const std::vector< TSOS > &  mixture  )  [inline]

Definition at line 19 of file PosteriorWeightsCalculator.h.

00019                                                              :
00020     predictedComponents(mixture) {}

PosteriorWeightsCalculator::~PosteriorWeightsCalculator (  )  [inline]

Definition at line 22 of file PosteriorWeightsCalculator.h.

00022 {}


Member Function Documentation

template<unsigned int D>
std::vector<double> PosteriorWeightsCalculator::weights ( const TransientTrackingRecHit tsos  )  const [inline]

std::vector< double > PosteriorWeightsCalculator::weights ( const TransientTrackingRecHit tsos  )  const [inline]

Create random state.

!! AlgebraicVector r(recHit.parameters(predictedComponents[i]) - me.measuredParameters(recHit));

!! AlgebraicSymMatrix V(recHit.parametersError(predictedComponents[i]));

Definition at line 8 of file PosteriorWeightsCalculator.cc.

References TrackingRecHit::dimension(), and Exception.

00008                                                                                                  {
00009         switch (recHit.dimension()) {
00010                 case 1: return weights<1>(recHit);
00011                 case 2: return weights<2>(recHit);
00012                 case 3: return weights<3>(recHit);
00013                 case 4: return weights<4>(recHit);
00014                 case 5: return weights<5>(recHit);
00015         }
00016         throw cms::Exception("Error: rechit of size not 1,2,3,4,5");
00017 }


Member Data Documentation

std::vector<TSOS> PosteriorWeightsCalculator::predictedComponents [private]

Definition at line 29 of file PosteriorWeightsCalculator.h.


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:30:15 2009 for CMSSW by  doxygen 1.5.4