CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/RecoVertex/VertexTools/src/HsmModeFinder3d.cc

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