CbmRoot
Loading...
Searching...
No Matches
CbmL1GlobalFindTracksEvents.h
Go to the documentation of this file.
1/* Copyright (C) 2021 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Valentina Akishina [committer] */
4
12#ifndef CbmL1GlobalFindTracksEventS
13#define CbmL1GlobalFindTracksEventS 1
14
15
17#include "FairTask.h"
18#include "TStopwatch.h"
19
20
21class TClonesArray;
22class CbmEvent;
24
25
38class CbmL1GlobalFindTracksEvents : public FairTask {
39
40 public:
45 CbmL1GlobalFindTracksEvents(CbmL1GlobalTrackFinder* finder = nullptr, Bool_t useMvd = kFALSE);
46
47
50
51
53 virtual void Exec(Option_t* opt);
54
55
60
61
65 Bool_t IsMvdUsed() const { return fUseMvd; }
66
67
72 {
73 if (fFinder) delete fFinder;
74 fFinder = finder;
75 };
76
77
78 private:
79 Bool_t fUseMvd; // Inclusion of MVD hits
80 CbmL1GlobalTrackFinder* fFinder; // TrackFinder concrete class
81 TClonesArray* fEvents;
82 TClonesArray* fMvdHits;
83 TClonesArray* fStsHits;
84 TClonesArray* fGlobalTracks;
85 TClonesArray* fStsTrackArray;
86 TClonesArray* fMuchTrackArray;
87 TClonesArray* fTrdTrackArray;
88 TClonesArray* fTofTrackArray;
89 TStopwatch fTimer;
90 Int_t fNofTs = 0;
91 Int_t fNofEvents;
92 Double_t fNofHits;
93 Double_t fNofTracks;
94 Double_t fTime;
95
96 Long64_t nHitsTs = 0;
97 Long64_t nTracksTs = 0;
98
100 virtual InitStatus Init();
101
102
104 virtual void Finish();
105
106
111 std::pair<UInt_t, UInt_t> ProcessEvent(CbmEvent* event);
112
113
117
118
120};
121
122#endif
Class characterising one event by a collection of links (indices) to data objects,...
Definition CbmEvent.h:34
Task class for finding Global, STS, MUCH, TRD and TOF tracks in an event.
CbmL1GlobalFindTracksEvents(CbmL1GlobalTrackFinder *finder=nullptr, Bool_t useMvd=kFALSE)
std::pair< UInt_t, UInt_t > ProcessEvent(CbmEvent *event)
Process one event or timeslice.
TClonesArray * fGlobalTracks
Input array of STS hits.
CbmL1GlobalFindTracksEvents(const CbmL1GlobalFindTracksEvents &)
CbmL1GlobalTrackFinder * GetFinder()
TClonesArray * fTrdTrackArray
Output array of CbmMuchTracks.
Double_t fTime
Total real time used for good events.
void UseFinder(CbmL1GlobalTrackFinder *finder)
Int_t fNofEvents
Number of events with success.
TClonesArray * fMuchTrackArray
Output array of CbmStsTracks.
TClonesArray * fStsHits
Input array of MVD hits.
TClonesArray * fMvdHits
Array of CbmEvent objects.
TStopwatch fTimer
Output array of CbmTofTracks.
CbmL1GlobalFindTracksEvents operator=(const CbmL1GlobalFindTracksEvents &)
TClonesArray * fTofTrackArray
Output array of CbmTrdTracks.
Double_t fNofTracks
Number of tracks created.
ClassDef(CbmL1GlobalFindTracksEvents, 1)
TClonesArray * fStsTrackArray
Output array of CbmGlobalTracks.
MC-based track finding in the STS.