Belle II Software  release-08-01-10
TRGCDCHoughPlaneBase Class Referenceabstract

A class to represent a Hough parameter plane. More...

#include <HoughPlaneBase.h>

Inheritance diagram for TRGCDCHoughPlaneBase:
Collaboration diagram for TRGCDCHoughPlaneBase:

Public Member Functions

 TRGCDCHoughPlaneBase (const std::string &name, const TRGCDCHoughTransformation &transformation, unsigned nX, float xMin, float xMax, unsigned nY, float yMin, float yMax)
 Contructor.
 
virtual ~TRGCDCHoughPlaneBase ()
 Destructor.
 
std::string name (void) const
 returns name.
 
const TRGCDCHoughTransformationtransformation (void) const
 returns Hough transformation object.
 
float charge (void) const
 returns charge for this plane.
 
unsigned nX (void) const
 returns # of x bins.
 
float xMin (void) const
 returns min. of x.
 
float xMax (void) const
 returns max. of x.
 
float xSize (void) const
 returns size of x bin.
 
unsigned nY (void) const
 return # of y bins.
 
float yMin (void) const
 returns min. of y.
 
float yMax (void) const
 returns max. of y.
 
float ySize (void) const
 returns size of y bin.
 
virtual unsigned entry (unsigned id) const =0
 returns count of a cell.
 
virtual unsigned entry (unsigned x, unsigned y) const =0
 returns count of a cell.
 
virtual int maxEntry (void) const =0
 returns max. count in a plane.
 
int maxEntryInRegion (unsigned id) const
 returns max. count in region.
 
unsigned serialId (unsigned x, unsigned y) const
 returns serial ID for position (x, y).
 
unsigned serialId (const TRGPoint2D &p) const
 returns serial ID for position p.
 
void id (unsigned serialId, unsigned &x, unsigned &y) const
 returns x and y for serialID.
 
TRGPoint2D position (unsigned x, unsigned y) const
 returns position in Hough plain for a cell (x, y)..
 
unsigned neighbor (unsigned serialID, unsigned direction) const
 returns neighbor cell.
 
std::vector< unsigned > neighbors (unsigned serialID, unsigned windowSize=1) const
 returns neighbors.
 
const std::vector< std::vector< unsigned > * > & regions (void) const
 returns regions.
 
void locationInPlane (float x0, float y0, float x1, float y1, unsigned &nFound, unsigned &iX0, unsigned &iY0, unsigned &iX1, unsigned &iY1) const
 returns cell positions in the region.
 
virtual void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
 
float charge (float charge)
 sets and returns charge for this plane.
 
float xMin (float newXMin)
 sets and returns min. of x.
 
float xMax (float newXMax)
 sets and returns max. of x.
 
float yMin (float newYMin)
 sets and returns min. of y.
 
float yMax (float newYMax)
 sets and returns max. of y.
 
virtual void vote (float rx, float ry, int weight=1)
 Voring.
 
virtual void vote (float rx, float ry, int charge, int weight=1)
 Voring.
 
virtual void vote (float xOffset, int weight=1)
 Votes using a pattern.
 
virtual void registerPattern (unsigned id)=0
 registers a pattern..
 
virtual unsigned setEntry (unsigned serialId, unsigned n)=0
 smoothing More...
 
void setRegion (std::vector< unsigned > *)
 Sets region.
 
void clearRegions (void)
 Clears regions.
 
virtual void clear (void)=0
 Clears all entries.
 

Protected Member Functions

virtual void add (unsigned cellId, int weight)=0
 Add to a cell.
 

Private Attributes

const std::string _name
 Name.
 
const TRGCDCHoughTransformation_trans
 Hough transformation.
 
float _charge
 Track charge for this plane.
 
const unsigned _nX
 # of x bins.
 
float _xMin
 x min.
 
float _xMax
 x max.
 
float _xSize
 Size of x bin.
 
const unsigned _nY
 # of y bins.
 
float _yMin
 y min.
 
float _yMax
 y max.
 
float _ySize
 Size of y bin.
 
const TRGArea2D _area
 Area.
 
std::vector< std::vector< unsigned > * > _regions
 Regions.
 

Detailed Description

A class to represent a Hough parameter plane.

Definition at line 33 of file HoughPlaneBase.h.

Member Function Documentation

◆ setEntry()

virtual unsigned setEntry ( unsigned  serialId,
unsigned  n 
)
pure virtual

smoothing

Sets entry.

Implemented in TRGCDCHoughPlaneBoolean, and TRGCDCHoughPlane.


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