FairRoot/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 "../../pnddata/SdsData/PndSdsMCPoint.h"
30 #include "../../pnddata/SdsData/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 
42 // Collaborating Class Declarations --
43 class TClonesArray;
44 class GFRecoHitFactory;
45 
46 
47 class PndHypIdealPRTask : public FairTask {
48 public:
49 
50  // Constructors/Destructors ---------
53 
54  // Operators
55 
56 
57  // Modifiers -----------------------
58  //void SetPointBranchName(const TString& name) {fPointBranchName=name;}
59  void AddHitBranch(unsigned int detId, const TString& m){fHitBranchNameMap[detId]=m;};
60  void SetPersistence(Bool_t opt=kTRUE) {fPersistence=opt;}
61 
62  // Operations ----------------------
63 
64 
66  //virtual void SetParContainers();
67  virtual InitStatus Init();
68  virtual InitStatus ReInit();
69 
71  virtual void Exec(Option_t* opt);
72 
73  void WriteHistograms();
74 
75 private:
76 
77  // Private Data Members ------------
78  //TString _pointBranchName;
79  TClonesArray* fHitArray;
80  TClonesArray* fPointArray;
81  TClonesArray* fSdsArray;
82  TClonesArray* fTrackArray;
83  TClonesArray* fMcArray;
84 
86 
87 
88  std::map<unsigned int,TString> fHitBranchNameMap;
89  std::map<unsigned int,TClonesArray*> fHitBranchMap;
90  std::map<Int_t, GFTrackCand*> fTrackCandMap;
91  int fEventNr;
92  TH1D* fPH; // momentum histo;
93  Int_t GetChargeIon(Int_t ion);
94  void AddHitToTrack(Int_t trackID, Int_t detnum, Int_t iHit);
95  void ClearTrackCandMap();
96 
98 
99  // Private Methods -----------------
100 
101 
102 
103  ClassDef(PndHypIdealPRTask,2)
104 
105 };
106 
107 #endif
108 
109 //--------------------------------------------------------------
110 // $Log$
111 //--------------------------------------------------------------
Int_t GetChargeIon(Int_t ion)
TClonesArray * fPointArray
std::map< unsigned int, TString > fHitBranchNameMap
__m128 m
Definition: P4_F32vec4.h:28
TClonesArray * fSdsArray
virtual InitStatus ReInit()
std::map< unsigned int, TClonesArray * > fHitBranchMap
virtual InitStatus Init()
Factory object to create RecoHits from digitized and clustered data.
void AddHitToTrack(Int_t trackID, Int_t detnum, Int_t iHit)
TClonesArray * fHitArray
TClonesArray * fMcArray
void AddHitBranch(unsigned int detId, const TString &m)
TClonesArray * fTrackArray
void SetPersistence(Bool_t opt=kTRUE)
std::map< Int_t, GFTrackCand * > fTrackCandMap
GFRecoHitFactory * fTheRecoHitFactory
virtual void Exec(Option_t *opt)