PandaRoot
PndMvdIdealTrackFinderTask.h
Go to the documentation of this file.
1 
8 #ifndef PNDMVDIDEALTRACKFINDERTASK_H
9 #define PNDMVDIDEALTRACKFINDERTASK_H
10 
11 #include "FairTask.h"
12 #include "PndMCTrack.h"
13 //#include "PndMvdGeoPar.h"
14 #include "PndSdsHit.h"
15 #include "PndSdsMCPoint.h"
16 //#include "PndMvdPixel.h"
17 #include "PndSdsCluster.h"
18 #include "PndTrackCand.h"
19 //#include "TrackCand.h"
20 
21 #include <string>
22 #include <vector>
23 
24 class TClonesArray;
25 
26 class PndMvdIdealTrackFinderTask : public FairTask {
27  public:
34 
36  virtual void SetParContainers();
37  virtual InitStatus Init();
38  virtual InitStatus ReInit();
39 
41  virtual void Exec(Option_t *opt);
42 
43  void PrintResult();
44  void SetVerbose(Int_t verbose) { fVerbose = verbose; };
45 
46  private:
47  // std::vector<Int_t> GetHitPerCluster(PndSdsCluster* clusterCand);
48  void ClearTrackCandMap();
49  void AddAndExpand(Int_t trackID, Int_t detnum, Int_t iHit, PndSdsHit *theHit);
50  Double_t GetTrackDip(PndMCTrack *myTrack);
51  Double_t GetTrackCurvature(PndMCTrack *myTrack);
52 
53  TString fHitBranchStrip;
54  TString fHitBranchPixel;
55  TString fClusterBranchStrip;
56  TString fClusterBranchPixel;
57  TString fDigiBranchStrip;
58  TString fDigiBranchPixel;
59  TString fMcBranch;
60  TString fTrackBranch;
61 
63  TClonesArray *fStripHitArray;
64  TClonesArray *fPixelHitArray;
65  TClonesArray *fStripClusterArray;
66  TClonesArray *fPixelClusterArray;
67  TClonesArray *fStripDigiArray;
68  TClonesArray *fPixelDigiArray;
69  TClonesArray *fMcArray;
70  TClonesArray *fTrackArray;
71 
73  TClonesArray *fTrackCandArray;
74  std::map<Int_t, PndTrackCand *> fTrackCandMap;
75 
76  void Register();
77  void Reset();
78  void ProduceHits();
79 
80  ClassDef(PndMvdIdealTrackFinderTask, 2);
81 };
82 
83 #endif /* PndMvdIdealTrackFinderTASK_H */
virtual void Exec(Option_t *opt)
PndMvdIdealTrackFinderTask & operator=(const PndMvdIdealTrackFinderTask &)=delete
virtual void SetParContainers()
virtual InitStatus ReInit()
virtual InitStatus Init()
virtual ~PndMvdIdealTrackFinderTask()