CbmRoot
|
Task class for finding Global, STS, MUCH, TRD and TOF tracks in an event. More...
#include <CbmGlobalFindTracksEvents.h>
Public Member Functions | |
CbmGlobalFindTracksEvents (CbmL1GlobalTrackFinder *finder=NULL, Bool_t useMvd=kFALSE) | |
virtual | ~CbmGlobalFindTracksEvents () |
virtual void | Exec (Option_t *opt) |
CbmL1GlobalTrackFinder * | GetFinder () |
Bool_t | IsMvdUsed () const |
void | UseFinder (CbmL1GlobalTrackFinder *finder) |
Private Member Functions | |
virtual InitStatus | Init () |
virtual void | Finish () |
std::pair< UInt_t, UInt_t > | ProcessEvent (CbmEvent *event) |
Process one event or timeslice. | |
CbmGlobalFindTracksEvents (const CbmGlobalFindTracksEvents &) | |
CbmGlobalFindTracksEvents | operator= (const CbmGlobalFindTracksEvents &) |
ClassDef (CbmGlobalFindTracksEvents, 1) | |
Private Attributes | |
Bool_t | fUseMvd |
CbmL1GlobalTrackFinder * | fFinder |
TClonesArray * | fEvents |
TClonesArray * | fMvdHits |
Array of CbmEvent objects. | |
TClonesArray * | fStsHits |
Input array of MVD hits. | |
TClonesArray * | fGlobalTracks |
Input array of STS hits. | |
TClonesArray * | fStsTrackArray |
Output array of CbmGlobalTracks. | |
TClonesArray * | fMuchTrackArray |
Output array of CbmStsTracks. | |
TClonesArray * | fTrdTrackArray |
Output array of CbmMuchTracks. | |
TClonesArray * | fTofTrackArray |
Output array of CbmTrdTracks. | |
TStopwatch | fTimer |
Output array of CbmTofTracks. | |
Int_t | fNofTs = 0 |
Timer. | |
Int_t | fNofEvents |
Number of events with success. | |
Double_t | fNofHits |
Number of hits. | |
Double_t | fNofTracks |
Number of tracks created. | |
Double_t | fTime |
Total real time used for good events. | |
Task class for finding Global, STS, MUCH, TRD and TOF tracks in an event.
This task creates GlobalTrack, StsTrack, MuchTrack, TrdTrack, TofTrack objects from hits. It uses as finding engine CbmL1GlobalTrackFinder.
Definition at line 38 of file CbmGlobalFindTracksEvents.h.
CbmGlobalFindTracksEvents::CbmGlobalFindTracksEvents | ( | CbmL1GlobalTrackFinder * | 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 48 of file CbmGlobalFindTracksEvents.cxx.
References fFinder.
|
virtual |
Destructor
Definition at line 72 of file CbmGlobalFindTracksEvents.cxx.
References fFinder, and fGlobalTracks.
|
private |
Prevent usage of copy constructor and assignment operator
|
private |
|
virtual |
Task execution
Definition at line 81 of file CbmGlobalFindTracksEvents.cxx.
References fEvents, fGlobalTracks, fNofEvents, fNofHits, fNofTracks, fNofTs, fTime, and ProcessEvent().
|
privatevirtual |
Finish at the end of each event
Definition at line 202 of file CbmGlobalFindTracksEvents.cxx.
References fEvents, fNofEvents, fNofHits, fNofTracks, fNofTs, and fTime.
|
inline |
Track finder engine @value Pointer to track finding engine
Definition at line 59 of file CbmGlobalFindTracksEvents.h.
References fFinder.
|
privatevirtual |
Initialisation at beginning of each event
Definition at line 132 of file CbmGlobalFindTracksEvents.cxx.
References fEvents, fFinder, fGlobalTracks, fMuchTrackArray, fMvdHits, fStsHits, fStsTrackArray, fTofTrackArray, fTrdTrackArray, fUseMvd, CbmL1GlobalTrackFinder::Init(), CbmL1GlobalTrackFinder::SetGlobalTracksArray(), CbmL1GlobalTrackFinder::SetMuchTracksArray(), CbmStsTrackFinder::SetMvdHitArray(), CbmStsTrackFinder::SetStsHitArray(), CbmL1GlobalTrackFinder::SetStsTracksArray(), CbmL1GlobalTrackFinder::SetTofTracksArray(), and CbmL1GlobalTrackFinder::SetTrdTracksArray().
|
inline |
Usage of MVD hits @value kTRUE if MVD hits are used for tracking
Definition at line 65 of file CbmGlobalFindTracksEvents.h.
References fUseMvd.
|
private |
|
private |
Process one event or timeslice.
event | Pointer to event object. If null, entire timeslice is processed. |
Definition at line 222 of file CbmGlobalFindTracksEvents.cxx.
References fFinder, CbmL1GlobalTrackFinder::FindTracks(), fNofEvents, fStsHits, fTimer, and kStsHit.
Referenced by Exec().
|
inline |
Set track finding engine
finder | Pointer to track finding engine |
Definition at line 71 of file CbmGlobalFindTracksEvents.h.
References fFinder.
|
private |
Definition at line 81 of file CbmGlobalFindTracksEvents.h.
|
private |
Definition at line 80 of file CbmGlobalFindTracksEvents.h.
Referenced by CbmGlobalFindTracksEvents(), GetFinder(), Init(), ProcessEvent(), UseFinder(), and ~CbmGlobalFindTracksEvents().
|
private |
Input array of STS hits.
Definition at line 84 of file CbmGlobalFindTracksEvents.h.
Referenced by Exec(), Init(), and ~CbmGlobalFindTracksEvents().
|
private |
Output array of CbmStsTracks.
Definition at line 86 of file CbmGlobalFindTracksEvents.h.
Referenced by Init().
|
private |
Array of CbmEvent objects.
Definition at line 82 of file CbmGlobalFindTracksEvents.h.
Referenced by Init().
|
private |
Number of events with success.
Definition at line 91 of file CbmGlobalFindTracksEvents.h.
Referenced by Exec(), Finish(), and ProcessEvent().
|
private |
Number of hits.
Definition at line 92 of file CbmGlobalFindTracksEvents.h.
|
private |
Number of tracks created.
Definition at line 93 of file CbmGlobalFindTracksEvents.h.
|
private |
|
private |
Input array of MVD hits.
Definition at line 83 of file CbmGlobalFindTracksEvents.h.
Referenced by Init(), and ProcessEvent().
|
private |
Output array of CbmGlobalTracks.
Definition at line 85 of file CbmGlobalFindTracksEvents.h.
Referenced by Init().
|
private |
Total real time used for good events.
Definition at line 94 of file CbmGlobalFindTracksEvents.h.
|
private |
Output array of CbmTofTracks.
Definition at line 89 of file CbmGlobalFindTracksEvents.h.
Referenced by ProcessEvent().
|
private |
Output array of CbmTrdTracks.
Definition at line 88 of file CbmGlobalFindTracksEvents.h.
Referenced by Init().
|
private |
Output array of CbmMuchTracks.
Definition at line 87 of file CbmGlobalFindTracksEvents.h.
Referenced by Init().
|
private |
Definition at line 79 of file CbmGlobalFindTracksEvents.h.
Referenced by Init(), and IsMvdUsed().