CbmRoot
CbmStsFindTracks.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmStsFindTracks header file -----
3 // ----- Created 02/02/05 by V. Friese -----
4 // -------------------------------------------------------------------------
5 
6 
18 #ifndef CBMSTSFINDTRACKS
19 #define CBMSTSFINDTRACKS 1
20 
21 #include "CbmStsTrackFinder.h"
22 
23 #include "FairTask.h"
24 
25 #include "TStopwatch.h"
26 
27 class TClonesArray;
28 class FairField;
29 class CbmGeoStsPar;
30 class CbmStsDigiPar;
32 
33 
34 class CbmStsFindTracks : public FairTask {
35 
36 public:
39 
40 
47  CbmStsFindTracks(Int_t iVerbose,
48  CbmStsTrackFinder* finder = NULL,
49  Bool_t useMvd = kTRUE,
50  const char* name = "STSFindTracks");
51 
52 
54  virtual ~CbmStsFindTracks();
55 
56 
58  virtual void Exec(Option_t* opt);
59 
60 
63 
65  Bool_t MvdUsage() const { return fUseMvd; }
66 
68  void UseFinder(CbmStsTrackFinder* finder) {
69  if (fFinder) delete fFinder;
70  fFinder = finder;
71  };
72 
73 
74 private:
75  Bool_t fUseMvd; // Inclusion of MVD hits
76  CbmGeoStsPar* fGeoPar; // STS geometry parameters
77  CbmStsDigiPar* fDigiPar; // STS digitisation parameters
78  //CbmStsDigiScheme* fDigiScheme; // STS digitisation scheme
79  FairField* fField; // Magnetic field
80  CbmStsTrackFinder* fFinder; // TrackFinder concrete class
81  TClonesArray* fMvdHits; // Input array of MVD hits
82  TClonesArray* fStsHits; // Input array of STS hits
83  TClonesArray* fTracks; // Output array of CbmStsTracks
84  TStopwatch fTimer; // Timer
85  Int_t fNEvents;
87  Double_t fTime;
88  Double_t fNTracks;
92  virtual void SetParContainers();
93 
94 
96  virtual InitStatus Init();
97 
98 
100  virtual void Finish();
101 
104 
106 };
107 
108 #endif
CbmStsFindTracks::CbmStsFindTracks
CbmStsFindTracks()
Definition: CbmStsFindTracks.cxx:34
CbmStsTrackFinderIdeal
MC-based track finding in the STS.
Definition: CbmStsTrackFinderIdeal.h:38
CbmStsFindTracks::fField
FairField * fField
Definition: CbmStsFindTracks.h:79
CbmStsFindTracks::SetParContainers
virtual void SetParContainers()
Definition: CbmStsFindTracks.cxx:123
CbmStsFindTracks::fMvdHits
TClonesArray * fMvdHits
Definition: CbmStsFindTracks.h:81
CbmStsFindTracks::Exec
virtual void Exec(Option_t *opt)
Definition: CbmStsFindTracks.cxx:95
CbmStsFindTracks::ClassDef
ClassDef(CbmStsFindTracks, 1)
CbmStsFindTracks::fGeoPar
CbmGeoStsPar * fGeoPar
Definition: CbmStsFindTracks.h:76
CbmStsFindTracks::MvdUsage
Bool_t MvdUsage() const
Definition: CbmStsFindTracks.h:65
CbmStsFindTracks::Finish
virtual void Finish()
Definition: CbmStsFindTracks.cxx:210
CbmStsFindTracks::fUseMvd
Bool_t fUseMvd
Definition: CbmStsFindTracks.h:71
CbmStsFindTracks::operator=
CbmStsFindTracks operator=(const CbmStsFindTracks &)
CbmStsFindTracks
Definition: CbmStsFindTracks.h:34
CbmStsTrackFinder
Definition: CbmStsTrackFinder.h:30
CbmStsFindTracks::fNEvents
Int_t fNEvents
Definition: CbmStsFindTracks.h:85
CbmStsFindTracks::UseFinder
void UseFinder(CbmStsTrackFinder *finder)
Definition: CbmStsFindTracks.h:68
CbmStsFindTracks::fNTracks
Double_t fNTracks
Definition: CbmStsFindTracks.h:88
CbmStsFindTracks::Init
virtual InitStatus Init()
Definition: CbmStsFindTracks.cxx:142
CbmStsFindTracks::GetFinder
CbmStsTrackFinder * GetFinder()
Definition: CbmStsFindTracks.h:62
CbmStsFindTracks::fNEventsFailed
Int_t fNEventsFailed
Definition: CbmStsFindTracks.h:86
CbmStsFindTracks::fTime
Double_t fTime
Definition: CbmStsFindTracks.h:87
CbmStsFindTracks::fTracks
TClonesArray * fTracks
Definition: CbmStsFindTracks.h:83
CbmStsFindTracks::fTimer
TStopwatch fTimer
Definition: CbmStsFindTracks.h:84
CbmStsFindTracks::CbmStsFindTracks
CbmStsFindTracks(const CbmStsFindTracks &)
CbmStsFindTracks::fFinder
CbmStsTrackFinder * fFinder
Definition: CbmStsFindTracks.h:80
CbmStsTrackFinder.h
CbmStsFindTracks::fDigiPar
CbmStsDigiPar * fDigiPar
Definition: CbmStsFindTracks.h:77
CbmStsFindTracks::~CbmStsFindTracks
virtual ~CbmStsFindTracks()
Definition: CbmStsFindTracks.cxx:86
CbmStsFindTracks::fStsHits
TClonesArray * fStsHits
Definition: CbmStsFindTracks.h:82