PandaRoot
PndHoughTransformation.h
Go to the documentation of this file.
1 // PndHoughTransformation
3 // Hough transformation based on the apollonius problem
5 
16 #ifndef PndHoughTransformation_H_
17 #define PndHoughTransformation_H_
18 
20 #include "PndHoughApollonius.h"
21 #include "PndHoughSpace.h"
22 #include "PndHoughUtilities.h"
23 #include "PndHoughData.h"
24 
25 #include <vector>
26 
28 
29  public:
30  PndHoughTransformation(PndHoughData *data) //: fHoughSpace(data->GetHoughSpace())
31  {
32  fPndHoughMultipletCreator = new PndHoughMultipletCreator();
33  fPndHoughApollonius = new PndHoughApollonius(data);
34  // fPndHoughUtilities = new PndHoughUtilities(data);
35  fData = data;
36  };
37 
39  {
40  delete fPndHoughMultipletCreator;
41  delete fPndHoughApollonius;
42  // delete fPndHoughUtilities;
43  };
44 
46  vector<TVector3> FindMaximaWithHoughTransformation(PndTrackCand &trackCand);
48  void HoughSpace(PndTrackCand &trackCand);
50  TVector3 MaximumSelectiondCandToTrack(PndTrackCand &trackCand, vector<TVector3> &TrackCircleVec);
51 
52  virtual void SetUtilities(PndHoughUtilities *utilities) { fPndHoughUtilities = utilities; };
53 
54  private:
55  // PndHoughSpace *fHoughSpace = nullptr;
56  PndHoughMultipletCreator *fPndHoughMultipletCreator = nullptr;
57  PndHoughApollonius *fPndHoughApollonius = nullptr;
58  PndHoughUtilities *fPndHoughUtilities = nullptr;
59  PndHoughData *fData = nullptr;
60 
61  ClassDef(PndHoughTransformation, 1);
62 };
63 
64 #endif /*PndHoughTransformation_H_*/
vector< TVector3 > FindMaximaWithHoughTransformation(PndTrackCand &trackCand)
Main class of the Hough transformation: the Hough space is filled and the maximum is returned...
void HoughSpace(PndTrackCand &trackCand)
Here the Hough space is filled by calcualting all Apollonius circles.
virtual void SetUtilities(PndHoughUtilities *utilities)
PndHoughTransformation(PndHoughData *data)
TVector3 MaximumSelectiondCandToTrack(PndTrackCand &trackCand, vector< TVector3 > &TrackCircleVec)
Selects one maximum of many by choosing the one with the smalles RMS to the track.