PandaRoot
PndLmdBPRungeKuttaTask.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 // ----- PndLmdBPRungeKuttaTask header file -----
15 // ----- Created 08/04/13 by A.Karavdina -----
16 // -------------------------------------------------------------------------
17 
24 #ifndef PndLmdBPRungeKuttaTask_H
25 #define PndLmdBPRungeKuttaTask_H
26 
27 // framework includes
28 #include <map>
29 #include <vector>
30 #include "FairTask.h"
31 #include "GFTrackCand.h"
32 #include "PndGeoHandling.h"
33 #include "TH1.h"
34 #include "TH2D.h"
35 #include "TMatrixD.h"
36 #include "TVector3.h"
37 
38 class TClonesArray;
39 class PndSdsCluster;
40 
41 class PndLmdBPRungeKuttaTask : public FairTask {
42  public:
45 
47  PndLmdBPRungeKuttaTask(Double_t pBeam, TVector3 IP);
48 
51 
53  virtual void SetParContainers();
54  virtual InitStatus Init();
55 
57  virtual void Exec(Option_t *opt);
58 
59  virtual void Finish();
60 
61  private:
62  /* TH1D *hxpull; */
63  /* TH1D *hypull; */
64  /* TH1D *hzpull; */
65  /* TH2D *hxresstep; */
66 
67  TClonesArray *fTrackParGeane;
68  TClonesArray *fTrackParIni;
69  TClonesArray *fTrackParFinal;
70  TClonesArray *fDetName;
71 
72  // FairGeanePro* fPro;
73  PndGeoHandling *fGeoH;
74  int fEventNr;
75  bool fUseMVDPoint;
76  Double_t fPbeam;
77  Int_t fPDGid;
78  TVector3 vtx;
79 
80  std::map<int, std::vector<int>> fTrackPixHitIdMap; // Track -> PixHitId
81  std::map<int, std::vector<int>> fTrackStripHitIdMap; // Track -> StripHitId
82 
83  // Input Data ----------
84  TClonesArray *fMCHits;
85  TClonesArray *fMCTracks;
86 
87  TClonesArray *fTracks; // Real tracks
88  TClonesArray *fHits; // Real hits
89  // Output Data -------
90 
91  void Register();
92 
93  void Reset();
94 
95  void ProduceHits();
96 
97  std::map<int, std::vector<int>> AssignHitsToTracks();
98  ClassDef(PndLmdBPRungeKuttaTask, 1);
99 };
100 
101 #endif
Class to store the Digis which belong to one cluster This class holds the information which Digi belo...
Definition: PndSdsCluster.h:30
Class to access the naming information of the MVD.
virtual void Finish()
virtual void SetParContainers()
virtual InitStatus Init()
virtual void Exec(Option_t *opt)