PandaRoot
PndHypGeIdealTrackFinderTask.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 
20 #ifndef PNDHYPGEIDEALTRACKFINDERTASK_H
21 #define PNDHYPGEIDEALTRACKFINDERTASK_H
22 
23 #include "FairTask.h"
24 #include "PndMCTrack.h"
25 
26 #include "TH1.h"
27 #include "PndHypGePoint.h"
28 
29 //#include "GFTrackCand.h"
30 //#include "PndHypCluster.h"
31 #include <string>
32 #include <vector>
33 #include <map>
34 
35 class TClonesArray;
36 
37 class PndHypGeIdealTrackFinderTask : public FairTask {
38  public:
43 
45  virtual void SetParContainers();
46  virtual InitStatus Init();
47  virtual InitStatus ReInit();
48 
50  virtual void Exec(Option_t *opt);
51 
52  void WriteHistograms();
53 
54  private:
55  TString fMcBranch;
56  TString fTrackBranch;
57 
60  TClonesArray *fMcArray;
61  TClonesArray *fTrackArray;
62 
65  TH1F *hismom;
66  int fEventNr;
67  std::map<int, std::vector<int>> mcHitMap;
68  Int_t fVerbose;
69 
70  // void Register();
71  // void Reset();
72  // void ProduceHits();
73  // std::map<int, std::vector<int> > AssignHitsToTracks();
74 
75  ClassDef(PndHypGeIdealTrackFinderTask, 1);
76 };
77 
78 #endif /* PndHypGeIdealTrackFinderTASK_H */
virtual void SetParContainers()
virtual InitStatus Init()
virtual InitStatus ReInit()
virtual void Exec(Option_t *opt)