CMS 3D CMS Logo

Public Member Functions

HsmModeFinder3d Class Reference

#include <HsmModeFinder3d.h>

Inheritance diagram for HsmModeFinder3d:
ModeFinder3d unary_function

List of all members.

Public Member Functions

virtual HsmModeFinder3dclone () const
virtual GlobalPoint operator() (const std::vector< PointAndDistance > &) const

Detailed Description

this is a half sample mode finder that works coordinate wise, in 3d.

this is a half sample mode finder that works coordinate wise, in 3d; as an preparatory step we filter out all values whose distance is above a certain threshold ( the threshold moves if not enough values are found within the threshold ).

Definition at line 12 of file HsmModeFinder3d.h.


Member Function Documentation

HsmModeFinder3d * HsmModeFinder3d::clone ( void  ) const [virtual]

Implements ModeFinder3d.

Definition at line 18 of file HsmModeFinder3d.cc.

{
  return new HsmModeFinder3d ( * this );
}
GlobalPoint HsmModeFinder3d::operator() ( const std::vector< PointAndDistance > &  values) const [virtual]

Half sample mode in 3d, as a functional class.

Implements ModeFinder3d.

Definition at line 7 of file HsmModeFinder3d.cc.

References hsm_3d(), i, and findQualityFiles::v.

{
  std::vector < GlobalPoint > v;
  for ( std::vector< PointAndDistance >::const_iterator i=values.begin(); 
      i!=values.end() ; ++i ) 
  {
    v.push_back ( i->first );
  };
  return hsm_3d ( v );
}