CMS 3D CMS Logo

Public Member Functions | Private Types | Private Attributes

PosteriorWeightsCalculator Class Reference

#include <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

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.

                                                             :
    predictedComponents(mixture) {}
PosteriorWeightsCalculator::~PosteriorWeightsCalculator ( ) [inline]

Definition at line 22 of file PosteriorWeightsCalculator.h.

{}

Member Function Documentation

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");
}
template<unsigned int D>
std::vector<double> PosteriorWeightsCalculator::weights ( const TransientTrackingRecHit tsos) const

Member Data Documentation

Definition at line 29 of file PosteriorWeightsCalculator.h.