FairRoot/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:
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  fBefore = b;
34  cands = c;
35  }
36  PndLineApproximation getBestApproxTo(PndLine l1, Int_t layer);
37  PndLineApproximation getBestSkewedApproxTo(PndLine l2, Int_t layer);
38 private:
39  vector<PndLineApproximation> fBefore;
40  map<Int_t, vector<PndFtsExpandedTrackCand>> cands;
42  TClonesArray *planes;
43  TClonesArray *planesHit;
44 
45  int asd = 0;
46 };
47 
48 #endif /* PNDTOOLS_PNDFORWARDTRACKFINDER_PNDWAYFOLLOWER_H_ */
TClonesArray * planesHit
map< Int_t, vector< PndFtsExpandedTrackCand > > cands
Double_t p
Definition: anasim.C:58
TTree * b
PndTransMap * map
Definition: sim_emc_apd.C:99
PndFtsLineComparator fLineComp
static Double_t qualiT
PndWayFollower(TClonesArray *p, TClonesArray *p2)
void init(vector< PndLineApproximation > b, map< Int_t, vector< PndFtsExpandedTrackCand >> c)
Double_t
TClonesArray * planes
vector< PndLineApproximation > fBefore
TPad * p2
Definition: hist-t7.C:117
static Double_t compDist
Int_t layer
Definition: reco_muo.C:36
static Double_t compAngle