FairRoot/PandaRoot
PndFtsLineApproximator.h
Go to the documentation of this file.
1 /*
2  * PndFtsLineApproximator.h
3  *
4  * Created on: Jun 2, 2016
5  * Author: kibellus
6  */
7 #include <vector>
8 #include "PndLine.h"
9 #include "TMatrix.h"
10 #include "TMath.h"
11 #include "PndTrackCand.h"
12 #include "PndFtsHit.h"
14 //#include "PndLineApproximation.h"
15 #include "PndFtsLineComparator.h"
16 #include "Tuple.h"
17 
18 using namespace std;
19 
20 #ifndef PNDTOOLS_PNDFORWARDTRACKFINDER_PNDFTSLINEAPPROXIMATOR_H_
21 #define PNDTOOLS_PNDFORWARDTRACKFINDER_PNDFTSLINEAPPROXIMATOR_H_
22 
24 public:
27  PndFtsLineApproximator() : fComparator(compDist,compAngle){}
28  virtual ~PndFtsLineApproximator();
29  PndFtsExpandedTrackCand createExpandedTrackCand(PndTrackCand &cand);
30 private:
31  vector<PndLineApproximation> approxLines(PndFtsHit* h1 ,PndFtsHit* h2);
32  vector<PndLineApproximation> approxInnerLine(PndFtsHit* h1 ,PndFtsHit* h2);
33  vector<PndLineApproximation> approxOuterLine(PndFtsHit* h1 ,PndFtsHit* h2);
34  void addLine(vector<vector<PndLineApproximation>> &lines, PndLineApproximation &l);
35  //PndLineApproximation createLine(vector<PndLineApproximation> lines);
36 
37  PndFtsHit* copyHitWithNewPosition(PndFtsHit *h, Double_t x, Double_t z);
38 
39  void transform(Bool_t transToNewSystem, PndFtsHit* hit);
40  TMatrix getRotationMatrix(Double_t angle);
42 };
43 
44 #endif /* PNDTOOLS_PNDFORWARDTRACKFINDER_PNDFTSLINEAPPROXIMATOR_H_ */
PndFtsLineComparator fComparator
Double_t
Double_t z
int hit(Int_t nEvents=0, TString inFile="sim.root", TString parFile="par.root", TString inDigi="digi.root", TString outFile="hit.root", Int_t timeBased=0)
Definition: hit.C:1
Double_t x
Double_t angle