Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:49:57

0001 #ifndef _TrackDistanceWeightEstimator_H_
0002 #define _TrackDistanceWeightEstimator_H_
0003 
0004 #include "CommonTools/Clustering1D/interface/WeightEstimator.h"
0005 
0006 /**
0007  *  weight estimator that uses the distance as the weights.
0008  */
0009 
0010 template <class T>
0011 class TrackDistanceWeightEstimator : public WeightEstimator<T> {
0012 public:
0013   double operator()(const T* track) const { return 1.; };
0014 
0015   TrackDistanceWeightEstimator* clone() const { return new TrackDistanceWeightEstimator(*this); };
0016 };
0017 
0018 #endif