PandaRoot
PndHypMSAnaTask.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndHypMSAnaTask header file -----
3 // ----- Created 20/03/07 by R.Kliemt -----
4 // -------------------------------------------------------------------------
5 
12 #ifndef PndHypMSAnaTask_H
13 #define PndHypMSAnaTask_H
14 
15 // framework includes
16 #include "FairTask.h"
17 #include "TH1.h"
18 #include "GFTrackCand.h"
19 #include "FairGeanePro.h"
20 
21 #include "PndHypGeoHandling.h"
22 
23 #include <vector>
24 #include <map>
25 
26 class TClonesArray;
27 class PndHypCluster;
28 
29 class PndHypMSAnaTask : public FairTask {
30  public:
33 
36 
38  virtual void SetParContainers();
39  virtual InitStatus Init();
40 
42  virtual void Exec(Option_t *opt);
43 
44  virtual void Finish();
45  void WriteHistograms();
46 
47  private:
48  TClonesArray *fMCHits;
49  TClonesArray *fMCTracks;
50 
51  TClonesArray *fTrackParGeane;
52  TClonesArray *fTrackParIni;
53  TClonesArray *fTrackParFinal;
54 
55  FairGeanePro *fPro;
56  PndHypGeoHandling *fGeoH;
57 
58  TH1F *histo;
59  int fEventNr;
60  std::map<int, std::vector<int>> mcHitMap;
61  std::map<int, std::vector<int>> fTrackPixHitIdMap; // Track -> PixHitId
62  std::map<int, std::vector<int>> fTrackStripHitIdMap; // Track -> StripHitId
63 
64  void Register();
65 
66  void Reset();
67 
68  void ProduceHits();
69 
70  std::map<int, std::vector<int>> AssignHitsToTracks();
71 
72  ClassDef(PndHypMSAnaTask, 1);
73 };
74 
75 #endif
Class to store the Digis which belong to one cluster This class holds the information which Digi belo...
Definition: PndHypCluster.h:17
Class to access the naming information of the MVD.
virtual void SetParContainers()
virtual void Finish()
virtual InitStatus Init()
void WriteHistograms()
virtual void Exec(Option_t *opt)