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 TotemRPGeometry * | geometry |
pointer to the geometry More... | |
std::map< unsigned int, GeomData > | geometryMap |
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... | |
Class performing optimized hough transform to recognize lines.
Definition at line 24 of file FastLineRecognition.h.
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.
|
protected |
expects raw detector id
Definition at line 78 of file FastLineRecognition.cc.
References EnergyCorrector::c, edmIntegrityCheck::d, geometryMap, hcalTTPDigis_cfi::id, FastLineRecognition::GeomData::s, and FastLineRecognition::GeomData::z.
Referenced by getPatterns().
|
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.
References a, funct::abs(), b, EnergyCorrector::c, chw_a, chw_b, fastPrimaryVertexProducer_cfi::clusters, relmon_rootfiles_spy::contents, reco::if(), gen::k, p1, p2, FastLineRecognition::Cluster::S1, FastLineRecognition::Cluster::Saw, FastLineRecognition::Cluster::Sbw, FastLineRecognition::Cluster::Sw, w, and w2.
Referenced by getPatterns(), and FastLineRecognition::Cluster::operator<().
void FastLineRecognition::getPatterns | ( | const edm::DetSetVector< TotemRPRecHit > & | input, |
double | _z0, | ||
double | threshold, | ||
edm::DetSet< TotemRPUVPattern > & | patterns | ||
) |
Definition at line 99 of file FastLineRecognition.cc.
References TotemRPUVPattern::addHit(), EnergyCorrector::c, edm::DetSet< T >::clear(), FastLineRecognition::Cluster::contents, getGeomData(), getOneLine(), TotemRPRecHit::getPosition(), TotemRPRecHit::getSigma(), h, AlCaHLTBitMon_ParallelJobs::p, listBenchmarks::pattern, edm::DetSet< T >::push_back(), FastLineRecognition::GeomData::s, FastLineRecognition::Cluster::Saw, FastLineRecognition::Cluster::Sbw, TotemRPUVPattern::setA(), TotemRPUVPattern::setB(), TotemRPUVPattern::setW(), sigma0, edm::DetSet< T >::size(), FastLineRecognition::Cluster::Sw, w, FastLineRecognition::Cluster::weight, z, FastLineRecognition::GeomData::z, and z0.
Referenced by TotemRPUVPatternFinder::recognizeAndSelect(), and resetGeometry().
|
inline |
Definition at line 31 of file FastLineRecognition.h.
References geometryMap, getPatterns(), input, patterns, and threshold.
Referenced by TotemRPUVPatternFinder::produce().
|
protected |
cluster half widths in a and b
Definition at line 48 of file FastLineRecognition.h.
Referenced by getOneLine().
|
protected |
Definition at line 48 of file FastLineRecognition.h.
Referenced by getOneLine().
|
protected |
pointer to the geometry
Definition at line 54 of file FastLineRecognition.h.
Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget::leaveEvent().
|
protected |
map: raw detector id –> GeomData
Definition at line 63 of file FastLineRecognition.h.
Referenced by getGeomData(), and resetGeometry().
|
staticprotected |
the uncertainty of 1-hit cluster, in mm
Definition at line 42 of file FastLineRecognition.h.
Referenced by getPatterns().
|
protected |
weight threshold for accepting pattern candidates (clusters)
Definition at line 51 of file FastLineRecognition.h.
Referenced by utils.StatisticalTest::get_status(), and resetGeometry().
|
protected |