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 // Collaborating Class Headers -------
25 
26 // Collaborating Class Declarations --
27 class TClonesArray;
28 class GFRecoHitFactory;
29 class AbsBFieldIfc;
30 class FairField;
31 class FairGeanePro;
32 
33 class PndHypDPatternRecoTask : public FairTask {
34  public:
35  // Constructors/Destructors ---------
38 
39  // Operators
40 
41  // Accessors -----------------------
42 
43  // Modifiers -----------------------
44  void SetVtxAbsName(TString name)
45  {
46  fVtx = true;
47  fVtxName = name;
48  }
49  void AddHitBranch(unsigned int detId, const TString &m) { fHitBranchNameMap[detId] = m; };
50  void SetPersistence(Bool_t opt = kTRUE) { fPersistence = opt; }
51  void SetField(FairField *f) { fField = f; }
52  void SetHitFL(Bool_t opt) { fMCvalue = opt; }
53  void UseGeane(bool f = true) { fUseGeane = f; }
54  void UseMVD(bool mvd) { fUseMVD = mvd; }
55 
56  // Operations ----------------------
57 
58  virtual InitStatus Init();
59 
60  virtual void Exec(Option_t *opt);
61 
62  private:
63  // Private Data Members ------------
64  // TString _pointBranchName;
65  TClonesArray *fPointArray;
66  TClonesArray *fSdsArray;
67  TClonesArray *fTrackArray;
68  TClonesArray *fHitArray;
69  TClonesArray *fMcArray;
70 
71  // TGeoManager* fGeom;
72 
73  std::map<unsigned int, TString> fHitBranchNameMap;
74  std::map<unsigned int, TClonesArray *> fHitBranchMap;
75  int fEventNr;
76 
77  TString fVtxName;
78  Bool_t fPersistence;
79  Bool_t fUseGeane;
80  bool fUseMVD;
81  Bool_t fMCvalue;
82  Bool_t fVtx;
83 
84  GFRecoHitFactory *fTheRecoHitFactory;
85 
86  FairField *fField;
87  FairGeanePro *fGeanePro;
88 
89  // Private Methods -----------------
90 
91  Int_t GetChargeIon(Int_t ion);
92 
93  public:
94  ClassDef(PndHypDPatternRecoTask, 4)
95 };
96 
97 #endif
98 
99 //--------------------------------------------------------------
100 // $Log$
101 //--------------------------------------------------------------
void SetPersistence(Bool_t opt=kTRUE)
__m128 m
Definition: P4_F32vec4.h:26
void SetVtxAbsName(TString name)
Factory object to create RecoHits from digitized and clustered data.
virtual InitStatus Init()
virtual void Exec(Option_t *opt)
void AddHitBranch(unsigned int detId, const TString &m)
float f
Definition: P4_F32vec4.h:20