CbmRoot
CbmStsFindTracksEvents.h
Go to the documentation of this file.
1 
7 #ifndef CBMSTSFINDTRACKSEVENTS
8 #define CBMSTSFINDTRACKSEVENTS 1
9 
10 
11 #include "CbmStsTrackFinder.h"
12 #include "FairTask.h"
13 #include "TStopwatch.h"
14 
15 
16 class TClonesArray;
17 class CbmEvent;
19 
20 
31 class CbmStsFindTracksEvents : public FairTask {
32 
33 public:
39  Bool_t useMvd = kFALSE);
40 
41 
43  virtual ~CbmStsFindTracksEvents();
44 
45 
47  virtual void Exec(Option_t* opt);
48 
49 
54 
55 
59  Bool_t IsMvdUsed() const { return fUseMvd; }
60 
61 
65  void UseFinder(CbmStsTrackFinder* finder) {
66  if (fFinder) delete fFinder;
67  fFinder = finder;
68  };
69 
70 
71 private:
72  Bool_t fUseMvd; // Inclusion of MVD hits
73  CbmStsTrackFinder* fFinder; // TrackFinder concrete class
74  TClonesArray* fEvents;
75  TClonesArray* fMvdHits;
76  TClonesArray* fStsHits;
77  TClonesArray* fTracks;
78  TStopwatch fTimer;
79  Int_t fNofEvents;
80  Double_t fNofHits;
81  Double_t fNofTracks;
82  Double_t fTime;
83 
84 
86  virtual InitStatus Init();
87 
88 
90  virtual void Finish();
91 
92 
94  void ProcessEvent(CbmEvent* event);
95 
96 
100 
101 
103 };
104 
105 #endif
CbmStsTrackFinderIdeal
MC-based track finding in the STS.
Definition: CbmStsTrackFinderIdeal.h:38
CbmStsFindTracksEvents::~CbmStsFindTracksEvents
virtual ~CbmStsFindTracksEvents()
Definition: CbmStsFindTracksEvents.cxx:60
CbmStsFindTracksEvents::fUseMvd
Bool_t fUseMvd
Definition: CbmStsFindTracksEvents.h:68
CbmStsFindTracksEvents
Task class for finding STS tracks in an event.
Definition: CbmStsFindTracksEvents.h:31
CbmStsFindTracksEvents::Init
virtual InitStatus Init()
Definition: CbmStsFindTracksEvents.cxx:91
CbmStsFindTracksEvents::fMvdHits
TClonesArray * fMvdHits
Array of CbmEvent objects.
Definition: CbmStsFindTracksEvents.h:75
CbmStsFindTracksEvents::IsMvdUsed
Bool_t IsMvdUsed() const
Definition: CbmStsFindTracksEvents.h:59
CbmStsFindTracksEvents::ProcessEvent
void ProcessEvent(CbmEvent *event)
Definition: CbmStsFindTracksEvents.cxx:160
CbmStsFindTracksEvents::GetFinder
CbmStsTrackFinder * GetFinder()
Definition: CbmStsFindTracksEvents.h:53
CbmStsFindTracksEvents::ClassDef
ClassDef(CbmStsFindTracksEvents, 1)
CbmStsFindTracksEvents::fTime
Double_t fTime
Total real time used for good events.
Definition: CbmStsFindTracksEvents.h:82
CbmStsTrackFinder
Definition: CbmStsTrackFinder.h:30
CbmStsFindTracksEvents::fStsHits
TClonesArray * fStsHits
Input array of MVD hits.
Definition: CbmStsFindTracksEvents.h:76
CbmStsFindTracksEvents::Exec
virtual void Exec(Option_t *opt)
Definition: CbmStsFindTracksEvents.cxx:68
CbmStsFindTracksEvents::fFinder
CbmStsTrackFinder * fFinder
Definition: CbmStsFindTracksEvents.h:73
CbmStsFindTracksEvents::CbmStsFindTracksEvents
CbmStsFindTracksEvents(const CbmStsFindTracksEvents &)
CbmStsFindTracksEvents::CbmStsFindTracksEvents
CbmStsFindTracksEvents(CbmStsTrackFinder *finder=NULL, Bool_t useMvd=kFALSE)
Definition: CbmStsFindTracksEvents.cxx:40
CbmStsFindTracksEvents::fTracks
TClonesArray * fTracks
Input array of STS hits.
Definition: CbmStsFindTracksEvents.h:77
CbmStsFindTracksEvents::fNofTracks
Double_t fNofTracks
Number of tracks created.
Definition: CbmStsFindTracksEvents.h:81
CbmStsFindTracksEvents::fTimer
TStopwatch fTimer
Output array of CbmStsTracks.
Definition: CbmStsFindTracksEvents.h:78
CbmEvent
Class characterising one event by a collection of links (indices) to data objects,...
Definition: CbmEvent.h:30
CbmStsFindTracksEvents::operator=
CbmStsFindTracksEvents operator=(const CbmStsFindTracksEvents &)
CbmStsFindTracksEvents::UseFinder
void UseFinder(CbmStsTrackFinder *finder)
Definition: CbmStsFindTracksEvents.h:65
CbmStsFindTracksEvents::fNofEvents
Int_t fNofEvents
Timer.
Definition: CbmStsFindTracksEvents.h:79
CbmStsTrackFinder.h
CbmStsFindTracksEvents::fEvents
TClonesArray * fEvents
Definition: CbmStsFindTracksEvents.h:74
CbmStsFindTracksEvents::fNofHits
Double_t fNofHits
Number of hits.
Definition: CbmStsFindTracksEvents.h:80
CbmStsFindTracksEvents::Finish
virtual void Finish()
Definition: CbmStsFindTracksEvents.cxx:145