CbmRoot
|
MC-based track finding in the STS. More...
#include <CbmStsTrackFinderIdeal.h>
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 |
MC-based track finding in the STS.
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.
CbmStsTrackFinderIdeal::CbmStsTrackFinderIdeal | ( | ) |
Default constructor
Definition at line 32 of file CbmStsTrackFinderIdeal.cxx.
References CbmStsTrackFinder::fVerbose.
CbmStsTrackFinderIdeal::CbmStsTrackFinderIdeal | ( | Int_t | verbose | ) |
Standard constructor
Definition at line 41 of file CbmStsTrackFinderIdeal.cxx.
References CbmStsTrackFinder::fVerbose.
|
virtual |
Destructor
Definition at line 50 of file CbmStsTrackFinderIdeal.cxx.
|
private |
|
protectedinherited |
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 42 of file CbmStsTrackFinder.cxx.
References CbmStsTrack::ELossOverflow(), CbmStsTrackFinder::fStsClusters, CbmStsTrackFinder::fStsHits, CbmDigiManager::Get(), CbmStsHit::GetBackClusterId(), CbmStsCluster::GetCharge(), CbmStsDigi::GetCharge(), CbmCluster::GetDigi(), CbmStsHit::GetFrontClusterId(), CbmCluster::GetNofDigis(), CbmStsTrack::GetNofStsHits(), CbmStsTrack::GetStsHitIndex(), CbmPixelHit::GetX(), CbmPixelHit::GetY(), CbmHit::GetZ(), CbmDigiManager::Instance(), CbmStsTrackFinder::MaxAdcVal(), sqrt(), CbmStsTrackFinder::VecMedian(), x, and y.
Referenced by CbmStsTrackFinder::FillEloss().
|
private |
|
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
mHitArray | Array of CbmStsHit |
trackArray | Array 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.
|
protectedinherited |
Definition at line 111 of file CbmStsTrackFinder.cxx.
References CbmStsTrackFinder::CalculateEloss(), CbmStsTrackFinder::fTracks, and CbmStsTrack::SetELoss().
|
inlinevirtual |
Track finding in one event (abstract)
event | Pointer to event object |
nTracks | Number of StsTrack objects created |
Implements CbmStsTrackFinder.
Definition at line 69 of file CbmStsTrackFinderIdeal.h.
|
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().
|
virtual |
Initialisation
Reimplemented from CbmStsTrackFinder.
Definition at line 55 of file CbmStsTrackFinderIdeal.cxx.
References fMCPointArray, and fMCTrackArray.
|
inlinestaticconstexprprivateinherited |
Definition at line 97 of file CbmStsTrackFinder.h.
Referenced by CbmStsTrackFinder::CalculateEloss().
|
private |
|
inlineinherited |
Modifiers
Definition at line 70 of file CbmStsTrackFinder.h.
References CbmStsTrackFinder::fDigiScheme.
|
inlineinherited |
Definition at line 71 of file CbmStsTrackFinder.h.
References CbmStsTrackFinder::fField.
Referenced by CbmStsFindTracks::Init().
|
inlineinherited |
Definition at line 72 of file CbmStsTrackFinder.h.
References CbmStsTrackFinder::fMvdHits, and hits.
Referenced by CbmStsFindTracksEvents::Init(), and CbmStsFindTracks::Init().
|
inlineinherited |
Definition at line 73 of file CbmStsTrackFinder.h.
References CbmStsTrackFinder::fStsHits, and hits.
Referenced by CbmStsFindTracksEvents::Init(), and CbmStsFindTracks::Init().
|
inlineinherited |
Definition at line 74 of file CbmStsTrackFinder.h.
References CbmStsTrackFinder::fTracks, and tracks.
Referenced by CbmStsFindTracksEvents::Init(), and CbmStsFindTracks::Init().
|
inlineinherited |
Definition at line 75 of file CbmStsTrackFinder.h.
References CbmStsTrackFinder::fVerbose.
Referenced by CbmStsFindTracks::Init().
|
privateinherited |
Calculate median value of a vector
Definition at line 29 of file CbmStsTrackFinder.cxx.
Referenced by CbmStsTrackFinder::CalculateEloss().
|
protectedinherited |
Definition at line 79 of file CbmStsTrackFinder.h.
Referenced by CbmStsTrackFinder::SetDigiScheme().
|
protectedinherited |
Definition at line 80 of file CbmStsTrackFinder.h.
Referenced by CbmStsTrackFinder::SetField().
|
private |
Definition at line 75 of file CbmStsTrackFinderIdeal.h.
|
private |
Arrays of MC information
Definition at line 74 of file CbmStsTrackFinderIdeal.h.
|
protectedinherited |
Definition at line 81 of file CbmStsTrackFinder.h.
Referenced by CbmStsTrackFinder::SetMvdHitArray().
|
protectedinherited |
Definition at line 84 of file CbmStsTrackFinder.h.
Referenced by CbmStsTrackFinder::CalculateEloss().
|
protectedinherited |
Definition at line 82 of file CbmStsTrackFinder.h.
Referenced by CbmStsTrackFinder::CalculateEloss(), DoFind(), and CbmStsTrackFinder::SetStsHitArray().
|
protectedinherited |
Definition at line 83 of file CbmStsTrackFinder.h.
Referenced by CbmL1StsTrackFinder::CopyL1Tracks(), CbmL1StsTrackFinder::DoFind(), DoFind(), CbmStsTrackFinder::FillEloss(), and CbmStsTrackFinder::SetTrackArray().
|
protectedinherited |
Definition at line 85 of file CbmStsTrackFinder.h.
Referenced by CbmStsTrackFinderIdeal(), DoFind(), and CbmStsTrackFinder::SetVerbose().