CbmRoot
CbmStsFindTracksEvents Class Reference

Task class for finding STS tracks in an event. More...

#include <CbmStsFindTracksEvents.h>

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

Public Member Functions

 CbmStsFindTracksEvents (CbmStsTrackFinder *finder=NULL, Bool_t useMvd=kFALSE)
 
virtual ~CbmStsFindTracksEvents ()
 
virtual void Exec (Option_t *opt)
 
CbmStsTrackFinderGetFinder ()
 
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
 
CbmStsTrackFinderfFinder
 
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...
 

Detailed Description

Task class for finding STS tracks in an event.

Author
Volker Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Since
16.06.2014
Date
23.10.2016
Version
1.0

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.

Constructor & Destructor Documentation

◆ CbmStsFindTracksEvents() [1/2]

CbmStsFindTracksEvents::CbmStsFindTracksEvents ( CbmStsTrackFinder 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 40 of file CbmStsFindTracksEvents.cxx.

References fFinder.

◆ ~CbmStsFindTracksEvents()

CbmStsFindTracksEvents::~CbmStsFindTracksEvents ( )
virtual

Destructor

Definition at line 60 of file CbmStsFindTracksEvents.cxx.

References fFinder, and fTracks.

◆ CbmStsFindTracksEvents() [2/2]

CbmStsFindTracksEvents::CbmStsFindTracksEvents ( const CbmStsFindTracksEvents )
private

Prevent usage of copy constructor and assignment operator

Member Function Documentation

◆ ClassDef()

CbmStsFindTracksEvents::ClassDef ( CbmStsFindTracksEvents  ,
 
)
private

◆ Exec()

void CbmStsFindTracksEvents::Exec ( Option_t *  opt)
virtual

Task execution

Definition at line 68 of file CbmStsFindTracksEvents.cxx.

References fEvents, fTracks, and ProcessEvent().

◆ Finish()

void CbmStsFindTracksEvents::Finish ( )
privatevirtual

Finish at the end of each event

Definition at line 145 of file CbmStsFindTracksEvents.cxx.

References fNofEvents, fNofHits, fNofTracks, and fTime.

◆ GetFinder()

CbmStsTrackFinder* CbmStsFindTracksEvents::GetFinder ( )
inline

Track finder engine @value Pointer to track finding engine

Definition at line 53 of file CbmStsFindTracksEvents.h.

References fFinder.

◆ Init()

InitStatus CbmStsFindTracksEvents::Init ( )
privatevirtual

◆ IsMvdUsed()

Bool_t CbmStsFindTracksEvents::IsMvdUsed ( ) const
inline

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

Definition at line 59 of file CbmStsFindTracksEvents.h.

References fUseMvd.

◆ operator=()

CbmStsFindTracksEvents CbmStsFindTracksEvents::operator= ( const CbmStsFindTracksEvents )
private

◆ ProcessEvent()

void CbmStsFindTracksEvents::ProcessEvent ( CbmEvent event)
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().

◆ UseFinder()

void CbmStsFindTracksEvents::UseFinder ( CbmStsTrackFinder finder)
inline

Set track finding engine

Parameters
finderPointer to track finding engine

Definition at line 65 of file CbmStsFindTracksEvents.h.

References fFinder.

Member Data Documentation

◆ fEvents

TClonesArray* CbmStsFindTracksEvents::fEvents
private

Definition at line 74 of file CbmStsFindTracksEvents.h.

Referenced by Exec(), and Init().

◆ fFinder

CbmStsTrackFinder* CbmStsFindTracksEvents::fFinder
private

◆ fMvdHits

TClonesArray* CbmStsFindTracksEvents::fMvdHits
private

Array of CbmEvent objects.

Definition at line 75 of file CbmStsFindTracksEvents.h.

Referenced by Init().

◆ fNofEvents

Int_t CbmStsFindTracksEvents::fNofEvents
private

Timer.

Number of events with success

Definition at line 79 of file CbmStsFindTracksEvents.h.

Referenced by Finish(), and ProcessEvent().

◆ fNofHits

Double_t CbmStsFindTracksEvents::fNofHits
private

Number of hits.

Definition at line 80 of file CbmStsFindTracksEvents.h.

Referenced by Finish(), and ProcessEvent().

◆ fNofTracks

Double_t CbmStsFindTracksEvents::fNofTracks
private

Number of tracks created.

Definition at line 81 of file CbmStsFindTracksEvents.h.

Referenced by Finish(), and ProcessEvent().

◆ fStsHits

TClonesArray* CbmStsFindTracksEvents::fStsHits
private

Input array of MVD hits.

Definition at line 76 of file CbmStsFindTracksEvents.h.

Referenced by Init(), and ProcessEvent().

◆ fTime

Double_t CbmStsFindTracksEvents::fTime
private

Total real time used for good events.

Definition at line 82 of file CbmStsFindTracksEvents.h.

Referenced by Finish(), and ProcessEvent().

◆ fTimer

TStopwatch CbmStsFindTracksEvents::fTimer
private

Output array of CbmStsTracks.

Definition at line 78 of file CbmStsFindTracksEvents.h.

Referenced by ProcessEvent().

◆ fTracks

TClonesArray* CbmStsFindTracksEvents::fTracks
private

Input array of STS hits.

Definition at line 77 of file CbmStsFindTracksEvents.h.

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

◆ fUseMvd

Bool_t CbmStsFindTracksEvents::fUseMvd
private

Definition at line 72 of file CbmStsFindTracksEvents.h.

Referenced by Init(), and IsMvdUsed().


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