Belle II Software development
|
A class to represent a Hough parameter plane. More...
#include <HoughPlaneMulti.h>
Public Member Functions | |
TRGCDCHoughPlaneMulti (const std::string &name, const TRGCDCHoughTransformation &transformation, unsigned nX, float xMin, float xMax, unsigned nY, float yMin, float yMax, unsigned nLayers) | |
Contructor. | |
virtual | ~TRGCDCHoughPlaneMulti () |
Destructor. | |
virtual unsigned | nActiveCellsInPattern (unsigned layerId) const |
void | dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const override |
dump debug info | |
void | clear (void) override |
Clears all entries. | |
void | vote (float rx, float ry, float charge, const TRGCDCHoughTransformation &hough, unsigned weight, unsigned layerId) |
vote | |
void | vote (float phi, unsigned layerId, int weight) |
vote | |
void | merge (void) |
merge function | |
void | registerPattern (unsigned id) override |
registers a pattern.. | |
virtual unsigned | nActiveCellsInPattern (void) const |
returns # of active cells in the pattern. | |
virtual void | vote (float rx, float ry, int weight=1) |
vote | |
virtual void | vote (float rx, float ry, int charge, int weight=1) |
vote | |
virtual void | vote (float xOffset, int weight=1) |
vote | |
unsigned | entry (unsigned id) const override |
returns entry in a cell. | |
unsigned | entry (unsigned x, unsigned y) const override |
returns entry in a cell. | |
int | maxEntry (void) const override |
returns max. entry in a plane. | |
unsigned | setEntry (unsigned serialId, unsigned n) override |
Sets entry. | |
void | clearCells (void) |
Clears entires only. | |
virtual void | voteByPattern (float xOffset, int weight=1) |
Votes using a pattern. | |
std::string | name (void) const |
returns name. | |
const TRGCDCHoughTransformation & | transformation (void) const |
returns Hough transformation object. | |
float | charge (void) const |
returns charge for this plane. | |
float | charge (float charge) |
sets and returns charge for this plane. | |
unsigned | nX (void) const |
returns # of x bins. | |
float | xMin (void) const |
returns min. of x. | |
float | xMin (float newXMin) |
sets and returns min. of x. | |
float | xMax (void) const |
returns max. of x. | |
float | xMax (float newXMax) |
sets and 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 | yMin (float newYMin) |
sets and returns min. of y. | |
float | yMax (void) const |
returns max. of y. | |
float | yMax (float newYMax) |
sets and returns max. of y. | |
float | ySize (void) const |
returns size of y bin. | |
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. | |
void | setRegion (std::vector< unsigned > *) |
Sets region. | |
void | clearRegions (void) |
Clears regions. | |
Protected Member Functions | |
void | add (unsigned cellId, int weight) override |
Add to a cell. | |
Private Attributes | |
unsigned | _nLayers |
number of layers | |
TRGCDCHoughPlane * | _layers [N_LAYERS] |
layers of TRGCDCHoughPlane | |
bool | _usage [N_LAYERS] |
usage of each layer | |
int *const | _cell |
Counters. | |
unsigned * | _patterns |
Curve patterns. | |
unsigned | _nPatterns |
# of curve patterns. | |
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. | |
A class to represent a Hough parameter plane.
Definition at line 33 of file HoughPlaneMulti.h.
|
inlinevirtual |
returns # of active cells in the pattern.
Reimplemented from TRGCDCHoughPlane.
Definition at line 65 of file HoughPlane.h.
|
virtual |
vote
Reimplemented from TRGCDCHoughPlaneBase.
Definition at line 152 of file HoughPlaneBase.cc.
|
inlinevirtual |
vote
Reimplemented from TRGCDCHoughPlaneBase.
Definition at line 147 of file HoughPlaneBase.h.
|
inlinevirtual |
vote
Reimplemented from TRGCDCHoughPlaneBase.
Definition at line 158 of file HoughPlaneBase.h.
|
privateinherited |
Area.
Definition at line 219 of file HoughPlaneBase.h.
|
privateinherited |
Counters.
Definition at line 93 of file HoughPlane.h.
|
privateinherited |
Track charge for this plane.
Definition at line 192 of file HoughPlaneBase.h.
|
private |
layers of TRGCDCHoughPlane
Definition at line 87 of file HoughPlaneMulti.h.
|
privateinherited |
Name.
Definition at line 186 of file HoughPlaneBase.h.
|
private |
number of layers
Definition at line 85 of file HoughPlaneMulti.h.
|
privateinherited |
# of curve patterns.
Definition at line 99 of file HoughPlane.h.
|
privateinherited |
# of x bins.
Definition at line 195 of file HoughPlaneBase.h.
|
privateinherited |
# of y bins.
Definition at line 207 of file HoughPlaneBase.h.
|
privateinherited |
Curve patterns.
Definition at line 96 of file HoughPlane.h.
|
privateinherited |
Regions.
Definition at line 222 of file HoughPlaneBase.h.
|
privateinherited |
Hough transformation.
Definition at line 189 of file HoughPlaneBase.h.
|
private |
usage of each layer
Definition at line 89 of file HoughPlaneMulti.h.
|
privateinherited |
x max.
Definition at line 201 of file HoughPlaneBase.h.
|
privateinherited |
x min.
Definition at line 198 of file HoughPlaneBase.h.
|
privateinherited |
Size of x bin.
Definition at line 204 of file HoughPlaneBase.h.
|
privateinherited |
y max.
Definition at line 213 of file HoughPlaneBase.h.
|
privateinherited |
y min.
Definition at line 210 of file HoughPlaneBase.h.
|
privateinherited |
Size of y bin.
Definition at line 216 of file HoughPlaneBase.h.