PandaRoot
PndFtsLineComparator.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 /*
14  * PndFtsLineComparator.h
15  *
16  * Created on: Jun 2, 2016
17  * Author: kibellus
18  */
19 
20 #include "PndLine.h"
21 #include "TVector3.h"
22 #include "TMath.h"
23 
24 #include <iostream>
25 
26 #ifndef PNDTOOLS_PNDFORWARDTRACKFINDER_PNDFTSLINECOMPARATOR_H_
27 #define PNDTOOLS_PNDFORWARDTRACKFINDER_PNDFTSLINECOMPARATOR_H_
28 
29 using namespace std;
30 
32  public:
33  PndFtsLineComparator(Double_t maxDistance, Double_t maxAngle, Double_t z = 0) : fMaxDistance(maxDistance), fMaxAngle(maxAngle), zValue(z) {}
34  virtual ~PndFtsLineComparator();
35  Bool_t areEqual(PndLine l1, PndLine l2);
36  Bool_t areEqual2D(PndLine l1, PndLine l2);
37  Double_t getQuality3D(PndLine l1, PndLine l2);
38  Double_t getQuality(PndLine l1, PndLine l2);
39  void setZValue(Double_t z) { zValue = z; }
40  Double_t getAngle(TVector3 d1, TVector3 d2);
41  Double_t getDist(TVector3 b1, TVector3 b2, TVector3 d1, TVector3 d2);
42  Double_t getAngle2D(TVector3 d1, TVector3 d2);
43  Double_t getDist2D(TVector3 b1, TVector3 b2, TVector3 d1, TVector3 d2);
44  void setMaxDistance(Double_t d) { fMaxDistance = d; }
45  void setMaxAngle(Double_t a) { fMaxAngle = a; }
46  Double_t getMaxDist() { return fMaxDistance; }
47  Double_t getMaxAngle() { return fMaxAngle; }
48 
49  private:
50  Double_t fMaxDistance;
51  Double_t fMaxAngle;
52  Double_t zValue;
53 };
54 
55 #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)