PandaRoot
PndTrackCollection.h
Go to the documentation of this file.
1 /*
2  * PndTrackCollection.h
3  *
4  * Created on: Jul 28, 2016
5  * Author: kibellus
6  */
7 
8 #ifndef PNDTOOLS_PNDFORWARDTRACKFINDER_PNDTRACKCOLLECTION_H_
9 #define PNDTOOLS_PNDFORWARDTRACKFINDER_PNDTRACKCOLLECTION_H_
10 
11 #include <vector>
12 
13 #include "PndLineApproximation.h"
14 
15 using namespace std;
16 
18  public:
20  virtual ~PndTrackCollection();
21  void add(PndLineApproximation l, Bool_t skewed);
22  PndLine getCurrLine() { return fCurrLine; }
23  PndLine getLastLine() { return (*fLines)[fLines->size() - 1].getLine(); }
24  vector<PndLineApproximation> *getLines() { return fLines; }
25  PndTrack getPndTrack(map<Int_t, PndFtsHit *> orgHits);
26  vector<PndFtsHit *> getHits()
27  {
28  vector<PndFtsHit *> result;
29  for (size_t i = 0; i < fLines->size(); i++) {
30  for (size_t j = 0; j < (*fLines)[i].getHits().size(); j++) {
31  result.push_back((*fLines)[i].getHits()[j]);
32  }
33  }
34  return result;
35  }
36  vector<PndFtsHit *> fHits;
37  void addHit(PndFtsHit *h) { fHits.push_back(h); }
38  Double_t getDistTo(PndLine l, Int_t layer);
39 
40  private:
41  std::vector<PndLineApproximation> *fLines;
42  PndLine fCurrLine;
43  PndFtsHit *copyHit(PndFtsHit *h);
44  void refitAllHits();
45  void refitAllTracks();
46  void refitHit(PndLine &l, PndFtsHit *hit);
47 };
48 
49 #endif /* PNDTOOLS_PNDFORWARDTRACKFINDER_PNDTRACKCOLLECTION_H_ */
vector< PndFtsHit * > fHits
STL namespace.
unsigned int i
Definition: P4_F32vec4.h:21
void addHit(PndFtsHit *h)
vector< PndLineApproximation > * getLines()
vector< PndFtsHit * > getHits()