CbmRoot
Loading...
Searching...
No Matches
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 ()
 
std::pair< UInt_t, UInt_t > ProcessEvent (CbmEvent *event)
 Process one event or timeslice.
 
 CbmStsFindTracksEvents (const CbmStsFindTracksEvents &)
 
CbmStsFindTracksEvents operator= (const CbmStsFindTracksEvents &)
 
 ClassDef (CbmStsFindTracksEvents, 1)
 

Private Attributes

Bool_t fUseMvd
 
CbmStsTrackFinderfFinder
 
TClonesArray * fEvents
 
TClonesArray * fMvdHits
 Array of CbmEvent objects.
 
TClonesArray * fStsHits
 Input array of MVD hits.
 
TClonesArray * fTracks
 Input array of STS hits.
 
TStopwatch fTimer
 Output array of CbmStsTracks.
 
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 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 35 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 48 of file CbmStsFindTracksEvents.cxx.

References fFinder.

◆ ~CbmStsFindTracksEvents()

CbmStsFindTracksEvents::~CbmStsFindTracksEvents ( )
virtual

Destructor

Definition at line 68 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 ,
1  )
private

◆ Exec()

void CbmStsFindTracksEvents::Exec ( Option_t * opt)
virtual

Task execution

Definition at line 77 of file CbmStsFindTracksEvents.cxx.

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

◆ Finish()

void CbmStsFindTracksEvents::Finish ( )
privatevirtual

Finish at the end of each event

Definition at line 186 of file CbmStsFindTracksEvents.cxx.

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

◆ GetFinder()

CbmStsTrackFinder * CbmStsFindTracksEvents::GetFinder ( )
inline

Track finder engine @value Pointer to track finding engine

Definition at line 56 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 62 of file CbmStsFindTracksEvents.h.

References fUseMvd.

◆ operator=()

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

◆ ProcessEvent()

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

References fFinder, CbmStsTrackFinder::FillEloss(), CbmStsTrackFinder::FindTracks(), fNofEvents, fStsHits, 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 68 of file CbmStsFindTracksEvents.h.

References fFinder.

Member Data Documentation

◆ fEvents

TClonesArray* CbmStsFindTracksEvents::fEvents
private

Definition at line 78 of file CbmStsFindTracksEvents.h.

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

◆ fFinder

CbmStsTrackFinder* CbmStsFindTracksEvents::fFinder
private

◆ fMvdHits

TClonesArray* CbmStsFindTracksEvents::fMvdHits
private

Array of CbmEvent objects.

Definition at line 79 of file CbmStsFindTracksEvents.h.

Referenced by Init().

◆ fNofEvents

Int_t CbmStsFindTracksEvents::fNofEvents
private

Number of events with success.

Definition at line 84 of file CbmStsFindTracksEvents.h.

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

◆ fNofHits

Double_t CbmStsFindTracksEvents::fNofHits
private

Number of hits.

Definition at line 85 of file CbmStsFindTracksEvents.h.

Referenced by Exec(), and Finish().

◆ fNofTracks

Double_t CbmStsFindTracksEvents::fNofTracks
private

Number of tracks created.

Definition at line 86 of file CbmStsFindTracksEvents.h.

Referenced by Exec(), and Finish().

◆ fNofTs

Int_t CbmStsFindTracksEvents::fNofTs = 0
private

Timer.

Number of processed timeslices

Definition at line 83 of file CbmStsFindTracksEvents.h.

Referenced by Exec(), and Finish().

◆ fStsHits

TClonesArray* CbmStsFindTracksEvents::fStsHits
private

Input array of MVD hits.

Definition at line 80 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 87 of file CbmStsFindTracksEvents.h.

Referenced by Exec(), and Finish().

◆ fTimer

TStopwatch CbmStsFindTracksEvents::fTimer
private

Output array of CbmStsTracks.

Definition at line 82 of file CbmStsFindTracksEvents.h.

Referenced by ProcessEvent().

◆ fTracks

TClonesArray* CbmStsFindTracksEvents::fTracks
private

Input array of STS hits.

Definition at line 81 of file CbmStsFindTracksEvents.h.

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

◆ fUseMvd

Bool_t CbmStsFindTracksEvents::fUseMvd
private

Definition at line 76 of file CbmStsFindTracksEvents.h.

Referenced by Init(), and IsMvdUsed().


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