FairRoot/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  vector<PndFtsHit*> result;
28  for(size_t i=0;i<fLines->size();i++){
29  for(size_t j=0;j<(*fLines)[i].getHits().size();j++){
30  result.push_back((*fLines)[i].getHits()[j]);
31  }
32  }
33  return result;
34  }
35  vector<PndFtsHit*> fHits;
36  void addHit(PndFtsHit* h){fHits.push_back(h);}
37  Double_t getDistTo(PndLine l,Int_t layer);
38 private:
39  std::vector<PndLineApproximation> *fLines;
41  PndFtsHit* copyHit(PndFtsHit *h);
42  void refitAllHits();
43  void refitAllTracks();
44  void refitHit(PndLine &l,PndFtsHit* hit);
45 };
46 
47 #endif /* PNDTOOLS_PNDFORWARDTRACKFINDER_PNDTRACKCOLLECTION_H_ */
std::vector< PndLineApproximation > * fLines
Int_t i
Definition: run_full.C:25
Double_t
void addHit(PndFtsHit *h)
vector< PndFtsHit * > fHits
vector< PndLineApproximation > * getLines()
Int_t layer
Definition: reco_muo.C:36
PndSdsMCPoint * hit
Definition: anasim.C:70
vector< PndFtsHit * > getHits()