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 CTPPSGeometry *_g) |
~FastLineRecognition () | |
Private Member Functions | |
GeomData | getGeomData (unsigned int id) |
expects raw detector id More... | |
bool | getOneLine (const std::vector< Point > &points, double threshold, Cluster &result) |
Private Attributes | |
double | chw_a |
cluster half widths in a and b More... | |
double | chw_b |
const CTPPSGeometry * | 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 Private 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 25 of file FastLineRecognition.h.
FastLineRecognition::FastLineRecognition | ( | double | cw_a = 0. , |
double | cw_b = 0. |
||
) |
Definition at line 60 of file FastLineRecognition.cc.
FastLineRecognition::~FastLineRecognition | ( | ) |
Definition at line 67 of file FastLineRecognition.cc.
|
private |
expects raw detector id
Definition at line 73 of file FastLineRecognition.cc.
References EnergyCorrector::c, edmIntegrityCheck::d, geometryMap, triggerObjects_cff::id, FastLineRecognition::GeomData::s, and FastLineRecognition::GeomData::z.
Referenced by getPatterns().
|
private |
gets the most significant pattern in the (remaining) points returns true when a pattern was found
Definition at line 187 of file FastLineRecognition.cc.
References a, funct::abs(), b, EnergyCorrector::c, chw_a, chw_b, fastPrimaryVertexProducer_cfi::clusters, relmon_rootfiles_spy::contents, 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 94 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, hiPixelPairStep_cff::points, 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 32 of file FastLineRecognition.h.
References geometryMap, getPatterns(), input, and threshold.
Referenced by TotemRPUVPatternFinder::produce().
|
private |
cluster half widths in a and b
Definition at line 49 of file FastLineRecognition.h.
Referenced by getOneLine().
|
private |
Definition at line 49 of file FastLineRecognition.h.
Referenced by getOneLine().
|
private |
pointer to the geometry
Definition at line 55 of file FastLineRecognition.h.
Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget::leaveEvent().
|
private |
map: raw detector id –> GeomData
Definition at line 64 of file FastLineRecognition.h.
Referenced by getGeomData(), and resetGeometry().
|
staticprivate |
the uncertainty of 1-hit cluster, in mm
Definition at line 43 of file FastLineRecognition.h.
Referenced by getPatterns().
|
private |
weight threshold for accepting pattern candidates (clusters)
Definition at line 52 of file FastLineRecognition.h.
Referenced by utils.StatisticalTest::get_status(), and resetGeometry().
|
private |