PandaRoot
PndFtsCellTrackletGenerator.h
Go to the documentation of this file.
1 /*
2  * PndFtsCellTrackletGenerator.h
3  *
4  * Created on: May 24, 2016
5  * Author: kibellus
6  */
7 #include <vector>
8 #include <map>
9 #include <algorithm>
10 
11 #include "PndFtsHit.h"
12 #include "PndTrackCand.h"
13 
14 #include "TMath.h"
15 #include "TVector3.h"
16 #include "TLine.h"
17 
18 #ifndef PNDTOOLS_PNDFORWARDTRACKFINDER_PNDFTSCELLTRACKLETGENERATOR_H_
19 #define PNDTOOLS_PNDFORWARDTRACKFINDER_PNDFTSCELLTRACKLETGENERATOR_H_
20 using namespace std;
22  public:
24  virtual ~PndFtsCellTrackletGenerator();
25  void reset();
26  void setHits(std::vector<PndFtsHit *> hits);
27  void findTracks();
28  map<Int_t, vector<PndTrackCand>> getTracklets() { return fTracklets; }
29 
30  private:
31  std::vector<PndFtsHit *> fHits;
32  map<Int_t, vector<PndTrackCand>> fTracklets;
33 
34  void findTracks(map<Int_t, vector<PndFtsHit *>>, Int_t layer);
35  map<Int_t, vector<PndFtsHit *>> splitLayers(vector<PndFtsHit *> hits);
36  map<Int_t, PndTrackCand> FindTracklets(vector<PndFtsHit *> hits);
37  map<Int_t, std::vector<Int_t>> getNeighbors(vector<PndFtsHit *> hits);
38 
39  void transform(Bool_t transToNewSystem, PndFtsHit *hit);
40  TMatrix getRotationMatrix(Double_t angle);
41  // ClassDef(PndFtsCellTrackletGenerator,1);
42 };
43 
44 #endif /* PNDTOOLS_PNDFORWARDTRACKFINDER_PNDFTSCELLTRACKLETGENERATOR_H_ */
map< Int_t, vector< PndTrackCand > > getTracklets()
STL namespace.