PandaRoot
PndLineCombination.h
Go to the documentation of this file.
1 /*
2  * PndLineCombination.h
3  *
4  * Created on: Jul 12, 2016
5  * Author: kibellus
6  */
7 
8 #ifndef PNDTOOLS_PNDFORWARDTRACKFINDER_PNDLINECOMBINATION_H_
9 #define PNDTOOLS_PNDFORWARDTRACKFINDER_PNDLINECOMBINATION_H_
10 
11 #include "PndLineApproximation.h"
12 
14  public:
15  PndLineCombination(PndLineApproximation a1, PndLineApproximation *a2, Double_t q) : approx1(a1), approx2(a2), quality(q) {}
16  PndLineCombination(PndLineApproximation a1) : approx1(a1), approx2(nullptr), quality(-1) {}
17  virtual ~PndLineCombination();
18  PndLineApproximation getApprox1() { return approx1; }
19  PndLineApproximation *getApprox2() { return approx2; }
20  Double_t getQuality()
21  {
22  if (approx2 == nullptr)
23  return 99999999999;
24  else
25  return quality;
26  }
27  void setApprox1(PndLineApproximation a1) { approx1 = a1; }
28  void setApprox2(PndLineApproximation *a2) { approx2 = a2; } // TODO: speicher Freigeben
29  void setQuality(Double_t q) { quality = q; }
30 
31  private:
32  PndLineApproximation approx1;
33  PndLineApproximation *approx2;
34  Double_t quality;
35 };
36 
37 #endif /* PNDTOOLS_PNDFORWARDTRACKFINDER_PNDLINECOMBINATION_H_ */
PndLineApproximation * getApprox2()
PndLineApproximation getApprox1()
void setQuality(Double_t q)
PndLineCombination(PndLineApproximation a1)
void setApprox2(PndLineApproximation *a2)
PndLineCombination(PndLineApproximation a1, PndLineApproximation *a2, Double_t q)
virtual ~PndLineCombination()
void setApprox1(PndLineApproximation a1)