FairRoot/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)
22  : fMaxDistance(maxDistance), fMaxAngle(maxAngle), zValue(z){}
23  virtual ~PndFtsLineComparator();
24  Bool_t areEqual(PndLine l1, PndLine l2);
25  Bool_t areEqual2D(PndLine l1, PndLine l2);
26  Double_t getQuality3D(PndLine l1, PndLine l2);
27  Double_t getQuality(PndLine l1, PndLine l2);
28  void setZValue(Double_t z){zValue = z;}
29  Double_t getAngle(TVector3 d1,TVector3 d2);
30  Double_t getDist(TVector3 b1,TVector3 b2,TVector3 d1,TVector3 d2);
31  Double_t getAngle2D(TVector3 d1,TVector3 d2);
32  Double_t getDist2D(TVector3 b1,TVector3 b2,TVector3 d1,TVector3 d2);
33  void setMaxDistance(Double_t d){fMaxDistance=d;}
34  void setMaxAngle(Double_t a){fMaxAngle=a;}
35  Double_t getMaxDist(){return fMaxDistance;}
36  Double_t getMaxAngle(){return fMaxAngle;}
37 private:
41 };
42 
43 #endif /* PNDTOOLS_PNDFORWARDTRACKFINDER_PNDFTSLINECOMPARATOR_H_ */
TObjArray * d
void setZValue(Double_t z)
Int_t a
Definition: anaLmdDigi.C:126
Double_t
Double_t z
PndFtsLineComparator(Double_t maxDistance, Double_t maxAngle, Double_t z=0)
void setMaxDistance(Double_t d)
void setMaxAngle(Double_t a)