CbmRoot
Loading...
Searching...
No Matches
CbmGlobalFindTracksEvents Class Reference

Task class for finding Global, STS, MUCH, TRD and TOF tracks in an event. More...

#include <CbmGlobalFindTracksEvents.h>

Inheritance diagram for CbmGlobalFindTracksEvents:
[legend]
Collaboration diagram for CbmGlobalFindTracksEvents:
[legend]

Public Member Functions

 CbmGlobalFindTracksEvents (CbmL1GlobalTrackFinder *finder=NULL, Bool_t useMvd=kFALSE)
 
virtual ~CbmGlobalFindTracksEvents ()
 
virtual void Exec (Option_t *opt)
 
CbmL1GlobalTrackFinderGetFinder ()
 
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
 
CbmL1GlobalTrackFinderfFinder
 
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.
 

Detailed Description

Task class for finding Global, STS, MUCH, TRD and TOF tracks in an event.

Author
V. Akishina v.aki.nosp@m.shin.nosp@m.a@gsi.nosp@m..de based on CbmStsFindTracksEvent.h by Volker Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Since
07.05.2021
Date
07.05.2021
Version
1.0

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.

Constructor & Destructor Documentation

◆ CbmGlobalFindTracksEvents() [1/2]

CbmGlobalFindTracksEvents::CbmGlobalFindTracksEvents ( CbmL1GlobalTrackFinder * finder = NULL,
Bool_t useMvd = kFALSE )

Constructor

Parameters
finderTrack finder engine. Default: Ideal track finder.
useMvdInclude MVD hits in track finding. Default kFALSE.

Definition at line 48 of file CbmGlobalFindTracksEvents.cxx.

References fFinder.

◆ ~CbmGlobalFindTracksEvents()

CbmGlobalFindTracksEvents::~CbmGlobalFindTracksEvents ( )
virtual

Destructor

Definition at line 72 of file CbmGlobalFindTracksEvents.cxx.

References fFinder, and fGlobalTracks.

◆ CbmGlobalFindTracksEvents() [2/2]

CbmGlobalFindTracksEvents::CbmGlobalFindTracksEvents ( const CbmGlobalFindTracksEvents & )
private

Prevent usage of copy constructor and assignment operator

Member Function Documentation

◆ ClassDef()

CbmGlobalFindTracksEvents::ClassDef ( CbmGlobalFindTracksEvents ,
1  )
private

◆ Exec()

void CbmGlobalFindTracksEvents::Exec ( Option_t * opt)
virtual

Task execution

Definition at line 81 of file CbmGlobalFindTracksEvents.cxx.

References fEvents, fGlobalTracks, fNofEvents, fNofHits, fNofTracks, fNofTs, fTime, and ProcessEvent().

◆ Finish()

void CbmGlobalFindTracksEvents::Finish ( )
privatevirtual

Finish at the end of each event

Definition at line 202 of file CbmGlobalFindTracksEvents.cxx.

References fEvents, fNofEvents, fNofHits, fNofTracks, fNofTs, and fTime.

◆ GetFinder()

CbmL1GlobalTrackFinder * CbmGlobalFindTracksEvents::GetFinder ( )
inline

Track finder engine @value Pointer to track finding engine

Definition at line 59 of file CbmGlobalFindTracksEvents.h.

References fFinder.

◆ Init()

◆ IsMvdUsed()

Bool_t CbmGlobalFindTracksEvents::IsMvdUsed ( ) const
inline

Usage of MVD hits @value kTRUE if MVD hits are used for tracking

Definition at line 65 of file CbmGlobalFindTracksEvents.h.

References fUseMvd.

◆ operator=()

CbmGlobalFindTracksEvents CbmGlobalFindTracksEvents::operator= ( const CbmGlobalFindTracksEvents & )
private

◆ ProcessEvent()

pair< UInt_t, UInt_t > CbmGlobalFindTracksEvents::ProcessEvent ( CbmEvent * event)
private

Process one event or timeslice.

Parameters
eventPointer to event object. If null, entire timeslice is processed.
Returns
Number of input hits and output tracks

Definition at line 222 of file CbmGlobalFindTracksEvents.cxx.

References fFinder, CbmL1GlobalTrackFinder::FindTracks(), fNofEvents, fStsHits, fTimer, and kStsHit.

Referenced by Exec().

◆ UseFinder()

void CbmGlobalFindTracksEvents::UseFinder ( CbmL1GlobalTrackFinder * finder)
inline

Set track finding engine

Parameters
finderPointer to track finding engine

Definition at line 71 of file CbmGlobalFindTracksEvents.h.

References fFinder.

Member Data Documentation

◆ fEvents

TClonesArray* CbmGlobalFindTracksEvents::fEvents
private

Definition at line 81 of file CbmGlobalFindTracksEvents.h.

Referenced by Exec(), Finish(), and Init().

◆ fFinder

CbmL1GlobalTrackFinder* CbmGlobalFindTracksEvents::fFinder
private

◆ fGlobalTracks

TClonesArray* CbmGlobalFindTracksEvents::fGlobalTracks
private

Input array of STS hits.

Definition at line 84 of file CbmGlobalFindTracksEvents.h.

Referenced by Exec(), Init(), and ~CbmGlobalFindTracksEvents().

◆ fMuchTrackArray

TClonesArray* CbmGlobalFindTracksEvents::fMuchTrackArray
private

Output array of CbmStsTracks.

Definition at line 86 of file CbmGlobalFindTracksEvents.h.

Referenced by Init().

◆ fMvdHits

TClonesArray* CbmGlobalFindTracksEvents::fMvdHits
private

Array of CbmEvent objects.

Definition at line 82 of file CbmGlobalFindTracksEvents.h.

Referenced by Init().

◆ fNofEvents

Int_t CbmGlobalFindTracksEvents::fNofEvents
private

Number of events with success.

Definition at line 91 of file CbmGlobalFindTracksEvents.h.

Referenced by Exec(), Finish(), and ProcessEvent().

◆ fNofHits

Double_t CbmGlobalFindTracksEvents::fNofHits
private

Number of hits.

Definition at line 92 of file CbmGlobalFindTracksEvents.h.

Referenced by Exec(), and Finish().

◆ fNofTracks

Double_t CbmGlobalFindTracksEvents::fNofTracks
private

Number of tracks created.

Definition at line 93 of file CbmGlobalFindTracksEvents.h.

Referenced by Exec(), and Finish().

◆ fNofTs

Int_t CbmGlobalFindTracksEvents::fNofTs = 0
private

Timer.

Number of processed timeslices

Definition at line 90 of file CbmGlobalFindTracksEvents.h.

Referenced by Exec(), and Finish().

◆ fStsHits

TClonesArray* CbmGlobalFindTracksEvents::fStsHits
private

Input array of MVD hits.

Definition at line 83 of file CbmGlobalFindTracksEvents.h.

Referenced by Init(), and ProcessEvent().

◆ fStsTrackArray

TClonesArray* CbmGlobalFindTracksEvents::fStsTrackArray
private

Output array of CbmGlobalTracks.

Definition at line 85 of file CbmGlobalFindTracksEvents.h.

Referenced by Init().

◆ fTime

Double_t CbmGlobalFindTracksEvents::fTime
private

Total real time used for good events.

Definition at line 94 of file CbmGlobalFindTracksEvents.h.

Referenced by Exec(), and Finish().

◆ fTimer

TStopwatch CbmGlobalFindTracksEvents::fTimer
private

Output array of CbmTofTracks.

Definition at line 89 of file CbmGlobalFindTracksEvents.h.

Referenced by ProcessEvent().

◆ fTofTrackArray

TClonesArray* CbmGlobalFindTracksEvents::fTofTrackArray
private

Output array of CbmTrdTracks.

Definition at line 88 of file CbmGlobalFindTracksEvents.h.

Referenced by Init().

◆ fTrdTrackArray

TClonesArray* CbmGlobalFindTracksEvents::fTrdTrackArray
private

Output array of CbmMuchTracks.

Definition at line 87 of file CbmGlobalFindTracksEvents.h.

Referenced by Init().

◆ fUseMvd

Bool_t CbmGlobalFindTracksEvents::fUseMvd
private

Definition at line 79 of file CbmGlobalFindTracksEvents.h.

Referenced by Init(), and IsMvdUsed().


The documentation for this class was generated from the following files: