PandaRoot
PndMvdMSAnaTask.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 // ----- PndMvdMSAnaTask header file -----
15 // ----- Created 20/03/07 by R.Kliemt -----
16 // -------------------------------------------------------------------------
17 
24 #ifndef PndMvdMSAnaTask_H
25 #define PndMvdMSAnaTask_H
26 
27 // framework includes
28 #include "FairTask.h"
29 #include "TH1.h"
30 #include "FairGeanePro.h"
31 
32 #include "PndGeoHandling.h"
33 
34 #include <vector>
35 #include <map>
36 
37 class TClonesArray;
38 class PndSdsCluster;
39 
40 class PndMvdMSAnaTask : public FairTask {
41  public:
44 
47  PndMvdMSAnaTask(const PndMvdMSAnaTask &) = delete;
48  PndMvdMSAnaTask &operator=(const PndMvdMSAnaTask &) = delete;
49 
51  virtual void SetParContainers();
52  virtual InitStatus Init();
53 
55  virtual void Exec(Option_t *opt);
56 
57  virtual void Finish();
58 
59  private:
60  TClonesArray *fMCHits;
61  TClonesArray *fMCTracks;
62  TClonesArray *fTrackParGeane;
63  TClonesArray *fTrackParIni;
64  TClonesArray *fTrackParFinal;
65  TClonesArray *fDetName;
66 
67  FairGeanePro *fPro;
68  PndGeoHandling *fGeoH;
69  int fEventNr;
70  bool fUseMVDPoint;
71 
72  std::map<int, std::vector<int>> fTrackPixHitIdMap; // Track -> PixHitId
73  std::map<int, std::vector<int>> fTrackStripHitIdMap; // Track -> StripHitId
74 
75  void Register();
76 
77  void Reset();
78 
79  void ProduceHits();
80 
81  std::map<int, std::vector<int>> AssignHitsToTracks();
82 
83  ClassDef(PndMvdMSAnaTask, 1);
84 };
85 
86 #endif
Class to store the Digis which belong to one cluster This class holds the information which Digi belo...
Definition: PndSdsCluster.h:30
virtual InitStatus Init()
virtual void SetParContainers()
Class to access the naming information of the MVD.
virtual void Finish()
virtual void Exec(Option_t *opt)
PndMvdMSAnaTask & operator=(const PndMvdMSAnaTask &)=delete