Go to the documentation of this file.
43 , fMaxNofMissingHits()
81 static Int_t eventNo = 0;
82 std::cout <<
"CbmLitTrackFinderNN::DoFind: " << eventNo++
83 <<
" events processed" << std::endl;
125 for (Int_t iStation = 0; iStation <
fNofStations; iStation++) {
135 map<Int_t, pair<CbmLitTrackParam, Bool_t>> binParamMap;
136 vector<Int_t>::const_iterator itBins;
137 for (itBins = bins.begin(); itBins != bins.end(); itBins++) {
138 binParamMap[*itBins] =
146 map<Int_t, pair<CbmLitTrackParam, Bool_t>>::iterator itMap;
147 for (itMap = binParamMap.begin(); itMap != binParamMap.end(); itMap++) {
148 (*itMap).second.first = par;
152 (*itMap).second.second =
false;
166 assert(binParamMap.find(bin) != binParamMap.end());
167 if (!binParamMap[bin].second)
187 bool hitInside = (pixelHit->
GetX() < (tpar.
GetX() + devX))
188 && (pixelHit->
GetX() > (tpar.
GetX() - devX))
189 && (pixelHit->
GetY() < (tpar.
GetY() + devY))
190 && (pixelHit->
GetY() > (tpar.
GetY() - devY))
193 if (!hitInside)
continue;
197 fFilter->Update(&tpar, hit, chi);
212 if (minHit != NULL) {
233 for (Int_t hit = 0; hit < track->
GetNofHits(); hit++) {
Data class for track parameters.
void Arrange()
Must be called after all hits are added.
virtual LitStatus DoFind(HitPtrVector &hits, TrackPtrVector &trackSeeds, TrackPtrVector &tracks)
Inherited from CbmLitTrackFinder.
TrackPropagatorPtr fPropagator
void RemoveHits(TrackPtrIterator itBegin, TrackPtrIterator itEnd)
Write already used hits to a used hits set.
litfloat GetZPosByBin(Int_t station, Int_t bin) const
Return Z positions of hit.
void ArrangeHits(HitPtrIterator itBegin, HitPtrIterator itEnd)
std::set< Int_t > fUsedHitsSet
friend F32vec4 sqrt(const F32vec4 &a)
void SetNofMissingHits(Int_t nofMissingHits)
Data class for track parameters.
Interface for track selection algorithm.
vector< Int_t > fMaxNofMissingHits
litfloat GetCovariance(int index) const
Base data class for pixel hits.
Interface for track update algorithm.
void Clear()
Clear array of hits.
CbmLitTrackFinderNN()
Constructor.
void SetParamLast(const CbmLitTrackParam *par)
litfloat GetMaxErrY(Int_t station) const
void FollowTracks(TrackPtrIterator itBegin, TrackPtrIterator itEnd)
Follow tracks through detector.
void SetLastStationId(Int_t lastPlaneId)
std::vector< CbmTofTrack * >::iterator TrackPtrIterator
Int_t NDF(const CbmLitTrack *track)
const vector< Int_t > & GetZPosBins(Int_t station) const
Return bin numbers for Z positions of hits.
Int_t GetPreviousTrackId() const
std::vector< CbmTofTrack * > TrackPtrVector
Base data class for hits.
std::vector< CbmTofHit * >::iterator HitPtrIterator
Base data class for track.
Base data class for pixel hits.
void CopyToOutput(TrackPtrIterator itBegin, TrackPtrIterator itEnd, TrackPtrVector &tracks)
Copy tracks to output array.
const CbmLitTrackParam * GetParamLast() const
vector< litfloat > fSigmaCoef
TrackSelectionPtr fFinalSelection
TrackPropagatorPtr fPropagator
Bool_t CheckParams() const
Return true if track parameters are correct.
const HitPtrVector & GetHits(Int_t station)
Return array of hits.
Int_t GetBinByZPos(Int_t station, litfloat zPos) const
Return bin number for hit Z position.
virtual ~CbmLitTrackFinderNN()
Destructor.
Base data class for track.
static vector< vector< QAHit > > hits
litfloat GetMaxErrT(Int_t station) const
void AddHit(CbmLitHit *hit)
Add hit.
Int_t GetNofMissingHits() const
void InitTrackSeeds(TrackPtrIterator itBegin, TrackPtrIterator itEnd)
Initialize track seeds and copy to local array.
TrackSelectionPtr fSeedSelection
std::vector< CbmTofHit * >::const_iterator HitPtrConstIterator
std::set< Int_t > fUsedSeedsSet
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
LitTrackQa GetQuality() const
const CbmLitHit * GetHit(Int_t index) const
LitHitType GetType() const
void AddHit(const CbmLitHit *hit)
Add hit to track. No additional memory is allocated for hit.
vector< litfloat > fChiSqPixelHitCut
litfloat GetMinZPos(Int_t station) const
Return minimum Z position of hits.
Base data class for hits.
void SetChi2(litfloat chi2)
vector< litfloat > fChiSqStripHitCut
Implementation of nearest neighbor tracking algorithm.
std::vector< CbmTofHit * > HitPtrVector
litfloat GetMaxErrX(Int_t station) const
void SetNofStations(Int_t nofStations)
Set number of stations.