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

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

#include <CbmL1GlobalFindTracksEvents.h>

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

Public Member Functions

 CbmL1GlobalFindTracksEvents (CbmL1GlobalTrackFinder *finder=nullptr, Bool_t useMvd=kFALSE)
 
virtual ~CbmL1GlobalFindTracksEvents ()
 
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.
 
 CbmL1GlobalFindTracksEvents (const CbmL1GlobalFindTracksEvents &)
 
CbmL1GlobalFindTracksEvents operator= (const CbmL1GlobalFindTracksEvents &)
 
 ClassDef (CbmL1GlobalFindTracksEvents, 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.
 
Long64_t nHitsTs = 0
 
Long64_t nTracksTs = 0
 

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 CbmL1GlobalFindTracksEvents.h.

Constructor & Destructor Documentation

◆ CbmL1GlobalFindTracksEvents() [1/2]

CbmL1GlobalFindTracksEvents::CbmL1GlobalFindTracksEvents ( CbmL1GlobalTrackFinder * finder = nullptr,
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 CbmL1GlobalFindTracksEvents.cxx.

References fFinder.

◆ ~CbmL1GlobalFindTracksEvents()

CbmL1GlobalFindTracksEvents::~CbmL1GlobalFindTracksEvents ( )
virtual

◆ CbmL1GlobalFindTracksEvents() [2/2]

CbmL1GlobalFindTracksEvents::CbmL1GlobalFindTracksEvents ( const CbmL1GlobalFindTracksEvents & )
private

Prevent usage of copy constructor and assignment operator

Member Function Documentation

◆ ClassDef()

CbmL1GlobalFindTracksEvents::ClassDef ( CbmL1GlobalFindTracksEvents ,
1  )
private

◆ Exec()

void CbmL1GlobalFindTracksEvents::Exec ( Option_t * opt)
virtual

◆ Finish()

void CbmL1GlobalFindTracksEvents::Finish ( )
privatevirtual

Finish at the end of each event

Definition at line 213 of file CbmL1GlobalFindTracksEvents.cxx.

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

◆ GetFinder()

CbmL1GlobalTrackFinder * CbmL1GlobalFindTracksEvents::GetFinder ( )
inline

Track finder engine @value Pointer to track finding engine

Definition at line 59 of file CbmL1GlobalFindTracksEvents.h.

References fFinder.

◆ Init()

◆ IsMvdUsed()

Bool_t CbmL1GlobalFindTracksEvents::IsMvdUsed ( ) const
inline

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

Definition at line 65 of file CbmL1GlobalFindTracksEvents.h.

References fUseMvd.

◆ operator=()

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

◆ ProcessEvent()

pair< UInt_t, UInt_t > CbmL1GlobalFindTracksEvents::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 234 of file CbmL1GlobalFindTracksEvents.cxx.

References fFinder, CbmL1GlobalTrackFinder::FindTracks(), fNofEvents, fStsHits, fTimer, kMuchPixelHit, kStsHit, kTofHit, kTrdHit, nHitsTs, and nTracksTs.

Referenced by Exec().

◆ UseFinder()

void CbmL1GlobalFindTracksEvents::UseFinder ( CbmL1GlobalTrackFinder * finder)
inline

Set track finding engine

Parameters
finderPointer to track finding engine

Definition at line 71 of file CbmL1GlobalFindTracksEvents.h.

References fFinder.

Member Data Documentation

◆ fEvents

TClonesArray* CbmL1GlobalFindTracksEvents::fEvents
private

Definition at line 81 of file CbmL1GlobalFindTracksEvents.h.

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

◆ fFinder

CbmL1GlobalTrackFinder* CbmL1GlobalFindTracksEvents::fFinder
private

◆ fGlobalTracks

TClonesArray* CbmL1GlobalFindTracksEvents::fGlobalTracks
private

Input array of STS hits.

Definition at line 84 of file CbmL1GlobalFindTracksEvents.h.

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

◆ fMuchTrackArray

TClonesArray* CbmL1GlobalFindTracksEvents::fMuchTrackArray
private

Output array of CbmStsTracks.

Definition at line 86 of file CbmL1GlobalFindTracksEvents.h.

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

◆ fMvdHits

TClonesArray* CbmL1GlobalFindTracksEvents::fMvdHits
private

Array of CbmEvent objects.

Definition at line 82 of file CbmL1GlobalFindTracksEvents.h.

Referenced by Init().

◆ fNofEvents

Int_t CbmL1GlobalFindTracksEvents::fNofEvents
private

Number of events with success.

Definition at line 91 of file CbmL1GlobalFindTracksEvents.h.

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

◆ fNofHits

Double_t CbmL1GlobalFindTracksEvents::fNofHits
private

Number of hits.

Definition at line 92 of file CbmL1GlobalFindTracksEvents.h.

Referenced by Exec(), and Finish().

◆ fNofTracks

Double_t CbmL1GlobalFindTracksEvents::fNofTracks
private

Number of tracks created.

Definition at line 93 of file CbmL1GlobalFindTracksEvents.h.

Referenced by Exec(), and Finish().

◆ fNofTs

Int_t CbmL1GlobalFindTracksEvents::fNofTs = 0
private

Timer.

Number of processed timeslices

Definition at line 90 of file CbmL1GlobalFindTracksEvents.h.

Referenced by Exec(), and Finish().

◆ fStsHits

TClonesArray* CbmL1GlobalFindTracksEvents::fStsHits
private

Input array of MVD hits.

Definition at line 83 of file CbmL1GlobalFindTracksEvents.h.

Referenced by Init(), and ProcessEvent().

◆ fStsTrackArray

TClonesArray* CbmL1GlobalFindTracksEvents::fStsTrackArray
private

Output array of CbmGlobalTracks.

Definition at line 85 of file CbmL1GlobalFindTracksEvents.h.

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

◆ fTime

Double_t CbmL1GlobalFindTracksEvents::fTime
private

Total real time used for good events.

Definition at line 94 of file CbmL1GlobalFindTracksEvents.h.

Referenced by Exec(), and Finish().

◆ fTimer

TStopwatch CbmL1GlobalFindTracksEvents::fTimer
private

Output array of CbmTofTracks.

Definition at line 89 of file CbmL1GlobalFindTracksEvents.h.

Referenced by ProcessEvent().

◆ fTofTrackArray

TClonesArray* CbmL1GlobalFindTracksEvents::fTofTrackArray
private

Output array of CbmTrdTracks.

Definition at line 88 of file CbmL1GlobalFindTracksEvents.h.

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

◆ fTrdTrackArray

TClonesArray* CbmL1GlobalFindTracksEvents::fTrdTrackArray
private

Output array of CbmMuchTracks.

Definition at line 87 of file CbmL1GlobalFindTracksEvents.h.

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

◆ fUseMvd

Bool_t CbmL1GlobalFindTracksEvents::fUseMvd
private

Definition at line 79 of file CbmL1GlobalFindTracksEvents.h.

Referenced by Init(), and IsMvdUsed().

◆ nHitsTs

Long64_t CbmL1GlobalFindTracksEvents::nHitsTs = 0
private

Definition at line 96 of file CbmL1GlobalFindTracksEvents.h.

Referenced by Exec(), and ProcessEvent().

◆ nTracksTs

Long64_t CbmL1GlobalFindTracksEvents::nTracksTs = 0
private

Definition at line 97 of file CbmL1GlobalFindTracksEvents.h.

Referenced by Exec(), and ProcessEvent().


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