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 24 of file FastLineRecognition.h.
FastLineRecognition::FastLineRecognition | ( | double | cw_a = 0. , |
double | cw_b = 0. |
||
) |
Definition at line 58 of file FastLineRecognition.cc.
FastLineRecognition::~FastLineRecognition | ( | ) |
Definition at line 63 of file FastLineRecognition.cc.
|
private |
expects raw detector id
Definition at line 67 of file FastLineRecognition.cc.
References c, ztail::d, geometry, geometryMap, gpuClustering::id, CTPPSGeometry::localToGlobalDirection(), FastLineRecognition::GeomData::s, CTPPSGeometry::sensor(), DetGeomDesc::translation(), 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 174 of file FastLineRecognition.cc.
References a, funct::abs(), b, c, chw_a, chw_b, HLT_FULL_cff::clusters, relmon_rootfiles_spy::contents, if(), isotrackApplyRegressor::k, fireworks::p1, fireworks::p2, gpuVertexFinder::printf(), FastLineRecognition::Cluster::S1, FastLineRecognition::Cluster::Saw, FastLineRecognition::Cluster::Sbw, FastLineRecognition::Cluster::Sw, w(), and w2.
Referenced by getPatterns().
void FastLineRecognition::getPatterns | ( | const edm::DetSetVector< TotemRPRecHit > & | input, |
double | _z0, | ||
double | threshold, | ||
edm::DetSet< TotemRPUVPattern > & | patterns | ||
) |
Definition at line 87 of file FastLineRecognition.cc.
References TotemRPUVPattern::addHit(), c, edm::DetSet< T >::clear(), FastLineRecognition::Cluster::contents, getGeomData(), getOneLine(), h, AlCaHLTBitMon_ParallelJobs::p, TotemRPRecHit::position(), gpuVertexFinder::printf(), edm::DetSet< T >::push_back(), FastLineRecognition::GeomData::s, FastLineRecognition::Cluster::Saw, FastLineRecognition::Cluster::Sbw, TotemRPUVPattern::setA(), TotemRPUVPattern::setB(), TotemRPUVPattern::setW(), TotemRPRecHit::sigma(), sigma0, edm::DetSet< T >::size(), FastLineRecognition::Cluster::Sw, w(), FastLineRecognition::Cluster::weight, z, FastLineRecognition::GeomData::z, and z0.
Referenced by TotemRPUVPatternFinder::recognizeAndSelect().
|
inline |
Definition at line 30 of file FastLineRecognition.h.
References geometry, and geometryMap.
Referenced by TotemRPUVPatternFinder::produce().
|
private |
cluster half widths in a and b
Definition at line 48 of file FastLineRecognition.h.
Referenced by getOneLine().
|
private |
Definition at line 48 of file FastLineRecognition.h.
Referenced by getOneLine().
|
private |
pointer to the geometry
Definition at line 54 of file FastLineRecognition.h.
Referenced by getGeomData(), and resetGeometry().
|
private |
map: raw detector id –> GeomData
Definition at line 62 of file FastLineRecognition.h.
Referenced by getGeomData(), and resetGeometry().
|
staticprivate |
the uncertainty of 1-hit cluster, in mm
Definition at line 42 of file FastLineRecognition.h.
Referenced by getPatterns().
|
private |
weight threshold for accepting pattern candidates (clusters)
Definition at line 51 of file FastLineRecognition.h.
Referenced by utils.StatisticalTest::get_status().
|
private |