TrackDistanceWeightEstimator

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#ifndef _TrackDistanceWeightEstimator_H_
#define _TrackDistanceWeightEstimator_H_

#include "CommonTools/Clustering1D/interface/WeightEstimator.h"

/**
 *  weight estimator that uses the distance as the weights.
 */

template <class T>
class TrackDistanceWeightEstimator : public WeightEstimator<T> {
public:
  double operator()(const T* track) const { return 1.; };

  TrackDistanceWeightEstimator* clone() const { return new TrackDistanceWeightEstimator(*this); };
};

#endif