Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-09-07 04:35:19

0001 #ifndef _WeightEstimator_H_
0002 #define _WeightEstimator_H_
0003 
0004 #include <vector>
0005 
0006 /**
0007  *  Estimator that returns the weight (="quality") of a cluster.
0008  *  Abstract base class.
0009  */
0010 
0011 template <class T>
0012 class WeightEstimator {
0013 public:
0014   virtual double weight(const std::vector<const T*>&) const = 0;
0015   virtual WeightEstimator* clone() const = 0;
0016 
0017   virtual ~WeightEstimator() {}
0018 };
0019 
0020 #endif