Public Member Functions | Public Attributes | List of all members
rb::HoughResult Class Reference

Summary from a Hough transform applied to a group of cell hits. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-09-26/RecoBase/HoughResult.h"

Public Member Functions

 HoughResult ()
 
 HoughResult (geo::View_t v, double tlo, double thi, double xy0, double z0)
 
void SlopeIcept (unsigned int i, double *m, double *b) const
 Slope and intercepts of Hough lines. More...
 
void SortPeaks ()
 Sort Hough peaks from best (highest) to worst. More...
 

Public Attributes

geo::View_t fView
 Transform of x or y view? More...
 
double fTNSlo
 Low edge of time slice transformed. More...
 
double fTNShi
 Upper edge of time slice transformed. More...
 
double fXY0
 X/Y offset applied to hits. More...
 
double fZ0
 Z offset applied to hits. More...
 
std::vector< HoughPeakfPeak
 List of peaks found in Hough space. More...
 

Detailed Description

Summary from a Hough transform applied to a group of cell hits.

Definition at line 35 of file HoughResult.h.

Constructor & Destructor Documentation

rb::HoughResult::HoughResult ( )

Definition at line 38 of file HoughResult.cxx.

38  :
40  fTNSlo(0),
41  fTNShi(0),
42  fXY0(0),
43  fZ0(0)
44  { }
double fXY0
X/Y offset applied to hits.
Definition: HoughResult.h:59
double fZ0
Z offset applied to hits.
Definition: HoughResult.h:60
X or Y views.
Definition: PlaneGeo.h:30
geo::View_t fView
Transform of x or y view?
Definition: HoughResult.h:56
double fTNShi
Upper edge of time slice transformed.
Definition: HoughResult.h:58
double fTNSlo
Low edge of time slice transformed.
Definition: HoughResult.h:57
rb::HoughResult::HoughResult ( geo::View_t  v,
double  tlo,
double  thi,
double  xy0,
double  z0 
)

Definition at line 48 of file HoughResult.cxx.

52  :
53  fView(v),
54  fTNSlo(tlo),
55  fTNShi(thi),
56  fXY0(xy0),
57  fZ0(z0)
58  { }
double fXY0
X/Y offset applied to hits.
Definition: HoughResult.h:59
double fZ0
Z offset applied to hits.
Definition: HoughResult.h:60
geo::View_t fView
Transform of x or y view?
Definition: HoughResult.h:56
double fTNShi
Upper edge of time slice transformed.
Definition: HoughResult.h:58
double fTNSlo
Low edge of time slice transformed.
Definition: HoughResult.h:57

Member Function Documentation

void rb::HoughResult::SlopeIcept ( unsigned int  i,
double *  m,
double *  b 
) const

Slope and intercepts of Hough lines.

Parameters
i- Which line?
m- Slope of line
b- Intercept of line (detector coordinates)

Definition at line 62 of file HoughResult.cxx.

References ana::assert(), plot_validation_datamc::c, std::cos(), fPeak, fXY0, fZ0, MECModelEnuComparisons::i, and std::sin().

Referenced by earms::GridSearch::AddHoughIntersections(), hough::HoughValidate::analyze(), earms::ElasticArmsHS::FindSeed(), hough::HoughValidate::HoughLineToDetector(), and vdt::VertexDT::produce().

63  {
64  assert(i<fPeak.size());
65  double s = sin(fPeak[i].fTheta);
66  double c = cos(fPeak[i].fTheta);
67  if (s==0.0) s = 1.0E-9;
68  //
69  // Put the slope and intercepts into detector coordinates
70  //
71  *m = -c/s;
72  *b = fPeak[i].fRho/s - (*m)*fZ0 + fXY0;
73  }
double fXY0
X/Y offset applied to hits.
Definition: HoughResult.h:59
double fZ0
Z offset applied to hits.
Definition: HoughResult.h:60
std::vector< HoughPeak > fPeak
List of peaks found in Hough space.
Definition: HoughResult.h:61
const XML_Char * s
Definition: expat.h:262
T sin(T number)
Definition: d0nt_math.hpp:132
const hit & b
Definition: hits.cxx:21
T cos(T number)
Definition: d0nt_math.hpp:78
assert(nhit_max >=nhit_nbins)
void rb::HoughResult::SortPeaks ( )

Sort Hough peaks from best (highest) to worst.

Definition at line 83 of file HoughResult.cxx.

References rb::compare_peaks(), and fPeak.

Referenced by hough::Hough2P::FindPeaks(), and hough::MultiHough2P::MultiMap().

84  {
85  sort(fPeak.begin(), fPeak.end(), compare_peaks);
86  }
std::vector< HoughPeak > fPeak
List of peaks found in Hough space.
Definition: HoughResult.h:61
static bool compare_peaks(const HoughPeak &a, const HoughPeak &b)
Definition: HoughResult.cxx:77

Member Data Documentation

std::vector<HoughPeak> rb::HoughResult::fPeak
double rb::HoughResult::fTNShi

Upper edge of time slice transformed.

Definition at line 58 of file HoughResult.h.

Referenced by hough::Hough2P::Map(), and hough::MultiHough2P::Map().

double rb::HoughResult::fTNSlo

Low edge of time slice transformed.

Definition at line 57 of file HoughResult.h.

Referenced by hough::Hough2P::Map(), and hough::MultiHough2P::Map().

geo::View_t rb::HoughResult::fView

Transform of x or y view?

Definition at line 56 of file HoughResult.h.

Referenced by hough::HoughValidate::analyze(), and hough::HoughValidate::HoughLineToDetector().

double rb::HoughResult::fXY0

X/Y offset applied to hits.

Definition at line 59 of file HoughResult.h.

Referenced by hough::Hough2P::Map(), hough::MultiHough2P::Map(), hough::MultiHough2P::ReweightHits(), and SlopeIcept().

double rb::HoughResult::fZ0

Z offset applied to hits.

Definition at line 60 of file HoughResult.h.

Referenced by hough::Hough2P::Map(), hough::MultiHough2P::Map(), hough::MultiHough2P::ReweightHits(), and SlopeIcept().


The documentation for this class was generated from the following files: