CbmRoot
CbmStsTrackFinderIdeal Class Reference

MC-based track finding in the STS. More...

#include <CbmStsTrackFinderIdeal.h>

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

Public Member Functions

 CbmStsTrackFinderIdeal ()
 
 CbmStsTrackFinderIdeal (Int_t verbose)
 
virtual ~CbmStsTrackFinderIdeal ()
 
virtual void Init ()
 
virtual Int_t DoFind ()
 
virtual Int_t FindTracks (CbmEvent *)
 
virtual void Finish ()
 
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

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

Static Private Member Functions

constexpr static int MaxAdcVal ()
 

Private Attributes

TClonesArray * fMCTrackArray
 
TClonesArray * fMCPointArray
 

Detailed Description

MC-based track finding in the STS.

Author
V.Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
Since
2.2.2005
Date
23.10.2016

Ideal track finder in the STS for simulated data. For each MCTrack having at least 3 StsPoints, a StsTrack is created and the corresponding StsHits are attached using the correspondence between StsHit and StsPoint.

Definition at line 38 of file CbmStsTrackFinderIdeal.h.

Constructor & Destructor Documentation

◆ CbmStsTrackFinderIdeal() [1/3]

CbmStsTrackFinderIdeal::CbmStsTrackFinderIdeal ( )

Default constructor

Definition at line 32 of file CbmStsTrackFinderIdeal.cxx.

References CbmStsTrackFinder::fVerbose.

◆ CbmStsTrackFinderIdeal() [2/3]

CbmStsTrackFinderIdeal::CbmStsTrackFinderIdeal ( Int_t  verbose)

Standard constructor

Definition at line 41 of file CbmStsTrackFinderIdeal.cxx.

References CbmStsTrackFinder::fVerbose.

◆ ~CbmStsTrackFinderIdeal()

CbmStsTrackFinderIdeal::~CbmStsTrackFinderIdeal ( )
virtual

Destructor

Definition at line 50 of file CbmStsTrackFinderIdeal.cxx.

◆ CbmStsTrackFinderIdeal() [3/3]

CbmStsTrackFinderIdeal::CbmStsTrackFinderIdeal ( const CbmStsTrackFinderIdeal )
private

Member Function Documentation

◆ CalculateEloss()

◆ ClassDef()

CbmStsTrackFinderIdeal::ClassDef ( CbmStsTrackFinderIdeal  ,
 
)
private

◆ DoFind()

Int_t CbmStsTrackFinderIdeal::DoFind ( )
virtual

Track finding algorithm This just reads MC truth (MCTracks and MCPoints), creates one StsTrack for each MCTrack and attaches the hits according to the MCTrack of the corresponding MCPoint

Parameters
mHitArrayArray of CbmStsHit
trackArrayArray of CbmStsTrack

@value Number of tracks created

Implements CbmStsTrackFinder.

Definition at line 83 of file CbmStsTrackFinderIdeal.cxx.

References CbmTrack::AddHit(), fMCPointArray, fMCTrackArray, CbmStsTrackFinder::fStsHits, CbmStsTrackFinder::fTracks, CbmStsTrackFinder::fVerbose, CbmMCTrack::GetNPoints(), CbmHit::GetRefId(), kSts, kSTSHIT, and nMCTracks.

◆ FillEloss()

void CbmStsTrackFinder::FillEloss ( )
protectedinherited

◆ FindTracks()

virtual Int_t CbmStsTrackFinderIdeal::FindTracks ( CbmEvent event)
inlinevirtual

Track finding in one event (abstract)

Parameters
eventPointer to event object
nTracksNumber of StsTrack objects created

Implements CbmStsTrackFinder.

Definition at line 69 of file CbmStsTrackFinderIdeal.h.

◆ Finish()

virtual void CbmStsTrackFinder::Finish ( )
inlinevirtualinherited

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()

void CbmStsTrackFinderIdeal::Init ( )
virtual

Initialisation

Reimplemented from CbmStsTrackFinder.

Definition at line 55 of file CbmStsTrackFinderIdeal.cxx.

References fMCPointArray, and fMCTrackArray.

◆ MaxAdcVal()

constexpr static int CbmStsTrackFinder::MaxAdcVal ( )
inlinestaticconstexprprivateinherited

Definition at line 97 of file CbmStsTrackFinder.h.

Referenced by CbmStsTrackFinder::CalculateEloss().

◆ operator=()

CbmStsTrackFinderIdeal CbmStsTrackFinderIdeal::operator= ( const CbmStsTrackFinderIdeal )
private

◆ SetDigiScheme()

void CbmStsTrackFinder::SetDigiScheme ( CbmStsDigiScheme *  scheme)
inlineinherited

Modifiers

Definition at line 70 of file CbmStsTrackFinder.h.

References CbmStsTrackFinder::fDigiScheme.

◆ SetField()

void CbmStsTrackFinder::SetField ( FairField *  field)
inlineinherited

Definition at line 71 of file CbmStsTrackFinder.h.

References CbmStsTrackFinder::fField.

Referenced by CbmStsFindTracks::Init().

◆ SetMvdHitArray()

void CbmStsTrackFinder::SetMvdHitArray ( TClonesArray *  hits)
inlineinherited

Definition at line 72 of file CbmStsTrackFinder.h.

References CbmStsTrackFinder::fMvdHits, and hits.

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

◆ SetStsHitArray()

void CbmStsTrackFinder::SetStsHitArray ( TClonesArray *  hits)
inlineinherited

Definition at line 73 of file CbmStsTrackFinder.h.

References CbmStsTrackFinder::fStsHits, and hits.

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

◆ SetTrackArray()

void CbmStsTrackFinder::SetTrackArray ( TClonesArray *  tracks)
inlineinherited

Definition at line 74 of file CbmStsTrackFinder.h.

References CbmStsTrackFinder::fTracks, and tracks.

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

◆ SetVerbose()

void CbmStsTrackFinder::SetVerbose ( Int_t  verbose)
inlineinherited

Definition at line 75 of file CbmStsTrackFinder.h.

References CbmStsTrackFinder::fVerbose.

Referenced by CbmStsFindTracks::Init().

◆ VecMedian()

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

Calculate median value of a vector

Definition at line 29 of file CbmStsTrackFinder.cxx.

Referenced by CbmStsTrackFinder::CalculateEloss().

Member Data Documentation

◆ fDigiScheme

CbmStsDigiScheme* CbmStsTrackFinder::fDigiScheme
protectedinherited

Definition at line 79 of file CbmStsTrackFinder.h.

Referenced by CbmStsTrackFinder::SetDigiScheme().

◆ fField

FairField* CbmStsTrackFinder::fField
protectedinherited

Definition at line 80 of file CbmStsTrackFinder.h.

Referenced by CbmStsTrackFinder::SetField().

◆ fMCPointArray

TClonesArray* CbmStsTrackFinderIdeal::fMCPointArray
private

Definition at line 75 of file CbmStsTrackFinderIdeal.h.

Referenced by DoFind(), and Init().

◆ fMCTrackArray

TClonesArray* CbmStsTrackFinderIdeal::fMCTrackArray
private

Arrays of MC information

Definition at line 74 of file CbmStsTrackFinderIdeal.h.

Referenced by DoFind(), and Init().

◆ fMvdHits

TClonesArray* CbmStsTrackFinder::fMvdHits
protectedinherited

Definition at line 81 of file CbmStsTrackFinder.h.

Referenced by CbmStsTrackFinder::SetMvdHitArray().

◆ fStsClusters

TClonesArray* CbmStsTrackFinder::fStsClusters
protectedinherited

Definition at line 84 of file CbmStsTrackFinder.h.

Referenced by CbmStsTrackFinder::CalculateEloss().

◆ fStsHits

TClonesArray* CbmStsTrackFinder::fStsHits
protectedinherited

◆ fTracks

TClonesArray* CbmStsTrackFinder::fTracks
protectedinherited

◆ fVerbose

Int_t CbmStsTrackFinder::fVerbose
protectedinherited

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