 |
Belle II Software
release-05-01-25
|
14 #define TRGCDC_SHORT_NAMES
16 #include "trg/cdc/HoughPlaneMulti.h"
24 TRGCDCHoughPlaneMulti::TRGCDCHoughPlaneMulti(
const std::string& name,
25 const TCHTransformation& trans,
37 for (
unsigned i = 0; i <
N_LAYERS; i++)
39 for (
unsigned i = 0; i <
_nLayers; i++)
49 std::cout <<
"Too many layers requested("
57 for (
unsigned i = 0; i <
_nLayers; i++)
72 std::cout <<
"TRGCDCHoughPlaneMulti::vote !!! (" <<
name()
73 <<
") given layerId(" << layerId <<
") is too big : max="
80 _layers[layerId]->
vote(rx, ry, (
int) targetCharge, weight);
86 const unsigned nCells =
nX() *
nY();
97 memset(
_cell, 0, nCells *
sizeof(
unsigned));
99 for (
unsigned j = 0; j <
_nLayers; j++) {
102 if (!
_usage[j])
continue;
103 for (
unsigned i = 0; i < nCells; i++) {
A class to represent a Hough parameter plane.
void vote(float rx, float ry, float charge, const TRGCDCHoughTransformation &hough, unsigned weight, unsigned layerId)
vote
TRGCDCHoughPlane * _layers[N_LAYERS]
layers of TRGCDCHoughPlane
float yMax(void) const
returns max. of y.
std::string name(void) const
returns name.
virtual ~TRGCDCHoughPlaneMulti()
Destructor.
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.
Abstract base class for different kinds of events.
void merge(void)
merge function
#define N_LAYERS
number of layers
float xMin(void) const
returns min. of x.
unsigned _nLayers
number of layers
float xMax(void) const
returns max. of x.
virtual void vote(float rx, float ry, int weight=1)
Voring.
unsigned nX(void) const
returns # of x bins.
float yMin(void) const
returns min. of y.
int *const _cell
Counters.
bool _usage[N_LAYERS]
usage of each layer