13#ifndef TRGCDCHoughPlaneMulti_FLAG_
14#define TRGCDCHoughPlaneMulti_FLAG_
16#include "trg/cdc/HoughPlane.h"
18#ifdef TRGCDC_SHORT_NAMES
19#define TCHPlaneMulti TRGCDCHoughPlaneMulti
57 void dump(
const std::string& message = std::string(
""),
58 const std::string& prefix = std::string(
""))
const override;
62 void clear(
void)
override;
75 void vote(
float phi,
unsigned layerId,
int weight);
96 for (
unsigned i = 0; i <
N_LAYERS; i++)
A class to represent a Hough parameter plane.
unsigned _nLayers
number of layers
virtual unsigned nActiveCellsInPattern(void) const
returns # of active cells in the pattern.
TRGCDCHoughPlane * _layers[N_LAYERS]
layers of TRGCDCHoughPlane
bool _usage[N_LAYERS]
usage of each layer
A class to represent a Hough parameter plane.
void registerPattern(unsigned id) override
registers a pattern..
virtual void vote(float rx, float ry, int weight=1)
Voring.
float xMin(void) const
returns min. of x.
virtual void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
dumps debug information.
unsigned nY(void) const
return # of y bins.
virtual ~TRGCDCHoughPlaneMulti()
Destructor.
float xMax(void) const
returns max. of x.
float charge(void) const
returns charge for this plane.
virtual unsigned nActiveCellsInPattern(void) const
returns # of active cells in the pattern.
void id(unsigned serialId, unsigned &x, unsigned &y) const
returns x and y for serialID.
#define N_LAYERS
number of layers
void vote(float rx, float ry, float charge, const TRGCDCHoughTransformation &hough, unsigned weight, unsigned layerId)
vote
void merge(void)
merge function
float yMax(void) const
returns max. of y.
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.
const TRGCDCHoughTransformation & transformation(void) const
returns Hough transformation object.
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.