PandaRoot
PndLineCombination.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  * PndLineCombination.h
15  *
16  * Created on: Jul 12, 2016
17  * Author: kibellus
18  */
19 
20 #ifndef PNDTOOLS_PNDFORWARDTRACKFINDER_PNDLINECOMBINATION_H_
21 #define PNDTOOLS_PNDFORWARDTRACKFINDER_PNDLINECOMBINATION_H_
22 
23 #include "PndLineApproximation.h"
24 
26  public:
27  PndLineCombination(PndLineApproximation a1, PndLineApproximation *a2, Double_t q) : approx1(a1), approx2(a2), quality(q) {}
28  PndLineCombination(PndLineApproximation a1) : approx1(a1), approx2(nullptr), quality(-1) {}
29  virtual ~PndLineCombination();
30  PndLineApproximation getApprox1() { return approx1; }
31  PndLineApproximation *getApprox2() { return approx2; }
32  Double_t getQuality()
33  {
34  if (approx2 == nullptr)
35  return 99999999999;
36  else
37  return quality;
38  }
39  void setApprox1(PndLineApproximation a1) { approx1 = a1; }
40  void setApprox2(PndLineApproximation *a2) { approx2 = a2; } // TODO: speicher Freigeben
41  void setQuality(Double_t q) { quality = q; }
42 
43  private:
44  PndLineApproximation approx1;
45  PndLineApproximation *approx2;
46  Double_t quality;
47 };
48 
49 #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)