CbmRoot
|
#include <CbmStsTrackFinder.h>
Public Member Functions | |
CbmStsTrackFinder () | |
virtual | ~CbmStsTrackFinder () |
virtual void | Init () |
virtual Int_t | DoFind ()=0 |
void | FillEloss () |
Calculate the median energy loss for the tracks and fill the respective data members. | |
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) |
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 &) | |
CbmStsTrackFinder & | operator= (const CbmStsTrackFinder &) |
ClassDef (CbmStsTrackFinder, 1) | |
Static Private Member Functions | |
static constexpr int | MaxAdcVal () |
Definition at line 34 of file CbmStsTrackFinder.h.
CbmStsTrackFinder::CbmStsTrackFinder | ( | ) |
Default constructor
Definition at line 23 of file CbmStsTrackFinder.cxx.
|
inlinevirtual |
Destructor
Definition at line 42 of file CbmStsTrackFinder.h.
|
private |
|
protected |
Median energy loss calculation for the tracks in event/timeslice Ported from CbmKFParticleFinderPID Description of the method given at 30th CBM CM https://indico.gsi.de/event/4760/session/4/contribution/80/material/slides/0.pdf
Definition at line 51 of file CbmStsTrackFinder.cxx.
References CbmStsTrack::ELossOverflow(), fStsClusters, fStsHits, CbmDigiManager::Get(), CbmStsHit::GetBackClusterId(), CbmStsCluster::GetCharge(), CbmCluster::GetDigi(), CbmStsHit::GetFrontClusterId(), CbmCluster::GetNofDigis(), CbmStsTrack::GetNofStsHits(), CbmStsTrack::GetStsHitIndex(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), CbmHit::GetZ(), CbmDigiManager::Instance(), MaxAdcVal(), sqrt(), VecMedian(), x, and y.
Referenced by FillEloss().
|
private |
|
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 CbmL1GlobalTrackFinder, CbmL1StsTrackFinder, and CbmStsTrackFinderIdeal.
Referenced by CbmStsFindTracks::Exec().
void CbmStsTrackFinder::FillEloss | ( | ) |
Calculate the median energy loss for the tracks and fill the respective data members.
Definition at line 111 of file CbmStsTrackFinder.cxx.
References CalculateEloss(), fTracks, and CbmStsTrack::SetELoss().
Referenced by CbmStsFindTracks::Exec(), and CbmStsFindTracksEvents::ProcessEvent().
|
pure virtual |
Track finding in one event (abstract)
event | Pointer to event object |
nTracks | Number of StsTrack objects created |
Implemented in CbmL1GlobalTrackFinder, CbmL1StsTrackFinder, and CbmStsTrackFinderIdeal.
Referenced by CbmStsFindTracksEvents::ProcessEvent().
|
inlinevirtual |
Virtual method Finish. If needed, to be implemented in the concrete class. Executed at the end of the run.
Definition at line 66 of file CbmStsTrackFinder.h.
Referenced by CbmStsFindTracks::Finish().
|
inlinevirtual |
Virtual method Init. If needed, to be implemented in the concrete class. Else no action.
Reimplemented in CbmL1GlobalTrackFinder, CbmL1StsTrackFinder, and CbmStsTrackFinderIdeal.
Definition at line 48 of file CbmStsTrackFinder.h.
Referenced by CbmStsFindTracks::Init(), and CbmStsFindTracksEvents::Init().
|
inlinestaticconstexprprivate |
Definition at line 103 of file CbmStsTrackFinder.h.
Referenced by CalculateEloss().
|
private |
|
inline |
|
inline |
Definition at line 78 of file CbmStsTrackFinder.h.
References fField.
Referenced by CbmStsFindTracks::Init().
|
inline |
Definition at line 79 of file CbmStsTrackFinder.h.
References fMvdHits, and hits.
Referenced by CbmGlobalFindTracksEvents::Init(), CbmL1GlobalFindTracksEvents::Init(), CbmStsFindTracks::Init(), and CbmStsFindTracksEvents::Init().
|
inline |
Definition at line 80 of file CbmStsTrackFinder.h.
References fStsHits, and hits.
Referenced by CbmGlobalFindTracksEvents::Init(), CbmL1GlobalFindTracksEvents::Init(), CbmStsFindTracks::Init(), and CbmStsFindTracksEvents::Init().
|
inline |
Definition at line 81 of file CbmStsTrackFinder.h.
References fTracks, and tracks.
Referenced by CbmStsFindTracks::Init(), and CbmStsFindTracksEvents::Init().
|
inline |
Definition at line 82 of file CbmStsTrackFinder.h.
References fVerbose.
Referenced by CbmStsFindTracks::Init().
|
private |
Calculate median value of a vector
Definition at line 35 of file CbmStsTrackFinder.cxx.
Referenced by CalculateEloss().
|
protected |
Definition at line 86 of file CbmStsTrackFinder.h.
Referenced by SetDigiScheme().
|
protected |
Definition at line 87 of file CbmStsTrackFinder.h.
Referenced by SetField().
|
protected |
Definition at line 88 of file CbmStsTrackFinder.h.
Referenced by SetMvdHitArray().
|
protected |
Definition at line 91 of file CbmStsTrackFinder.h.
Referenced by CalculateEloss().
|
protected |
Definition at line 89 of file CbmStsTrackFinder.h.
Referenced by CalculateEloss(), CbmStsTrackFinderIdeal::DoFind(), and SetStsHitArray().
|
protected |
Definition at line 90 of file CbmStsTrackFinder.h.
Referenced by CbmL1StsTrackFinder::CopyL1Tracks(), CbmL1GlobalTrackFinder::DoFind(), CbmL1StsTrackFinder::DoFind(), CbmStsTrackFinderIdeal::DoFind(), FillEloss(), and SetTrackArray().
|
protected |
Definition at line 92 of file CbmStsTrackFinder.h.
Referenced by CbmStsTrackFinderIdeal::CbmStsTrackFinderIdeal(), CbmStsTrackFinderIdeal::CbmStsTrackFinderIdeal(), CbmStsTrackFinderIdeal::DoFind(), and SetVerbose().