PandaRoot
PndSttTrackFinderIdeal.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndSttTrackFinderIdeal header file -----
3 // ----- Created 28/03/06 by R. Castelijns -----
4 // -------------------------------------------------------------------------
5 
15 #ifndef PNDSTTTRACKFINDERIDEAL
16 #define PNDSTTTRACKFINDERIDEAL 1
17 
18 #include "PndSttTrackFinder.h"
19 #include "PndMCTrack.h"
20 
21 #include "TList.h"
22 #include "TClonesArray.h"
23 
24 class PndTrackCand;
25 class PndSttHit;
26 class FairMCPoint;
27 // class TClonesArray;
28 
30 
31  public:
32  void GetTrackletCircular(Double_t firstX, Double_t firstY, Double_t firstR, Double_t secondX, Double_t secondY, Double_t secondR, Double_t thirdX, Double_t thirdY,
33  Double_t thirdR, Double_t *circleRadii, Double_t *circleCentersX, Double_t *circleCentersY) const;
34 
35  // void ZoomTrack(Double_t &dSeed, Double_t &phiSeed, Double_t &rSeed, PndSttTrack *track); // not implemented
36  void GetTrack(Double_t &dSeed, Double_t &phiSeed, Double_t &rSeed, Double_t &zSeed, Double_t &tanLamSeed, Int_t mcTrackNo);
37 
40 
42  PndSttTrackFinderIdeal(Int_t verbose);
43 
45  virtual ~PndSttTrackFinderIdeal();
46 
48  virtual void Init();
49 
60  virtual Int_t DoFind(TClonesArray *trackCandArray, TClonesArray *trackArray, TClonesArray *helixHitArray);
61 
62  virtual void AddHitCollection(TClonesArray *mHitArray, TClonesArray *mPointArray)
63  {
64  fHitCollectionList.Add(mHitArray);
65  fPointCollectionList.Add(mPointArray);
66  }
67  void plotAllStraws();
68  Bool_t putStraw(Double_t xpos, Double_t ypos, Double_t radius);
69 
70  TClonesArray *fTubeArray;
71  void SetTubeArray(TClonesArray *tubeArray) { fTubeArray = tubeArray; };
72 
73  private:
75  TClonesArray *fMCTrackArray;
76 
77  Bool_t rootoutput;
78 
79  TList fHitCollectionList;
80  TList fPointCollectionList;
81  PndSttHit *GetHitFromCollections(Int_t hitCounter);
82  FairMCPoint *GetPointFromCollections(Int_t hitCounter);
83 
84  ClassDef(PndSttTrackFinderIdeal, 1);
85 };
86 
87 #endif
virtual void Init()
virtual void AddHitCollection(TClonesArray *mHitArray, TClonesArray *mPointArray)
void GetTrackletCircular(Double_t firstX, Double_t firstY, Double_t firstR, Double_t secondX, Double_t secondY, Double_t secondR, Double_t thirdX, Double_t thirdY, Double_t thirdR, Double_t *circleRadii, Double_t *circleCentersX, Double_t *circleCentersY) const
virtual Int_t DoFind(TClonesArray *trackCandArray, TClonesArray *trackArray, TClonesArray *helixHitArray)
Bool_t putStraw(Double_t xpos, Double_t ypos, Double_t radius)
void SetTubeArray(TClonesArray *tubeArray)
virtual ~PndSttTrackFinderIdeal()
void GetTrack(Double_t &dSeed, Double_t &phiSeed, Double_t &rSeed, Double_t &zSeed, Double_t &tanLamSeed, Int_t mcTrackNo)