16 #ifndef PndHoughSpace_H_ 17 #define PndHoughSpace_H_ 24 bool operator()(
const std::pair<int, int> &lhs,
const std::pair<int, int> &rhs)
const {
return lhs.second >= rhs.second; }
41 TVector3 GetCircleFromBin(Int_t bin);
43 Int_t GetBin(Int_t binX, Int_t binY);
45 void Fill(
double x,
double y);
47 void FindMaxima(std::vector<TVector3> &FoundMaxima);
49 void clear() { HoughSpaceMapBinToEntries.clear(); }
51 Int_t
GetEntries() {
return HoughSpaceMapBinToEntries.size(); }
58 std::map<int, int> HoughSpaceMapBinToEntries;
60 std::vector<double> bordersX;
61 std::vector<double> bordersY;
67 Int_t fCounterUnderflowXY;
68 Int_t fCounterUnderflowXOverflowY;
69 Int_t fCounterUnderflowX;
70 Int_t fCounterOverflowXUnderflowY;
71 Int_t fCounterOveflowXY;
72 Int_t fCounterOverflowX;
73 Int_t fCounterUnerflowY;
74 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.