CMS 3D CMS Logo

List of all members | Public Member Functions
HsmModeFinder3d Class Reference

#include <HsmModeFinder3d.h>

Inheritance diagram for HsmModeFinder3d:
ModeFinder3d

Public Member Functions

virtual HsmModeFinder3dclone () const
 
virtual GlobalPoint operator() (const std::vector< PointAndDistance > &) const
 
- Public Member Functions inherited from ModeFinder3d
virtual ~ModeFinder3d ()
 

Additional Inherited Members

- Public Types inherited from ModeFinder3d
typedef std::pair< GlobalPoint, float > PointAndDistance
 

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.

19 {
20  return new HsmModeFinder3d ( * this );
21 }
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.

8 {
9  std::vector < GlobalPoint > v;
10  for ( std::vector< PointAndDistance >::const_iterator i=values.begin();
11  i!=values.end() ; ++i )
12  {
13  v.push_back ( i->first );
14  };
15  return hsm_3d ( v );
16 }
int i
Definition: DBlmapReader.cc:9
GlobalPoint hsm_3d(const std::vector< GlobalPoint > &values)
cordinate wise half sample mode in 3d
Definition: hsm_3d.cc:8