PandaRoot
PndHypIdealPRTask.h
Go to the documentation of this file.
1 //-----------------------------------------------------------
2 // File and Version Information:
3 // $Id$
4 //
5 // Description:
6 // An ideal pattern recognition
7 //
8 // Environment:
9 // Software developed for the PANDA Detector at FAIR.
10 //
11 // Author List:
12 // Sebastian Neubert TUM (original author)
13 //
14 // Alicia Sanchez HIM : changed according to hypernuclear project
15 // requirements
16 //-----------------------------------------------------------
17 
18 #ifndef PNDHYPIDEALPRTASK_HH
19 #define PNDHYPIDEALPRTASK_HH
20 
21 // Base Class Headers ----------------
22 #include "FairTask.h"
23 
24 #include "PndMCTrack.h"
25 #include "PndGeoHypPar.h"
26 #include "PndHypHit.h"
27 #include "PndHypPoint.h"
28 
29 #include "PndSdsMCPoint.h"
30 #include "PndSdsHit.h"
31 
32 #include "GFTrackCand.h"
33 
34 #include <string>
35 #include <vector>
36 #include "TH1.h"
37 #include <map>
38 
39 // Collaborating Class Headers -------
40 
41 // Collaborating Class Declarations --
42 class TClonesArray;
43 class GFRecoHitFactory;
44 
45 class PndHypIdealPRTask : public FairTask {
46  public:
47  // Constructors/Destructors ---------
50 
51  // Operators
52 
53  // Modifiers -----------------------
54  // void SetPointBranchName(const TString& name) {fPointBranchName=name;}
55  void AddHitBranch(unsigned int detId, const TString &m) { fHitBranchNameMap[detId] = m; };
56  void SetPersistence(Bool_t opt = kTRUE) { fPersistence = opt; }
57 
58  // Operations ----------------------
59 
61  // virtual void SetParContainers();
62  virtual InitStatus Init();
63  virtual InitStatus ReInit();
64 
66  virtual void Exec(Option_t *opt);
67 
68  void WriteHistograms();
69 
70  private:
71  // Private Data Members ------------
72  // TString _pointBranchName;
73  TClonesArray *fHitArray;
74  TClonesArray *fPointArray;
75  TClonesArray *fSdsArray;
76  TClonesArray *fTrackArray;
77  TClonesArray *fMcArray;
78 
79  Bool_t fPersistence;
80 
81  std::map<unsigned int, TString> fHitBranchNameMap;
82  std::map<unsigned int, TClonesArray *> fHitBranchMap;
83  std::map<Int_t, GFTrackCand *> fTrackCandMap;
84  int fEventNr;
85  TH1D *fPH; // momentum histo;
86  Int_t GetChargeIon(Int_t ion);
87  void AddHitToTrack(Int_t trackID, Int_t detnum, Int_t iHit);
88  void ClearTrackCandMap();
89 
90  GFRecoHitFactory *fTheRecoHitFactory;
91 
92  // Private Methods -----------------
93 
94  ClassDef(PndHypIdealPRTask, 2)
95 };
96 
97 #endif
98 
99 //--------------------------------------------------------------
100 // $Log$
101 //--------------------------------------------------------------
__m128 m
Definition: P4_F32vec4.h:26
virtual void Exec(Option_t *opt)
Factory object to create RecoHits from digitized and clustered data.
void AddHitBranch(unsigned int detId, const TString &m)
void SetPersistence(Bool_t opt=kTRUE)
virtual InitStatus Init()
virtual InitStatus ReInit()