PandaRoot
PndHoughSpace Class Reference

#include <PndHoughSpace.h>

Public Member Functions

 PndHoughSpace ()
 
virtual ~PndHoughSpace ()
 
virtual void SetNBins1 (double n)
 Sets the number of bins in x direction of the Hough space. More...
 
virtual void SetNBins2 (double n)
 Sets the number of bins in y direction of the Hough space. More...
 
void Init ()
 Initializes the Hough space. More...
 
TVector3 GetCircleFromBin (Int_t bin)
 Returns the circle (x, y, r) from a bin in the Hough space. The Hough space is in (r, phi) More...
 
Int_t GetBin (Int_t binX, Int_t binY)
 Returns a global bin corresponding to the 2d bin set (binX, binY) of the Hough space. More...
 
void Fill (double x, double y)
 Fills the Hough space with the hit (x, y) More...
 
void FindMaxima (std::vector< TVector3 > &FoundMaxima)
 Finds all maxima in the Hough space. More...
 
void clear ()
 Clears the Hough space. More...
 
Int_t GetEntries ()
 Returns the number of filled bins in the Hough space. More...
 
std::vector< double > GetXBorder ()
 Returns a vector containing the borders of each bin of the x axis. More...
 
std::vector< double > GetYBorder ()
 Returns a vector containing the borders of each bin of the y axis. More...
 

Detailed Description

Definition at line 27 of file PndHoughSpace.h.

Constructor & Destructor Documentation

◆ PndHoughSpace()

PndHoughSpace::PndHoughSpace ( )

◆ ~PndHoughSpace()

virtual PndHoughSpace::~PndHoughSpace ( )
inlinevirtual

Definition at line 32 of file PndHoughSpace.h.

32 {}

Member Function Documentation

◆ clear()

void PndHoughSpace::clear ( void  )
inline

Clears the Hough space.

Definition at line 49 of file PndHoughSpace.h.

Referenced by PndHoughData::clear().

49 { HoughSpaceMapBinToEntries.clear(); }

◆ Fill()

void PndHoughSpace::Fill ( double  x,
double  y 
)

Fills the Hough space with the hit (x, y)

◆ FindMaxima()

void PndHoughSpace::FindMaxima ( std::vector< TVector3 > &  FoundMaxima)

Finds all maxima in the Hough space.

◆ GetBin()

Int_t PndHoughSpace::GetBin ( Int_t  binX,
Int_t  binY 
)

Returns a global bin corresponding to the 2d bin set (binX, binY) of the Hough space.

◆ GetCircleFromBin()

TVector3 PndHoughSpace::GetCircleFromBin ( Int_t  bin)

Returns the circle (x, y, r) from a bin in the Hough space. The Hough space is in (r, phi)

◆ GetEntries()

Int_t PndHoughSpace::GetEntries ( )
inline

Returns the number of filled bins in the Hough space.

Definition at line 51 of file PndHoughSpace.h.

51 { return HoughSpaceMapBinToEntries.size(); }

◆ GetXBorder()

std::vector<double> PndHoughSpace::GetXBorder ( )
inline

Returns a vector containing the borders of each bin of the x axis.

Definition at line 53 of file PndHoughSpace.h.

53 { return bordersX; }

◆ GetYBorder()

std::vector<double> PndHoughSpace::GetYBorder ( )
inline

Returns a vector containing the borders of each bin of the y axis.

Definition at line 55 of file PndHoughSpace.h.

55 { return bordersY; }

◆ Init()

void PndHoughSpace::Init ( )

Initializes the Hough space.

Referenced by PndHoughData::Init().

◆ SetNBins1()

virtual void PndHoughSpace::SetNBins1 ( double  n)
inlinevirtual

Sets the number of bins in x direction of the Hough space.

Definition at line 35 of file PndHoughSpace.h.

Referenced by PndHoughData::Init().

35 { fNbins1 = n; }

◆ SetNBins2()

virtual void PndHoughSpace::SetNBins2 ( double  n)
inlinevirtual

Sets the number of bins in y direction of the Hough space.

Definition at line 37 of file PndHoughSpace.h.

Referenced by PndHoughData::Init().

37 { fNbins2 = n; }

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