PandaRoot
PndSttFitTracks.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 // ----- PndSttFitTracks header file -----
15 // ----- Created 18/02/05 by V. Friese -----
16 // -------------------------------------------------------------------------
17 
28 #ifndef PNDSTTFITTRACKS
29 #define PNDSTTFITTRACKS 1
30 
31 #include "FairTask.h"
32 #include "PndGeoSttPar.h"
33 
34 #include <string>
35 #include <vector>
36 
37 class PndSttTrackFitter;
38 class TClonesArray;
39 
40 class PndSttFitTracks : public FairTask {
41 
42  public:
45 
52  PndSttFitTracks(const char *name, const char *title = "FairTask", PndSttTrackFitter *fitter = nullptr);
53 
55  virtual ~PndSttFitTracks();
56 
58  virtual InitStatus Init();
59 
61  virtual void Exec(Option_t *opt);
62 
64  virtual void Finish();
65 
67  PndSttTrackFitter *GetFitter() { return fFitter; };
68  Int_t GetNofTracks() { return fNofTracks; };
69 
71  void UseFitter(PndSttTrackFitter *fitter) { fFitter = fitter; };
72 
73  void AddHitCollectionName(char *hitCollectionName);
74 
75  private:
76  void AddAllCollections();
77  void AddHitCollection(char const *collectionName);
78 
79  void SetParContainers();
80 
81  PndSttTrackFitter *fFitter; // Pointer to TrackFinder concrete class
82  TClonesArray *fTrackCandArray; // Input array of STT track candidates
83  TClonesArray *fTrackArray; // Output array of STT tracks
84  TClonesArray *fHitArray;
85  Int_t fNofTracks; // Number of tracks successfully fitted
86  std::vector<std::string> fHitCollectionNames;
87  Bool_t fCollectionsComplete;
88  // CHECK added
90  TClonesArray *fTubeArray;
91 
92  PndGeoSttPar *fSttParameters; // CHECK added
93 
94  ClassDef(PndSttFitTracks, 1);
95 };
96 
97 #endif
virtual void Finish()
virtual void Exec(Option_t *opt)
void AddHitCollectionName(char *hitCollectionName)
PndSttTrackFitter * GetFitter()
virtual ~PndSttFitTracks()
virtual InitStatus Init()
void UseFitter(PndSttTrackFitter *fitter)