FairRoot/PandaRoot
PndHypDPatternRecoTask.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 // adapted by A. Sanchez for HYP purpose
14 //
15 //-----------------------------------------------------------
16 
17 #ifndef PNDHYPDPATTERNRECOTASK_HH
18 #define PNDHYPDPATTERNRECOTASK_HH
19 
20 // Base Class Headers ----------------
21 #include "FairTask.h"
22 #include<map>
23 
24 
25 // Collaborating Class Headers -------
26 
27 
28 // Collaborating Class Declarations --
29 class TClonesArray;
30 class GFRecoHitFactory;
31 class AbsBFieldIfc;
32 class FairField;
33 class FairGeanePro;
34 
35 class PndHypDPatternRecoTask : public FairTask {
36 public:
37 
38  // Constructors/Destructors ---------
41 
42  // Operators
43 
44 
45  // Accessors -----------------------
46 
47 
48  // Modifiers -----------------------
50  fVtx = true;
51  fVtxName=name;
52  }
53  void AddHitBranch(unsigned int detId, const TString& m){fHitBranchNameMap[detId]=m;};
54  void SetPersistence(Bool_t opt=kTRUE) {fPersistence=opt;}
55  void SetField(FairField* f){fField=f;}
56  void SetHitFL(Bool_t opt){fMCvalue=opt;}
57  void UseGeane(bool f=true){fUseGeane=f;}
58  void UseMVD(bool mvd){fUseMVD=mvd;}
59 
60  // Operations ----------------------
61 
62  virtual InitStatus Init();
63 
64  virtual void Exec(Option_t* opt);
65 
66 
67 private:
68 
69  // Private Data Members ------------
70  //TString _pointBranchName;
71  TClonesArray* fPointArray;
72  TClonesArray* fSdsArray;
73  TClonesArray* fTrackArray;
74  TClonesArray* fHitArray;
75  TClonesArray* fMcArray;
76 
77  //TGeoManager* fGeom;
78 
79  std::map<unsigned int,TString> fHitBranchNameMap;
80  std::map<unsigned int,TClonesArray*> fHitBranchMap;
81  int fEventNr;
82 
86  bool fUseMVD;
89 
91 
92  FairField* fField;
93  FairGeanePro* fGeanePro;
94 
95  // Private Methods -----------------
96 
97 Int_t GetChargeIon(Int_t ion);
98 
99 public:
100  ClassDef(PndHypDPatternRecoTask,4)
101 
102 };
103 
104 #endif
105 
106 //--------------------------------------------------------------
107 // $Log$
108 //--------------------------------------------------------------
void SetPersistence(Bool_t opt=kTRUE)
__m128 m
Definition: P4_F32vec4.h:28
std::map< unsigned int, TClonesArray * > fHitBranchMap
GFRecoHitFactory * fTheRecoHitFactory
virtual void Exec(Option_t *opt)
void SetVtxAbsName(TString name)
Factory object to create RecoHits from digitized and clustered data.
TFile * f
Definition: bump_analys.C:12
TString name
void AddHitBranch(unsigned int detId, const TString &m)
std::map< unsigned int, TString > fHitBranchNameMap