Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:28:24

0001 #ifndef ModeFinder3d_H
0002 #define ModeFinder3d_H
0003 
0004 #include "DataFormats/GeometryVector/interface/GlobalPoint.h"
0005 
0006 #include <vector>
0007 
0008 /**  \class ModeFinder3d
0009  *
0010  *   A ModeFinder returns a GlobalPoint, given a vector of ( GlobalPoint plus
0011  *   weight ). [ weight := distance of the points of closest Approach ].
0012  */
0013 
0014 class ModeFinder3d {
0015 public:
0016   typedef std::pair<GlobalPoint, float> PointAndDistance;
0017   virtual GlobalPoint operator()(const std::vector<PointAndDistance>&) const = 0;
0018 
0019   virtual ~ModeFinder3d(){};
0020   virtual ModeFinder3d* clone() const = 0;
0021 };
0022 
0023 #endif