PandaRoot
PndHypMSAnaTask.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 // -------------------------------------------------------------------------
14 // ----- PndHypMSAnaTask header file -----
15 // ----- Created 20/03/07 by R.Kliemt -----
16 // -------------------------------------------------------------------------
17 
24 #ifndef PndHypMSAnaTask_H
25 #define PndHypMSAnaTask_H
26 
27 // framework includes
28 #include "FairTask.h"
29 #include "TH1.h"
30 #include "GFTrackCand.h"
31 #include "FairGeanePro.h"
32 
33 #include "PndHypGeoHandling.h"
34 
35 #include <vector>
36 #include <map>
37 
38 class TClonesArray;
39 class PndHypCluster;
40 
41 class PndHypMSAnaTask : public FairTask {
42  public:
45 
48 
50  virtual void SetParContainers();
51  virtual InitStatus Init();
52 
54  virtual void Exec(Option_t *opt);
55 
56  virtual void Finish();
57  void WriteHistograms();
58 
59  private:
60  TClonesArray *fMCHits;
61  TClonesArray *fMCTracks;
62 
63  TClonesArray *fTrackParGeane;
64  TClonesArray *fTrackParIni;
65  TClonesArray *fTrackParFinal;
66 
67  FairGeanePro *fPro;
68  PndHypGeoHandling *fGeoH;
69 
70  TH1F *histo;
71  int fEventNr;
72  std::map<int, std::vector<int>> mcHitMap;
73  std::map<int, std::vector<int>> fTrackPixHitIdMap; // Track -> PixHitId
74  std::map<int, std::vector<int>> fTrackStripHitIdMap; // Track -> StripHitId
75 
76  void Register();
77 
78  void Reset();
79 
80  void ProduceHits();
81 
82  std::map<int, std::vector<int>> AssignHitsToTracks();
83 
84  ClassDef(PndHypMSAnaTask, 1);
85 };
86 
87 #endif
Class to store the Digis which belong to one cluster This class holds the information which Digi belo...
Definition: PndHypCluster.h:29
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)