CMS 3D CMS Logo

Public Member Functions

TrivialWeightEstimator< T > Class Template Reference

#include <TrivialWeightEstimator.h>

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

List of all members.

Public Member Functions

TrivialWeightEstimatorclone () const
double weight (const std::vector< const T * > &) const

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 [inline, virtual]

Implements WeightEstimator< T >.

Definition at line 21 of file TrivialWeightEstimator.h.

    {
        return new TrivialWeightEstimator<T> ( *this );
    };
template<class T>
double TrivialWeightEstimator< T >::weight ( const std::vector< const T * > &  ) const [inline, virtual]

Implements WeightEstimator< T >.

Definition at line 16 of file TrivialWeightEstimator.h.

    {
        return 1.0;
    }