CMS 3D CMS Logo

List of all members | Public Member Functions
TrivialWeightEstimator< T > Class Template Reference

#include <TrivialWeightEstimator.h>

Inheritance diagram for TrivialWeightEstimator< T >:
WeightEstimator< T >

Public Member Functions

TrivialWeightEstimatorclone () const
 
double weight (const std::vector< const T * > &) const
 
- Public Member Functions inherited from WeightEstimator< T >
virtual ~WeightEstimator ()
 

Detailed Description

template<class T>
class TrivialWeightEstimator< T >

trivial WeightEstimator that returns 1.

Definition at line 13 of file TrivialWeightEstimator.h.

Member Function Documentation

template<class T>
TrivialWeightEstimator* TrivialWeightEstimator< T >::clone ( void  ) const
inlinevirtual

Implements WeightEstimator< T >.

Definition at line 21 of file TrivialWeightEstimator.h.

22  {
23  return new TrivialWeightEstimator<T> ( *this );
24  };
template<class T>
double TrivialWeightEstimator< T >::weight ( const std::vector< const T * > &  ) const
inlinevirtual

Implements WeightEstimator< T >.

Definition at line 16 of file TrivialWeightEstimator.h.

17  {
18  return 1.0;
19  }