13#define TRG_SHORT_NAMES
14#define TRGCDC_SHORT_NAMES
16#include "trg/trg/Utilities.h"
17#include "trg/cdc/HoughPlaneMulti2.h"
26 const TCHTransformation& trans,
39 for (
unsigned i = 0; i <
N_LAYERS; i++)
41 for (
unsigned i = 0; i <
_nLayers; i++)
44 TRGUtil::itostring(i),
54 <<
"Too many layers requested(" <<
_nLayers <<
") : "
55 <<
"max #layers = " <<
N_LAYERS << std::endl;
60 for (
unsigned i = 0; i <
_nLayers; i++)
68 for (
unsigned i = 0; i <
_nLayers; i++) {
73 for (
unsigned j = 0; j < n; j++) {
75 for (
unsigned k = 0; k < 32; k++) {
88 for (
unsigned i = 1; i <
_nLayers; i++) {
93 for (
unsigned j = 0; j < n; j++) {
95 for (
unsigned k = 0; k < 32; k++) {
unsigned _n
nX * nY / 32 + 1
unsigned _nLayers
# of layers.
TRGCDCHoughPlaneBoolean * _layers[N_LAYERS]
Hough plane for each layer.
bool _usage[N_LAYERS]
Used or not.
A class to represent a Hough parameter plane.
int *const _cell
Counters.
float xMin(void) const
returns min. of x.
virtual ~TRGCDCHoughPlaneMulti2()
Destructor.
unsigned nY(void) const
return # of y bins.
void mergeOuters(void)
Merge outer layers into one.
TRGCDCHoughPlaneMulti2(const std::string &name, const TRGCDCHoughTransformation &transformation, unsigned nX, float xMin, float xMax, unsigned nY, float yMin, float yMax, unsigned nLayers)
Contructor.
void add(unsigned cellId, int weight) override
Add to a cell.
float xMax(void) const
returns max. of x.
#define N_LAYERS
number of layers
void merge(void)
Merge layers into one.
float yMax(void) const
returns max. of y.
unsigned nLayers(void) const
returns # of Hough Boolean layers.
std::string name(void) const
returns name.
unsigned nX(void) const
returns # of x bins.
float yMin(void) const
returns min. of y.
Abstract base class for different kinds of events.