CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/CommonTools/Clustering1D/interface/TrivialWeightEstimator.h

Go to the documentation of this file.
00001 #ifndef _TrivialWeightEstimator_H_
00002 #define _TrivialWeightEstimator_H_
00003 
00004 #include "CommonTools/Clustering1D/interface/WeightEstimator.h"
00005 
00006 #include <vector>
00007 
00012 template <class T>
00013 class TrivialWeightEstimator : public WeightEstimator<T>
00014 {
00015 public:
00016     double weight ( const std::vector < const T * > & ) const
00017     {
00018         return 1.0;
00019     }
00020 
00021     TrivialWeightEstimator * clone () const
00022     {
00023         return new TrivialWeightEstimator<T> ( *this );
00024     };
00025 };
00026 
00027 #endif