CbmRoot
|
Task class for finding Global, STS, MUCH, TRD and TOF tracks in an event. More...
#include <CbmL1GlobalFindTracksEvents.h>
Public Member Functions | |
CbmL1GlobalFindTracksEvents (CbmL1GlobalTrackFinder *finder=nullptr, Bool_t useMvd=kFALSE) | |
virtual | ~CbmL1GlobalFindTracksEvents () |
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. | |
CbmL1GlobalFindTracksEvents (const CbmL1GlobalFindTracksEvents &) | |
CbmL1GlobalFindTracksEvents | operator= (const CbmL1GlobalFindTracksEvents &) |
ClassDef (CbmL1GlobalFindTracksEvents, 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. | |
Long64_t | nHitsTs = 0 |
Long64_t | nTracksTs = 0 |
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 CbmL1GlobalFindTracksEvents.h.
CbmL1GlobalFindTracksEvents::CbmL1GlobalFindTracksEvents | ( | CbmL1GlobalTrackFinder * | finder = nullptr, |
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 CbmL1GlobalFindTracksEvents.cxx.
References fFinder.
|
virtual |
Destructor
Definition at line 72 of file CbmL1GlobalFindTracksEvents.cxx.
References fFinder, fGlobalTracks, fMuchTrackArray, fStsTrackArray, fTofTrackArray, and fTrdTrackArray.
|
private |
Prevent usage of copy constructor and assignment operator
|
private |
|
virtual |
Task execution
Definition at line 85 of file CbmL1GlobalFindTracksEvents.cxx.
References fEvents, fGlobalTracks, fMuchTrackArray, fNofEvents, fNofHits, fNofTracks, fNofTs, fStsTrackArray, fTime, fTofTrackArray, fTrdTrackArray, nHitsTs, nTracksTs, and ProcessEvent().
|
privatevirtual |
Finish at the end of each event
Definition at line 213 of file CbmL1GlobalFindTracksEvents.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 CbmL1GlobalFindTracksEvents.h.
References fFinder.
|
privatevirtual |
Initialisation at beginning of each event
Definition at line 143 of file CbmL1GlobalFindTracksEvents.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 CbmL1GlobalFindTracksEvents.h.
References fUseMvd.
|
private |
|
private |
Process one event or timeslice.
event | Pointer to event object. If null, entire timeslice is processed. |
Definition at line 234 of file CbmL1GlobalFindTracksEvents.cxx.
References fFinder, CbmL1GlobalTrackFinder::FindTracks(), fNofEvents, fStsHits, fTimer, kMuchPixelHit, kStsHit, kTofHit, kTrdHit, nHitsTs, and nTracksTs.
Referenced by Exec().
|
inline |
Set track finding engine
finder | Pointer to track finding engine |
Definition at line 71 of file CbmL1GlobalFindTracksEvents.h.
References fFinder.
|
private |
Definition at line 81 of file CbmL1GlobalFindTracksEvents.h.
|
private |
Definition at line 80 of file CbmL1GlobalFindTracksEvents.h.
Referenced by CbmL1GlobalFindTracksEvents(), GetFinder(), Init(), ProcessEvent(), UseFinder(), and ~CbmL1GlobalFindTracksEvents().
|
private |
Input array of STS hits.
Definition at line 84 of file CbmL1GlobalFindTracksEvents.h.
Referenced by Exec(), Init(), and ~CbmL1GlobalFindTracksEvents().
|
private |
Output array of CbmStsTracks.
Definition at line 86 of file CbmL1GlobalFindTracksEvents.h.
Referenced by Exec(), Init(), and ~CbmL1GlobalFindTracksEvents().
|
private |
Array of CbmEvent objects.
Definition at line 82 of file CbmL1GlobalFindTracksEvents.h.
Referenced by Init().
|
private |
Number of events with success.
Definition at line 91 of file CbmL1GlobalFindTracksEvents.h.
Referenced by Exec(), Finish(), and ProcessEvent().
|
private |
Number of hits.
Definition at line 92 of file CbmL1GlobalFindTracksEvents.h.
|
private |
Number of tracks created.
Definition at line 93 of file CbmL1GlobalFindTracksEvents.h.
|
private |
|
private |
Input array of MVD hits.
Definition at line 83 of file CbmL1GlobalFindTracksEvents.h.
Referenced by Init(), and ProcessEvent().
|
private |
Output array of CbmGlobalTracks.
Definition at line 85 of file CbmL1GlobalFindTracksEvents.h.
Referenced by Exec(), Init(), and ~CbmL1GlobalFindTracksEvents().
|
private |
Total real time used for good events.
Definition at line 94 of file CbmL1GlobalFindTracksEvents.h.
|
private |
Output array of CbmTofTracks.
Definition at line 89 of file CbmL1GlobalFindTracksEvents.h.
Referenced by ProcessEvent().
|
private |
Output array of CbmTrdTracks.
Definition at line 88 of file CbmL1GlobalFindTracksEvents.h.
Referenced by Exec(), Init(), and ~CbmL1GlobalFindTracksEvents().
|
private |
Output array of CbmMuchTracks.
Definition at line 87 of file CbmL1GlobalFindTracksEvents.h.
Referenced by Exec(), Init(), and ~CbmL1GlobalFindTracksEvents().
|
private |
Definition at line 79 of file CbmL1GlobalFindTracksEvents.h.
Referenced by Init(), and IsMvdUsed().
|
private |
Definition at line 96 of file CbmL1GlobalFindTracksEvents.h.
Referenced by Exec(), and ProcessEvent().
|
private |
Definition at line 97 of file CbmL1GlobalFindTracksEvents.h.
Referenced by Exec(), and ProcessEvent().