PandaRoot
PndWayFollower.h
Go to the documentation of this file.
1 /*
2  * PndWayFollower.h
3  *
4  * Created on: Jul 26, 2016
5  * Author: kibellus
6  */
7 
8 #ifndef PNDTOOLS_PNDFORWARDTRACKFINDER_PNDWAYFOLLOWER_H_
9 #define PNDTOOLS_PNDFORWARDTRACKFINDER_PNDWAYFOLLOWER_H_
10 
11 #include <map>
12 #include <vector>
13 #include <iostream>
15 #include "PndLineApproximation.h"
16 #include "PndFtsLineComparator.h"
17 #include "PndTrackCollection.h"
18 #include "PndLine.h"
19 #include "Tuple.h"
20 #include "TClonesArray.h"
21 
22 using namespace std;
23 
25  public:
26  static Double_t compDist;
27  static Double_t compAngle;
28  static Double_t qualiT;
29  PndWayFollower(TClonesArray *p, TClonesArray *p2) : fLineComp(compDist, compAngle), planes(p), planesHit(p2) {}
30  virtual ~PndWayFollower();
31  vector<PndTrackCollection> followLines(Int_t begin);
32  void init(vector<PndLineApproximation> b, map<Int_t, vector<PndFtsExpandedTrackCand>> c)
33  {
34  fBefore = b;
35  cands = c;
36  }
37  PndLineApproximation getBestApproxTo(PndLine l1, Int_t layer);
38  PndLineApproximation getBestSkewedApproxTo(PndLine l2, Int_t layer);
39 
40  private:
41  vector<PndLineApproximation> fBefore;
42  map<Int_t, vector<PndFtsExpandedTrackCand>> cands;
43  PndFtsLineComparator fLineComp;
44  TClonesArray *planes;
45  TClonesArray *planesHit;
46 
47  int asd = 0;
48 };
49 
50 #endif /* PNDTOOLS_PNDFORWARDTRACKFINDER_PNDWAYFOLLOWER_H_ */
static Double_t qualiT
PndWayFollower(TClonesArray *p, TClonesArray *p2)
STL namespace.
void init(vector< PndLineApproximation > b, map< Int_t, vector< PndFtsExpandedTrackCand >> c)
static Double_t compDist
static Double_t compAngle