PandaRoot
PndFtsCellTrackletGenerator.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 /*
14  * PndFtsCellTrackletGenerator.h
15  *
16  * Created on: May 24, 2016
17  * Author: kibellus
18  */
19 #include <vector>
20 #include <map>
21 #include <algorithm>
22 
23 #include "PndFtsHit.h"
24 #include "PndTrackCand.h"
25 
26 #include "TMath.h"
27 #include "TVector3.h"
28 #include "TLine.h"
29 
30 #ifndef PNDTOOLS_PNDFORWARDTRACKFINDER_PNDFTSCELLTRACKLETGENERATOR_H_
31 #define PNDTOOLS_PNDFORWARDTRACKFINDER_PNDFTSCELLTRACKLETGENERATOR_H_
32 using namespace std;
34  public:
36  virtual ~PndFtsCellTrackletGenerator();
37  void reset();
38  void setHits(std::vector<PndFtsHit *> hits);
39  void findTracks();
40  map<Int_t, vector<PndTrackCand>> getTracklets() { return fTracklets; }
41 
42  private:
43  std::vector<PndFtsHit *> fHits;
44  map<Int_t, vector<PndTrackCand>> fTracklets;
45 
46  void findTracks(map<Int_t, vector<PndFtsHit *>>, Int_t layer);
47  map<Int_t, vector<PndFtsHit *>> splitLayers(vector<PndFtsHit *> hits);
48  map<Int_t, PndTrackCand> FindTracklets(vector<PndFtsHit *> hits);
49  map<Int_t, std::vector<Int_t>> getNeighbors(vector<PndFtsHit *> hits);
50 
51  void transform(Bool_t transToNewSystem, PndFtsHit *hit);
52  TMatrix getRotationMatrix(Double_t angle);
53  // ClassDef(PndFtsCellTrackletGenerator,1);
54 };
55 
56 #endif /* PNDTOOLS_PNDFORWARDTRACKFINDER_PNDFTSCELLTRACKLETGENERATOR_H_ */
map< Int_t, vector< PndTrackCand > > getTracklets()
STL namespace.