PandaRoot
PndFtsLineComparator.h
Go to the documentation of this file.
1 /*
2  * PndFtsLineComparator.h
3  *
4  * Created on: Jun 2, 2016
5  * Author: kibellus
6  */
7 
8 #include "PndLine.h"
9 #include "TVector3.h"
10 #include "TMath.h"
11 
12 #include <iostream>
13 
14 #ifndef PNDTOOLS_PNDFORWARDTRACKFINDER_PNDFTSLINECOMPARATOR_H_
15 #define PNDTOOLS_PNDFORWARDTRACKFINDER_PNDFTSLINECOMPARATOR_H_
16 
17 using namespace std;
18 
20  public:
21  PndFtsLineComparator(Double_t maxDistance, Double_t maxAngle, Double_t z = 0) : fMaxDistance(maxDistance), fMaxAngle(maxAngle), zValue(z) {}
22  virtual ~PndFtsLineComparator();
23  Bool_t areEqual(PndLine l1, PndLine l2);
24  Bool_t areEqual2D(PndLine l1, PndLine l2);
25  Double_t getQuality3D(PndLine l1, PndLine l2);
26  Double_t getQuality(PndLine l1, PndLine l2);
27  void setZValue(Double_t z) { zValue = z; }
28  Double_t getAngle(TVector3 d1, TVector3 d2);
29  Double_t getDist(TVector3 b1, TVector3 b2, TVector3 d1, TVector3 d2);
30  Double_t getAngle2D(TVector3 d1, TVector3 d2);
31  Double_t getDist2D(TVector3 b1, TVector3 b2, TVector3 d1, TVector3 d2);
32  void setMaxDistance(Double_t d) { fMaxDistance = d; }
33  void setMaxAngle(Double_t a) { fMaxAngle = a; }
34  Double_t getMaxDist() { return fMaxDistance; }
35  Double_t getMaxAngle() { return fMaxAngle; }
36 
37  private:
38  Double_t fMaxDistance;
39  Double_t fMaxAngle;
40  Double_t zValue;
41 };
42 
43 #endif /* PNDTOOLS_PNDFORWARDTRACKFINDER_PNDFTSLINECOMPARATOR_H_ */
STL namespace.
void setZValue(Double_t z)
PndFtsLineComparator(Double_t maxDistance, Double_t maxAngle, Double_t z=0)
void setMaxDistance(Double_t d)
void setMaxAngle(Double_t a)