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, 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 174 of file FastLineRecognition.cc.
References a, funct::abs(), b, c, chw_a, chw_b, bsc_activity_cfg::clusters, relmon_rootfiles_spy::contents, if(), dqmdumpme::k, LaserDQM_cfg::p1, SiStripOfflineCRack_cfg::p2, HLT_FULL_cff::points, mps_fire::result, threshold, w(), w2, and testProducerWithPsetDescEmpty_cfi::z2.
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 c, edm::DetSet< T >::clear(), getGeomData(), getOneLine(), h, input, AlCaHLTBitMon_ParallelJobs::p, topSingleLeptonDQM_PU_cfi::pattern, HLT_FULL_cff::points, edm::DetSet< T >::push_back(), FastLineRecognition::GeomData::s, sigma0, edm::DetSet< T >::size(), threshold, w(), z, FastLineRecognition::GeomData::z, and z0.
Referenced by TotemRPUVPatternFinder::recognizeAndSelect().
|
inline |
Definition at line 30 of file FastLineRecognition.h.
References 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.
|
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(), getOneLine(), and getPatterns().
|
private |