 |
Belle II Software
release-05-01-25
|
14 #define TRGCDC_SHORT_NAMES
16 #include "trg/cdc/HoughPlane.h"
25 const TCHTransformation& trans,
34 _cell(new int[nX * nY]),
209 const unsigned n =
nX() *
nY();
212 for (
unsigned i = 0; i < n; i++)
220 for (
unsigned i = 0; i < n; i++)
229 std::cout <<
"TRGCDCHoughPlane::vote !!! pattern is note defined" << std::endl;
230 if ((xOffset < 0) || (xOffset > 1))
231 std::cout <<
"TRGCDCHoughPlane::vote !!! xOffset should be (0 - 1). xOffset="
232 << xOffset << std::endl;
235 const unsigned x = unsigned(
nX() * xOffset);
236 const unsigned p = x ? (x - 1) *
nY() : 0;
237 const unsigned n =
nX() *
nY();
unsigned * _patterns
Curve patterns.
void clear(void) override
clear all entries.
virtual void voteByPattern(float xOffset, int weight=1)
Votes using a pattern.
virtual ~TRGCDCHoughPlane()
Destructor.
void id(unsigned serialId, unsigned &x, unsigned &y) const
returns x and y for serialID.
TRGCDCHoughPlane(const std::string &name, const TRGCDCHoughTransformation &transformation, unsigned nX, float xMin, float xMax, unsigned nY, float yMin, float yMax)
Contructor.
unsigned nY(void) const
return # of y bins.
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).
unsigned nX(void) const
returns # of x bins.
int *const _cell
Counters.
A class to represent a Hough parameter plane.