CMS 3D CMS Logo

LargestWeightsStateMerger Class Reference

Merging of a Gaussian mixture by keeping the number Nmax components with the largest weights. More...

#include <TrackingTools/GsfTools/interface/LargestWeightsStateMerger.h>

Inheritance diagram for LargestWeightsStateMerger:

MultiGaussianStateMerger< N >

List of all members.

Public Member Functions

virtual LargestWeightsStateMergerclone () const
 LargestWeightsStateMerger (int n)
virtual RCMultiGaussianState merge (const RCMultiGaussianState &mgs) const
 Method which does the actual merging.

Private Attributes

int Nmax
bool theSmallestWeightsMerging


Detailed Description

Merging of a Gaussian mixture by keeping the number Nmax components with the largest weights.

Definition at line 10 of file LargestWeightsStateMerger.h.


Constructor & Destructor Documentation

LargestWeightsStateMerger::LargestWeightsStateMerger ( int  n  )  [inline]

Definition at line 14 of file LargestWeightsStateMerger.h.

Referenced by clone().

00014                                    : Nmax(n), theSmallestWeightsMerging(true) {
00015 //     initConfigurables();
00016   }


Member Function Documentation

virtual LargestWeightsStateMerger* LargestWeightsStateMerger::clone ( void   )  const [inline, virtual]

Implements MultiGaussianStateMerger< N >.

Definition at line 18 of file LargestWeightsStateMerger.h.

References LargestWeightsStateMerger().

00019   {  
00020     return new LargestWeightsStateMerger(*this);
00021   }

virtual RCMultiGaussianState LargestWeightsStateMerger::merge ( const RCMultiGaussianState mgs  )  const [virtual]

Method which does the actual merging.

Returns a trimmed MultiGaussianState.


Member Data Documentation

int LargestWeightsStateMerger::Nmax [private]

Definition at line 32 of file LargestWeightsStateMerger.h.

bool LargestWeightsStateMerger::theSmallestWeightsMerging [private]

Definition at line 33 of file LargestWeightsStateMerger.h.


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:27:12 2009 for CMSSW by  doxygen 1.5.4