PandaRoot
PndGemFindTracks.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 // ----- PndGemFindTracks header file -----
15 // ----- Created 19.03.2009 by R. Karabowicz -----
16 // ----- according to the PndDchFindTracks -----
17 // -------------------------------------------------------------------------
18 
29 #ifndef PNDGEMFINDTRACKS_H
30 #define PNDGEMFINDTRACKS_H 1
31 
32 #include "TStopwatch.h"
33 
34 #include "FairTask.h"
35 
36 class PndGemTrackFinder;
37 class PndGemDigiPar;
38 class TClonesArray;
39 
40 class PndGemFindTracks : public FairTask {
41 
42  public:
45 
51  PndGemFindTracks(const char *name, const char *title = "PndTask", PndGemTrackFinder *finder = nullptr);
52 
54  virtual ~PndGemFindTracks();
55 
57  virtual InitStatus Init();
58 
60  virtual void Exec(Option_t *opt);
61 
63  virtual void Finish();
64 
66  virtual void SetParContainers();
67 
69  PndGemTrackFinder *GetFinder() { return fFinder; };
70  Int_t GetNofTracks() const { return fNofTracks; };
71  TString GetUseHitOrDigi() const { return fUseHitOrDigi; };
72 
74  void UseFinder(PndGemTrackFinder *finder) { fFinder = finder; };
75 
79  void SetUseHitOrDigi(TString useHitOrDigi = "hit") { fUseHitOrDigi = useHitOrDigi; };
80 
81  private:
82  PndGemDigiPar *fDigiPar;
84  PndGemTrackFinder *fFinder;
85  TClonesArray *fGemHitOrDigiArray; //
86  TClonesArray *fTrackArray;
87  TClonesArray *fTrackCandArray;
88  Int_t fNofTracks;
89  TString fUseHitOrDigi;
90 
91  TStopwatch fTimer;
92  Int_t fTNofEvents;
93  Int_t fTNofTracks;
94  Double_t fTTime;
95 
96  ClassDef(PndGemFindTracks, 1);
97 };
98 
99 #endif
virtual void Exec(Option_t *opt)
virtual void Finish()
Abstract base class for concrete Gem track finding algorithm.
Digitization Parameter Class for GEM part.
Definition: PndGemDigiPar.h:42
void UseFinder(PndGemTrackFinder *finder)
virtual InitStatus Init()
virtual void SetParContainers()
TString GetUseHitOrDigi() const
virtual ~PndGemFindTracks()
Task class for track finding in the Gem.
Int_t GetNofTracks() const
void SetUseHitOrDigi(TString useHitOrDigi="hit")
PndGemTrackFinder * GetFinder()