FairRoot/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 private:
30  std::vector<PndFtsHit*> fHits;
31  map<Int_t, vector<PndTrackCand>> fTracklets;
32 
33  void findTracks(map<Int_t, vector<PndFtsHit*>>, Int_t layer);
34  map<Int_t,vector<PndFtsHit*>> splitLayers(vector<PndFtsHit*> hits);
35  map<Int_t, PndTrackCand> FindTracklets(vector<PndFtsHit*> hits);
36  map<Int_t, std::vector<Int_t> > getNeighbors(vector<PndFtsHit*> hits);
37 
38  void transform(Bool_t transToNewSystem, PndFtsHit* hit);
39  TMatrix getRotationMatrix(Double_t angle);
40  //ClassDef(PndFtsCellTrackletGenerator,1);
41 };
42 
43 #endif /* PNDTOOLS_PNDFORWARDTRACKFINDER_PNDFTSCELLTRACKLETGENERATOR_H_ */
PndRiemannTrackFinder findTracks
PndTransMap * map
Definition: sim_emc_apd.C:99
map< Int_t, vector< PndTrackCand > > getTracklets()
Double_t
map< Int_t, vector< PndTrackCand > > fTracklets
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
std::vector< PndFtsHit * > fHits
CbmHit * hits[nHits]
Definition: RiemannTest.C:19
Double_t angle