CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/RecoVertex/VertexTools/src/LmsModeFinder3d.cc

Go to the documentation of this file.
00001 #include "RecoVertex/VertexTools/interface/lms_3d.h"
00002 #include "RecoVertex/VertexTools/interface/LmsModeFinder3d.h"
00003 
00004 GlobalPoint LmsModeFinder3d::operator() ( const std::vector<PointAndDistance> & values ) const {
00005   std::vector < GlobalPoint > v;
00006   for ( std::vector< PointAndDistance >::const_iterator i=values.begin(); 
00007       i!=values.end() ; ++i ) 
00008   {
00009     v.push_back ( i->first );
00010   };
00011   return lms_3d ( v );
00012 }
00013 
00014 LmsModeFinder3d * LmsModeFinder3d::clone() const
00015 {
00016   return new LmsModeFinder3d ( * this );
00017 }