CbmRoot
|
Task class for finding STS tracks in an event. More...
#include <CbmStsFindTracksEvents.h>
Public Member Functions | |
CbmStsFindTracksEvents (CbmStsTrackFinder *finder=NULL, Bool_t useMvd=kFALSE) | |
virtual | ~CbmStsFindTracksEvents () |
virtual void | Exec (Option_t *opt) |
CbmStsTrackFinder * | GetFinder () |
Bool_t | IsMvdUsed () const |
void | UseFinder (CbmStsTrackFinder *finder) |
Private Member Functions | |
virtual InitStatus | Init () |
virtual void | Finish () |
void | ProcessEvent (CbmEvent *event) |
CbmStsFindTracksEvents (const CbmStsFindTracksEvents &) | |
CbmStsFindTracksEvents | operator= (const CbmStsFindTracksEvents &) |
ClassDef (CbmStsFindTracksEvents, 1) | |
Private Attributes | |
Bool_t | fUseMvd |
CbmStsTrackFinder * | fFinder |
TClonesArray * | fEvents |
TClonesArray * | fMvdHits |
Array of CbmEvent objects. More... | |
TClonesArray * | fStsHits |
Input array of MVD hits. More... | |
TClonesArray * | fTracks |
Input array of STS hits. More... | |
TStopwatch | fTimer |
Output array of CbmStsTracks. More... | |
Int_t | fNofEvents |
Timer. More... | |
Double_t | fNofHits |
Number of hits. More... | |
Double_t | fNofTracks |
Number of tracks created. More... | |
Double_t | fTime |
Total real time used for good events. More... | |
Task class for finding STS tracks in an event.
This task creates StsTrack objects from a collection of StsHits. It uses as finding engine a class derived from CVbmStsTrackFinder.
Definition at line 31 of file CbmStsFindTracksEvents.h.
CbmStsFindTracksEvents::CbmStsFindTracksEvents | ( | CbmStsTrackFinder * | finder = NULL , |
Bool_t | useMvd = kFALSE |
||
) |
Constructor
finder | Track finder engine. Default: Ideal track finder. |
useMvd | Include MVD hits in track finding. Default kFALSE. |
Definition at line 40 of file CbmStsFindTracksEvents.cxx.
References fFinder.
|
virtual |
Destructor
Definition at line 60 of file CbmStsFindTracksEvents.cxx.
|
private |
Prevent usage of copy constructor and assignment operator
|
private |
|
virtual |
Task execution
Definition at line 68 of file CbmStsFindTracksEvents.cxx.
References fEvents, fTracks, and ProcessEvent().
|
privatevirtual |
Finish at the end of each event
Definition at line 145 of file CbmStsFindTracksEvents.cxx.
References fNofEvents, fNofHits, fNofTracks, and fTime.
|
inline |
Track finder engine @value Pointer to track finding engine
Definition at line 53 of file CbmStsFindTracksEvents.h.
References fFinder.
|
privatevirtual |
Initialisation at beginning of each event
Definition at line 91 of file CbmStsFindTracksEvents.cxx.
References fEvents, fFinder, fMvdHits, fStsHits, fTracks, fUseMvd, CbmStsTrackFinder::Init(), CbmStsTrackFinder::SetMvdHitArray(), CbmStsTrackFinder::SetStsHitArray(), and CbmStsTrackFinder::SetTrackArray().
|
inline |
Usage of MVD hits @value kTRUE if MVD hits are used for tracking
Definition at line 59 of file CbmStsFindTracksEvents.h.
References fUseMvd.
|
private |
|
private |
Process one event
Definition at line 160 of file CbmStsFindTracksEvents.cxx.
References eventNumber, fFinder, CbmStsTrackFinder::FindTracks(), fNofEvents, fNofHits, fNofTracks, fStsHits, fTime, fTimer, and kStsHit.
Referenced by Exec().
|
inline |
Set track finding engine
finder | Pointer to track finding engine |
Definition at line 65 of file CbmStsFindTracksEvents.h.
References fFinder.
|
private |
Definition at line 74 of file CbmStsFindTracksEvents.h.
|
private |
Definition at line 73 of file CbmStsFindTracksEvents.h.
Referenced by CbmStsFindTracksEvents(), GetFinder(), Init(), ProcessEvent(), UseFinder(), and ~CbmStsFindTracksEvents().
|
private |
Array of CbmEvent objects.
Definition at line 75 of file CbmStsFindTracksEvents.h.
Referenced by Init().
|
private |
Timer.
Number of events with success
Definition at line 79 of file CbmStsFindTracksEvents.h.
Referenced by Finish(), and ProcessEvent().
|
private |
Number of hits.
Definition at line 80 of file CbmStsFindTracksEvents.h.
Referenced by Finish(), and ProcessEvent().
|
private |
Number of tracks created.
Definition at line 81 of file CbmStsFindTracksEvents.h.
Referenced by Finish(), and ProcessEvent().
|
private |
Input array of MVD hits.
Definition at line 76 of file CbmStsFindTracksEvents.h.
Referenced by Init(), and ProcessEvent().
|
private |
Total real time used for good events.
Definition at line 82 of file CbmStsFindTracksEvents.h.
Referenced by Finish(), and ProcessEvent().
|
private |
Output array of CbmStsTracks.
Definition at line 78 of file CbmStsFindTracksEvents.h.
Referenced by ProcessEvent().
|
private |
Input array of STS hits.
Definition at line 77 of file CbmStsFindTracksEvents.h.
Referenced by Exec(), Init(), and ~CbmStsFindTracksEvents().
|
private |
Definition at line 72 of file CbmStsFindTracksEvents.h.
Referenced by Init(), and IsMvdUsed().