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

HsmModeFinder3dclone () const override
 
GlobalPoint operator() (const std::vector< PointAndDistance > &) const override
 
- 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

◆ clone()

HsmModeFinder3d * HsmModeFinder3d::clone ( void  ) const
overridevirtual

Implements ModeFinder3d.

Definition at line 15 of file HsmModeFinder3d.cc.

15 { return new HsmModeFinder3d(*this); }

◆ operator()()

GlobalPoint HsmModeFinder3d::operator() ( const std::vector< PointAndDistance > &  values) const
overridevirtual

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

Implements ModeFinder3d.

Definition at line 7 of file HsmModeFinder3d.cc.

References hsm_3d(), mps_fire::i, findQualityFiles::v, and contentValuesCheck::values.

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