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 override
 
double weight (const std::vector< const T * > &) const override
 
- 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
inlineoverridevirtual

Implements WeightEstimator< T >.

Definition at line 17 of file TrivialWeightEstimator.h.

template<class T>
double TrivialWeightEstimator< T >::weight ( const std::vector< const T * > &  ) const
inlineoverridevirtual

Implements WeightEstimator< T >.

Definition at line 15 of file TrivialWeightEstimator.h.

15 { return 1.0; }