 |
Belle II Software
release-05-01-25
|
14 #ifndef TRGCDCHoughPlane_FLAG_
15 #define TRGCDCHoughPlane_FLAG_
18 #include "trg/cdc/HoughPlaneBase.h"
20 #ifdef TRGCDC_SHORT_NAMES
21 #define TCHPlane TRGCDCHoughPlane
30 class TRGCDCHoughPlane :
public TRGCDCHoughPlaneBase {
51 unsigned entry(
unsigned id)
const override;
54 unsigned entry(
unsigned x,
unsigned y)
const override;
68 void clear(
void)
override;
82 void add(
unsigned cellId,
int weight)
override;
111 memset(
_cell, 0,
nX() *
nY() *
sizeof(
int));
119 memset(
_cell, 0,
nX() *
nY() *
sizeof(
int));
145 for (
unsigned i = 0; i <
nX() *
nY(); i++)
unsigned * _patterns
Curve patterns.
A class to represent a Hough parameter plane.
void clear(void) override
clear all entries.
virtual void voteByPattern(float xOffset, int weight=1)
Votes using a pattern.
int maxEntry(void) const override
returns max. entry in a plane.
virtual ~TRGCDCHoughPlane()
Destructor.
float yMax(void) const
returns max. of y.
unsigned serialId(unsigned x, unsigned y) const
returns serial ID for position (x, y).
std::string name(void) const
returns name.
void id(unsigned serialId, unsigned &x, unsigned &y) const
returns x and y for serialID.
unsigned setEntry(unsigned serialId, unsigned n) override
Sets entry.
TRGCDCHoughPlane(const std::string &name, const TRGCDCHoughTransformation &transformation, unsigned nX, float xMin, float xMax, unsigned nY, float yMin, float yMax)
Contructor.
void add(unsigned cellId, int weight) override
Add to a cell.
unsigned nY(void) const
return # of y bins.
virtual void clear(void)=0
Clears all entries.
unsigned entry(unsigned id) const override
returns entry in a cell.
unsigned _nPatterns
# of curve patterns.
Abstract base class for different kinds of events.
void registerPattern(unsigned id) override
Registers a pattern on a Hough plane with (r, phi=0).
const TRGCDCHoughTransformation & transformation(void) const
returns Hough transformation object.
virtual unsigned nActiveCellsInPattern(void) const
returns # of active cells in the pattern.
float xMin(void) const
returns min. of x.
float xMax(void) const
returns max. of x.
void clearCells(void)
Clears entires only.
unsigned nX(void) const
returns # of x bins.
float yMin(void) const
returns min. of y.
int *const _cell
Counters.