CbmRoot
CbmLitFindGlobalTracksParallel.h
Go to the documentation of this file.
1 
8 #ifndef CBMLITFINDGLOBALTRACKSPARALLEL_H_
9 #define CBMLITFINDGLOBALTRACKSPARALLEL_H_
10 
11 #include "FairTask.h"
13 
14 #include "TStopwatch.h"
15 
16 #include <string>
17 #include <vector>
18 
19 using std::string;
20 using std::vector;
21 
22 class CbmLitFindGlobalTracksParallel : public FairTask {
23 public:
28 
33 
37  virtual InitStatus Init();
38 
42  virtual void Exec(Option_t* opt);
43 
47  virtual void Finish();
48 
49  /* Setters */
50  void SetTrackingType(const string& trackingType) {
51  fTrackingType = trackingType;
52  }
53  void SetMergerType(const string& mergerType) { fMergerType = mergerType; }
54  void SetFitterType(const string& fitterType) { fFitterType = fitterType; }
55 
56 private:
62 
66  void DoTracking();
67 
71  void ConstructGlobalTracks();
72 
77 
78  CbmLitDetectorSetup fDet; // detector setup
79 
80  // Pointers to data arrays
81  TClonesArray* fStsTracks; // CbmStsTrack array
82  TClonesArray* fTrdHits; // CbmTrdHit array
83  TClonesArray* fTrdTracks; // output CbmTrdTrack array
84  TClonesArray* fMuchPixelHits; // CbmMuchPixelHit array
85  TClonesArray* fMuchTracks; // output CbmMuchTrack array
86  TClonesArray* fGlobalTracks; //output CbmGlobalTrack array
87 
88  // Settings
89  // Tracking method to be used
90  // "branch" - branching method
91  // "nn" - nearest neighbor method
92  string fTrackingType;
93 
94  // Merger method to be used
95  // "nearest_hit" - assigns nearest hit to the track
96  string fMergerType;
97 
98  // Track fitter to be used for the final track fit
99  // "lit_kalman" - forward Kalman track fit with LIT propagation and TGeo navigation
100  string fFitterType;
101 
102  // stopwatches
103  TStopwatch fTrackingWatch; // stopwatch for tracking without IO
104  TStopwatch fTrackingWithIOWatch; // stopwatch for tracking including IO
105 
109 
111 };
112 
113 #endif /* CBMLITFINDGLOBALTRACKSPARALLEL_H_ */
CbmLitFindGlobalTracksParallel::operator=
CbmLitFindGlobalTracksParallel & operator=(const CbmLitFindGlobalTracksParallel &)
CbmLitFindGlobalTracksParallel::DoTracking
void DoTracking()
Do the track reconstruction.
Definition: CbmLitFindGlobalTracksParallel.cxx:122
CbmLitFindGlobalTracksParallel::ClassDef
ClassDef(CbmLitFindGlobalTracksParallel, 1)
CbmLitFindGlobalTracksParallel
Definition: CbmLitFindGlobalTracksParallel.h:22
CbmLitFindGlobalTracksParallel::Exec
virtual void Exec(Option_t *opt)
Inherited from FairTask.
Definition: CbmLitFindGlobalTracksParallel.cxx:62
CbmLitFindGlobalTracksParallel::Init
virtual InitStatus Init()
Inherited from FairTask.
Definition: CbmLitFindGlobalTracksParallel.cxx:50
CbmLitFindGlobalTracksParallel::fTrackingType
string fTrackingType
Definition: CbmLitFindGlobalTracksParallel.h:92
CbmLitFindGlobalTracksParallel::fTrackingWatch
TStopwatch fTrackingWatch
Definition: CbmLitFindGlobalTracksParallel.h:103
CbmLitDetectorSetup
Helper class to access detector presence.
Definition: CbmLitDetectorSetup.h:22
CbmLitFindGlobalTracksParallel::fTrdHits
TClonesArray * fTrdHits
Definition: CbmLitFindGlobalTracksParallel.h:82
CbmLitFindGlobalTracksParallel::CbmLitFindGlobalTracksParallel
CbmLitFindGlobalTracksParallel(const CbmLitFindGlobalTracksParallel &)
CbmLitFindGlobalTracksParallel::SetFitterType
void SetFitterType(const string &fitterType)
Definition: CbmLitFindGlobalTracksParallel.h:54
CbmLitFindGlobalTracksParallel::PrintStopwatchStatistics
void PrintStopwatchStatistics()
Print stopwatch statistics.
Definition: CbmLitFindGlobalTracksParallel.cxx:244
CbmLitFindGlobalTracksParallel::~CbmLitFindGlobalTracksParallel
virtual ~CbmLitFindGlobalTracksParallel()
Destructor.
Definition: CbmLitFindGlobalTracksParallel.cxx:48
CbmLitFindGlobalTracksParallel::fTrdTracks
TClonesArray * fTrdTracks
Definition: CbmLitFindGlobalTracksParallel.h:83
CbmLitFindGlobalTracksParallel::fMuchTracks
TClonesArray * fMuchTracks
Definition: CbmLitFindGlobalTracksParallel.h:85
CbmLitFindGlobalTracksParallel::fMuchPixelHits
TClonesArray * fMuchPixelHits
Definition: CbmLitFindGlobalTracksParallel.h:84
CbmLitFindGlobalTracksParallel::SetTrackingType
void SetTrackingType(const string &trackingType)
Definition: CbmLitFindGlobalTracksParallel.h:50
CbmLitFindGlobalTracksParallel::fGlobalTracks
TClonesArray * fGlobalTracks
Definition: CbmLitFindGlobalTracksParallel.h:86
CbmLitFindGlobalTracksParallel::fMergerType
string fMergerType
Definition: CbmLitFindGlobalTracksParallel.h:96
CbmLitFindGlobalTracksParallel::CbmLitFindGlobalTracksParallel
CbmLitFindGlobalTracksParallel()
Constructor.
Definition: CbmLitFindGlobalTracksParallel.cxx:34
CbmLitFindGlobalTracksParallel::ReadAndCreateDataBranches
void ReadAndCreateDataBranches()
Reads necessary data branches from the input data files and creates branches for CbmGlobalTrack,...
Definition: CbmLitFindGlobalTracksParallel.cxx:75
CbmLitFindGlobalTracksParallel::Finish
virtual void Finish()
Inherited from FairTask.
Definition: CbmLitFindGlobalTracksParallel.cxx:73
CbmLitFindGlobalTracksParallel::fStsTracks
TClonesArray * fStsTracks
Definition: CbmLitFindGlobalTracksParallel.h:81
CbmLitFindGlobalTracksParallel::ConstructGlobalTracks
void ConstructGlobalTracks()
Create and fill global tracks.
Definition: CbmLitFindGlobalTracksParallel.cxx:205
CbmLitFindGlobalTracksParallel::fTrackingWithIOWatch
TStopwatch fTrackingWithIOWatch
Definition: CbmLitFindGlobalTracksParallel.h:104
CbmLitFindGlobalTracksParallel::SetMergerType
void SetMergerType(const string &mergerType)
Definition: CbmLitFindGlobalTracksParallel.h:53
CbmLitFindGlobalTracksParallel::fDet
CbmLitDetectorSetup fDet
Definition: CbmLitFindGlobalTracksParallel.h:78
CbmLitDetectorSetup.h
Helper class to access detector presence.
CbmLitFindGlobalTracksParallel::fFitterType
string fFitterType
Definition: CbmLitFindGlobalTracksParallel.h:100