CbmRoot
CbmStsTrackFinder Class Referenceabstract

#include <CbmStsTrackFinder.h>

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

Public Member Functions

 CbmStsTrackFinder ()
 
virtual ~CbmStsTrackFinder ()
 
virtual void Init ()
 
virtual Int_t DoFind ()=0
 
virtual void Finish ()
 
virtual Int_t FindTracks (CbmEvent *event)=0
 
void SetDigiScheme (CbmStsDigiScheme *scheme)
 
void SetField (FairField *field)
 
void SetMvdHitArray (TClonesArray *hits)
 
void SetStsHitArray (TClonesArray *hits)
 
void SetTrackArray (TClonesArray *tracks)
 
void SetVerbose (Int_t verbose)
 

Protected Member Functions

double CalculateEloss (CbmStsTrack *cbmStsTrack)
 
void FillEloss ()
 

Protected Attributes

CbmStsDigiScheme * fDigiScheme
 
FairField * fField
 
TClonesArray * fMvdHits
 
TClonesArray * fStsHits
 
TClonesArray * fTracks
 
TClonesArray * fStsClusters
 
Int_t fVerbose
 

Private Member Functions

double VecMedian (std::vector< double > &vec)
 
 CbmStsTrackFinder (const CbmStsTrackFinder &)
 
CbmStsTrackFinderoperator= (const CbmStsTrackFinder &)
 
 ClassDef (CbmStsTrackFinder, 1)
 

Static Private Member Functions

constexpr static int MaxAdcVal ()
 

Detailed Description

Definition at line 30 of file CbmStsTrackFinder.h.

Constructor & Destructor Documentation

◆ CbmStsTrackFinder() [1/2]

CbmStsTrackFinder::CbmStsTrackFinder ( )

Default constructor

Definition at line 19 of file CbmStsTrackFinder.cxx.

◆ ~CbmStsTrackFinder()

virtual CbmStsTrackFinder::~CbmStsTrackFinder ( )
inlinevirtual

Destructor

Definition at line 38 of file CbmStsTrackFinder.h.

◆ CbmStsTrackFinder() [2/2]

CbmStsTrackFinder::CbmStsTrackFinder ( const CbmStsTrackFinder )
private

Member Function Documentation

◆ CalculateEloss()

◆ ClassDef()

CbmStsTrackFinder::ClassDef ( CbmStsTrackFinder  ,
 
)
private

◆ DoFind()

virtual Int_t CbmStsTrackFinder::DoFind ( )
pure virtual

Abstract method DoFind. To be implemented in the concrete class. Task: Read the hit array and fill the track array, pointers to which are private members and set by the task

@value Number of tracks created

Implemented in CbmStsTrackFinderIdeal, and CbmL1StsTrackFinder.

Referenced by CbmStsFindTracks::Exec().

◆ FillEloss()

void CbmStsTrackFinder::FillEloss ( )
protected

Definition at line 111 of file CbmStsTrackFinder.cxx.

References CalculateEloss(), fTracks, and CbmStsTrack::SetELoss().

◆ FindTracks()

virtual Int_t CbmStsTrackFinder::FindTracks ( CbmEvent event)
pure virtual

Track finding in one event (abstract)

Parameters
eventPointer to event object
nTracksNumber of StsTrack objects created

Implemented in CbmL1StsTrackFinder, and CbmStsTrackFinderIdeal.

Referenced by CbmStsFindTracksEvents::ProcessEvent().

◆ Finish()

virtual void CbmStsTrackFinder::Finish ( )
inlinevirtual

Virtual method Finish. If needed, to be implemented in the concrete class. Executed at the end of the run.

Definition at line 59 of file CbmStsTrackFinder.h.

Referenced by CbmStsFindTracks::Finish().

◆ Init()

virtual void CbmStsTrackFinder::Init ( )
inlinevirtual

Virtual method Init. If needed, to be implemented in the concrete class. Else no action.

Reimplemented in CbmStsTrackFinderIdeal, and CbmL1StsTrackFinder.

Definition at line 44 of file CbmStsTrackFinder.h.

Referenced by CbmStsFindTracksEvents::Init(), and CbmStsFindTracks::Init().

◆ MaxAdcVal()

constexpr static int CbmStsTrackFinder::MaxAdcVal ( )
inlinestaticconstexprprivate

Definition at line 97 of file CbmStsTrackFinder.h.

Referenced by CalculateEloss().

◆ operator=()

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

◆ SetDigiScheme()

void CbmStsTrackFinder::SetDigiScheme ( CbmStsDigiScheme *  scheme)
inline

Modifiers

Definition at line 70 of file CbmStsTrackFinder.h.

References fDigiScheme.

◆ SetField()

void CbmStsTrackFinder::SetField ( FairField *  field)
inline

Definition at line 71 of file CbmStsTrackFinder.h.

References fField.

Referenced by CbmStsFindTracks::Init().

◆ SetMvdHitArray()

void CbmStsTrackFinder::SetMvdHitArray ( TClonesArray *  hits)
inline

Definition at line 72 of file CbmStsTrackFinder.h.

References fMvdHits, and hits.

Referenced by CbmStsFindTracksEvents::Init(), and CbmStsFindTracks::Init().

◆ SetStsHitArray()

void CbmStsTrackFinder::SetStsHitArray ( TClonesArray *  hits)
inline

Definition at line 73 of file CbmStsTrackFinder.h.

References fStsHits, and hits.

Referenced by CbmStsFindTracksEvents::Init(), and CbmStsFindTracks::Init().

◆ SetTrackArray()

void CbmStsTrackFinder::SetTrackArray ( TClonesArray *  tracks)
inline

Definition at line 74 of file CbmStsTrackFinder.h.

References fTracks, and tracks.

Referenced by CbmStsFindTracksEvents::Init(), and CbmStsFindTracks::Init().

◆ SetVerbose()

void CbmStsTrackFinder::SetVerbose ( Int_t  verbose)
inline

Definition at line 75 of file CbmStsTrackFinder.h.

References fVerbose.

Referenced by CbmStsFindTracks::Init().

◆ VecMedian()

double CbmStsTrackFinder::VecMedian ( std::vector< double > &  vec)
private

Calculate median value of a vector

Definition at line 29 of file CbmStsTrackFinder.cxx.

Referenced by CalculateEloss().

Member Data Documentation

◆ fDigiScheme

CbmStsDigiScheme* CbmStsTrackFinder::fDigiScheme
protected

Definition at line 79 of file CbmStsTrackFinder.h.

Referenced by SetDigiScheme().

◆ fField

FairField* CbmStsTrackFinder::fField
protected

Definition at line 80 of file CbmStsTrackFinder.h.

Referenced by SetField().

◆ fMvdHits

TClonesArray* CbmStsTrackFinder::fMvdHits
protected

Definition at line 81 of file CbmStsTrackFinder.h.

Referenced by SetMvdHitArray().

◆ fStsClusters

TClonesArray* CbmStsTrackFinder::fStsClusters
protected

Definition at line 84 of file CbmStsTrackFinder.h.

Referenced by CalculateEloss().

◆ fStsHits

TClonesArray* CbmStsTrackFinder::fStsHits
protected

◆ fTracks

TClonesArray* CbmStsTrackFinder::fTracks
protected

◆ fVerbose

Int_t CbmStsTrackFinder::fVerbose
protected

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