CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
FastLineRecognition Class Reference

Class performing optimized hough transform to recognize lines. More...

#include <FastLineRecognition.h>

Classes

struct  Cluster
 cluster of intersection points More...
 
struct  GeomData
 
struct  Point
 

Public Member Functions

 FastLineRecognition (double cw_a=0., double cw_b=0.)
 
void getPatterns (const edm::DetSetVector< TotemRPRecHit > &input, double _z0, double threshold, edm::DetSet< TotemRPUVPattern > &patterns)
 
void resetGeometry (const TotemRPGeometry *_g)
 
 ~FastLineRecognition ()
 

Protected Member Functions

GeomData getGeomData (unsigned int id)
 expects raw detector id More...
 
bool getOneLine (const std::vector< Point > &points, double threshold, Cluster &result)
 

Protected Attributes

double chw_a
 cluster half widths in a and b More...
 
double chw_b
 
const TotemRPGeometrygeometry
 pointer to the geometry More...
 
std::map< unsigned int, GeomDatageometryMap
 map: raw detector id –> GeomData More...
 
double threshold
 weight threshold for accepting pattern candidates (clusters) More...
 
double z0
 "typical" z More...
 

Static Protected Attributes

static const double sigma0 = 66E-3/sqrt(12.)
 the uncertainty of 1-hit cluster, in mm More...
 

Detailed Description

Class performing optimized hough transform to recognize lines.

Definition at line 24 of file FastLineRecognition.h.

Constructor & Destructor Documentation

FastLineRecognition::FastLineRecognition ( double  cw_a = 0.,
double  cw_b = 0. 
)

Definition at line 65 of file FastLineRecognition.cc.

FastLineRecognition::~FastLineRecognition ( )

Definition at line 72 of file FastLineRecognition.cc.

Member Function Documentation

FastLineRecognition::GeomData FastLineRecognition::getGeomData ( unsigned int  id)
protected

expects raw detector id

Definition at line 78 of file FastLineRecognition.cc.

bool FastLineRecognition::getOneLine ( const std::vector< Point > &  points,
double  threshold,
FastLineRecognition::Cluster result 
)
protected

gets the most significant pattern in the (remaining) points returns true when a pattern was found

Definition at line 192 of file FastLineRecognition.cc.

void FastLineRecognition::getPatterns ( const edm::DetSetVector< TotemRPRecHit > &  input,
double  _z0,
double  threshold,
edm::DetSet< TotemRPUVPattern > &  patterns 
)

Definition at line 99 of file FastLineRecognition.cc.

void FastLineRecognition::resetGeometry ( const TotemRPGeometry _g)
inline

Definition at line 31 of file FastLineRecognition.h.

References geometry, and geometryMap.

32  {
33  geometry = _g;
34  geometryMap.clear();
35  }
std::map< unsigned int, GeomData > geometryMap
map: raw detector id –&gt; GeomData
const TotemRPGeometry * geometry
pointer to the geometry

Member Data Documentation

double FastLineRecognition::chw_a
protected

cluster half widths in a and b

Definition at line 48 of file FastLineRecognition.h.

double FastLineRecognition::chw_b
protected

Definition at line 48 of file FastLineRecognition.h.

const TotemRPGeometry* FastLineRecognition::geometry
protected

pointer to the geometry

Definition at line 54 of file FastLineRecognition.h.

Referenced by resetGeometry().

std::map<unsigned int, GeomData> FastLineRecognition::geometryMap
protected

map: raw detector id –> GeomData

Definition at line 63 of file FastLineRecognition.h.

Referenced by resetGeometry().

const double FastLineRecognition::sigma0 = 66E-3/sqrt(12.)
staticprotected

the uncertainty of 1-hit cluster, in mm

Definition at line 42 of file FastLineRecognition.h.

double FastLineRecognition::threshold
protected

weight threshold for accepting pattern candidates (clusters)

Definition at line 51 of file FastLineRecognition.h.

double FastLineRecognition::z0
protected

"typical" z

Definition at line 45 of file FastLineRecognition.h.