28 #ifndef PndHoughSpace_H_ 29 #define PndHoughSpace_H_ 36 bool operator()(
const std::pair<int, int> &lhs,
const std::pair<int, int> &rhs)
const {
return lhs.second >= rhs.second; }
53 TVector3 GetCircleFromBin(Int_t bin);
55 Int_t GetBin(Int_t binX, Int_t binY);
57 void Fill(
double x,
double y);
59 void FindMaxima(std::vector<TVector3> &FoundMaxima);
61 void clear() { HoughSpaceMapBinToEntries.clear(); }
63 Int_t
GetEntries() {
return HoughSpaceMapBinToEntries.size(); }
70 std::map<int, int> HoughSpaceMapBinToEntries;
72 std::vector<double> bordersX;
73 std::vector<double> bordersY;
79 Int_t fCounterUnderflowXY;
80 Int_t fCounterUnderflowXOverflowY;
81 Int_t fCounterUnderflowX;
82 Int_t fCounterOverflowXUnderflowY;
83 Int_t fCounterOveflowXY;
84 Int_t fCounterOverflowX;
85 Int_t fCounterUnerflowY;
86 Int_t fCounterOverflowY;
std::vector< double > GetYBorder()
Returns a vector containing the borders of each bin of the y axis.
virtual void SetNBins1(double n)
Sets the number of bins in x direction of the Hough space.
std::vector< double > GetXBorder()
Returns a vector containing the borders of each bin of the x axis.
bool operator()(const std::pair< int, int > &lhs, const std::pair< int, int > &rhs) const
virtual void SetNBins2(double n)
Sets the number of bins in y direction of the Hough space.
Int_t GetEntries()
Returns the number of filled bins in the Hough space.
void clear()
Clears the Hough space.