CbmRoot
Loading...
Searching...
No Matches
CbmStsFindTracksEvents.h
Go to the documentation of this file.
1/* Copyright (C) 2014-2021 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese [committer] */
4
11#ifndef CBMSTSFINDTRACKSEVENTS
12#define CBMSTSFINDTRACKSEVENTS 1
13
14
15#include "CbmStsTrackFinder.h"
16#include "FairTask.h"
17#include "TStopwatch.h"
18
19
20class TClonesArray;
21class CbmEvent;
23
24
35class CbmStsFindTracksEvents : public FairTask {
36
37 public:
42 CbmStsFindTracksEvents(CbmStsTrackFinder* finder = NULL, Bool_t useMvd = kFALSE);
43
44
47
48
50 virtual void Exec(Option_t* opt);
51
52
57
58
62 Bool_t IsMvdUsed() const { return fUseMvd; }
63
64
69 {
70 if (fFinder) delete fFinder;
71 fFinder = finder;
72 };
73
74
75 private:
76 Bool_t fUseMvd; // Inclusion of MVD hits
77 CbmStsTrackFinder* fFinder; // TrackFinder concrete class
78 TClonesArray* fEvents;
79 TClonesArray* fMvdHits;
80 TClonesArray* fStsHits;
81 TClonesArray* fTracks;
82 TStopwatch fTimer;
83 Int_t fNofTs = 0;
84 Int_t fNofEvents;
85 Double_t fNofHits;
86 Double_t fNofTracks;
87 Double_t fTime;
88
89
91 virtual InitStatus Init();
92
93
95 virtual void Finish();
96
97
102 std::pair<UInt_t, UInt_t> ProcessEvent(CbmEvent* event);
103
104
108
109
111};
112
113#endif
Class characterising one event by a collection of links (indices) to data objects,...
Definition CbmEvent.h:34
Task class for finding STS tracks in an event.
TClonesArray * fTracks
Input array of STS hits.
TClonesArray * fMvdHits
Array of CbmEvent objects.
virtual void Exec(Option_t *opt)
TClonesArray * fStsHits
Input array of MVD hits.
ClassDef(CbmStsFindTracksEvents, 1)
CbmStsTrackFinder * GetFinder()
TStopwatch fTimer
Output array of CbmStsTracks.
std::pair< UInt_t, UInt_t > ProcessEvent(CbmEvent *event)
Process one event or timeslice.
Int_t fNofEvents
Number of events with success.
Double_t fNofTracks
Number of tracks created.
Double_t fTime
Total real time used for good events.
CbmStsFindTracksEvents(const CbmStsFindTracksEvents &)
void UseFinder(CbmStsTrackFinder *finder)
Double_t fNofHits
Number of hits.
CbmStsFindTracksEvents(CbmStsTrackFinder *finder=NULL, Bool_t useMvd=kFALSE)
CbmStsFindTracksEvents operator=(const CbmStsFindTracksEvents &)
MC-based track finding in the STS.