CbmRoot
CbmL1GlobalTrackFinder.h
Go to the documentation of this file.
1 /*
2  *====================================================================
3  *
4  * CBM Level 1 Global Reconstruction
5  *
6  * Authors: V.Akishina
7  *
8  * e-mail : v.akishina@gsi.de
9  *
10  *====================================================================
11  *
12  * CbmL1GlobalTrackFinder header
13  *
14  *====================================================================
15  */
16 
17 #ifndef CBML1GLOBALTRACKFINDER
18 #define CBML1GLOBALTRACKFINDER 1
19 
20 
21 #include "CbmL1.h"
22 
23 //#include "CbmStsTrackFinder.h"
24 #include "CbmGlobalTrack.h"
25 #include "CbmMuchTrack.h"
26 #include "CbmStsTrack.h"
27 #include "CbmTofTrack.h"
28 #include "CbmTrdTrack.h"
29 #include "FairTask.h"
30 #include "TStopwatch.h"
31 
32 class TClonesArray;
33 class CbmEvent;
34 
35 
37  public FairTask //, CbmStsTrackFinder
38 {
39 
40 public:
43 
44 
46  virtual ~CbmL1GlobalTrackFinder();
47 
48 
50  //virtual InitStatus Init();
51  virtual InitStatus Init();
52  virtual void Exec(Option_t* opt);
53  virtual void Finish();
54  void ProcessEvent(CbmEvent* event);
55 
56 
59  virtual Int_t DoFind();
60 
65  virtual Int_t FindTracks(CbmEvent* event);
66 
67 
68 private:
69  TClonesArray* fMuchTracks; // output CbmMuchTrack array
70  TClonesArray* fTrdTracks; // output CbmTrdTrack array
71  TClonesArray* fTofTracks; // output CbmTofTrack array
72  TClonesArray* fGlobalTracks; //output CbmGlobalTrack array
73 
74  TClonesArray* fMvdHits; // MvdHit array
75  TClonesArray* fStsHits; // StsHit array
76  TClonesArray* fTracks; // StsTrack array
77 
78  TClonesArray* fEvents;
79 
80  TStopwatch fTimer;
81  Int_t fNofEvents;
82  Double_t fNofHits;
83  Double_t fNofTracks;
84  Double_t fTime;
85  Int_t fEventNo; // event counter
86 
91  Int_t CopyL1Tracks(CbmEvent* event = NULL);
92 
93  Int_t CreateGlobalTrackArray(CbmEvent* event,
94  TClonesArray* globalTracks,
95  TClonesArray* stsTracks,
96  TClonesArray* trdTracks,
97  TClonesArray* muchTracks,
98  TClonesArray* tofTracks);
99 
100 
102 };
103 
104 
105 #endif
CbmL1GlobalTrackFinder::fTime
Double_t fTime
Total real time used for good events.
Definition: CbmL1GlobalTrackFinder.h:84
CbmL1GlobalTrackFinder::Init
virtual InitStatus Init()
Definition: CbmL1GlobalTrackFinder.cxx:54
CbmTofTrack.h
CbmL1GlobalTrackFinder::CopyL1Tracks
Int_t CopyL1Tracks(CbmEvent *event=NULL)
Definition: CbmL1GlobalTrackFinder.cxx:326
CbmL1GlobalTrackFinder::fTrdTracks
TClonesArray * fTrdTracks
Definition: CbmL1GlobalTrackFinder.h:70
CbmL1GlobalTrackFinder::fNofTracks
Double_t fNofTracks
Number of tracks created.
Definition: CbmL1GlobalTrackFinder.h:83
CbmL1GlobalTrackFinder::fGlobalTracks
TClonesArray * fGlobalTracks
Definition: CbmL1GlobalTrackFinder.h:72
CbmL1GlobalTrackFinder::fTimer
TStopwatch fTimer
Array of CbmEvent objects.
Definition: CbmL1GlobalTrackFinder.h:80
CbmGlobalTrack.h
CbmL1.h
CbmL1GlobalTrackFinder::Exec
virtual void Exec(Option_t *opt)
Definition: CbmL1GlobalTrackFinder.cxx:96
CbmL1GlobalTrackFinder::fEventNo
Int_t fEventNo
Definition: CbmL1GlobalTrackFinder.h:85
CbmL1GlobalTrackFinder::ClassDef
ClassDef(CbmL1GlobalTrackFinder, 1)
CbmL1GlobalTrackFinder::fMvdHits
TClonesArray * fMvdHits
Definition: CbmL1GlobalTrackFinder.h:74
CbmStsTrack.h
Data class for STS tracks.
CbmMuchTrack.h
CbmL1GlobalTrackFinder::DoFind
virtual Int_t DoFind()
Definition: CbmL1GlobalTrackFinder.cxx:377
CbmL1GlobalTrackFinder::FindTracks
virtual Int_t FindTracks(CbmEvent *event)
Definition: CbmL1GlobalTrackFinder.cxx:397
CbmL1GlobalTrackFinder::fEvents
TClonesArray * fEvents
Definition: CbmL1GlobalTrackFinder.h:78
CbmL1GlobalTrackFinder::~CbmL1GlobalTrackFinder
virtual ~CbmL1GlobalTrackFinder()
Definition: CbmL1GlobalTrackFinder.cxx:50
CbmL1GlobalTrackFinder::CreateGlobalTrackArray
Int_t CreateGlobalTrackArray(CbmEvent *event, TClonesArray *globalTracks, TClonesArray *stsTracks, TClonesArray *trdTracks, TClonesArray *muchTracks, TClonesArray *tofTracks)
Definition: CbmL1GlobalTrackFinder.cxx:150
CbmL1GlobalTrackFinder::fMuchTracks
TClonesArray * fMuchTracks
Definition: CbmL1GlobalTrackFinder.h:69
CbmL1GlobalTrackFinder
Definition: CbmL1GlobalTrackFinder.h:38
CbmL1GlobalTrackFinder::Finish
virtual void Finish()
Definition: CbmL1GlobalTrackFinder.cxx:418
CbmL1GlobalTrackFinder::fNofEvents
Int_t fNofEvents
Timer.
Definition: CbmL1GlobalTrackFinder.h:81
CbmEvent
Class characterising one event by a collection of links (indices) to data objects,...
Definition: CbmEvent.h:30
CbmL1GlobalTrackFinder::fStsHits
TClonesArray * fStsHits
Definition: CbmL1GlobalTrackFinder.h:75
CbmTrdTrack.h
CbmL1GlobalTrackFinder::ProcessEvent
void ProcessEvent(CbmEvent *event)
Definition: CbmL1GlobalTrackFinder.cxx:122
CbmL1GlobalTrackFinder::fTofTracks
TClonesArray * fTofTracks
Definition: CbmL1GlobalTrackFinder.h:71
CbmL1GlobalTrackFinder::fTracks
TClonesArray * fTracks
Definition: CbmL1GlobalTrackFinder.h:76
CbmL1GlobalTrackFinder::CbmL1GlobalTrackFinder
CbmL1GlobalTrackFinder()
CbmL1GlobalTrackFinder::fNofHits
Double_t fNofHits
Number of hits.
Definition: CbmL1GlobalTrackFinder.h:82