41 litfloat zMin = std::numeric_limits<litfloat>::max();
42 map<litfloat, CbmLitTrackParam> zParamMap;
45 zMin = std::min(zMin, hit->
GetZ());
66 for (map<litfloat, CbmLitTrackParam>::iterator it2 = zParamMap.begin(); it2 != zParamMap.end(); it2++) {
72 litfloat minChiSq = std::numeric_limits<litfloat>::max();
77 if (zParamMap.find(hit->
GetZ()) == zParamMap.end()) {
78 std::cout <<
"-E- CbmLitNearestHitTofMerger::DoMerge: Z position " << hit->
GetZ()
79 <<
" not found in map. Something is wrong.\n";
84 fFilter->Update(&tpar, hit, chi);
105 tofTracks.push_back(tofTrack);
Base data class for hits.
Hit-to-track merging in TOF detector using nearest hit approach.
Data class for track parameters.
Interface for track update algorithm.
Base data class for track.
vector< CbmLitTofTrack * > TofTrackPtrVector
static vector< vector< QAHit > > hits
std::vector< CbmTofHit * >::iterator HitPtrIterator
std::vector< CbmTofTrack * >::iterator TrackPtrIterator
std::vector< CbmTofTrack * > TrackPtrVector
std::vector< CbmTofHit * > HitPtrVector
Base data class for hits.
CbmLitNearestHitTofMerger()
Constructor.
TrackPropagatorPtr fFieldPropagator
virtual LitStatus DoMerge(HitPtrVector &hits, TrackPtrVector &tracks, TofTrackPtrVector &tofTracks)
Inherited from CbmLitHitToTrackMerger.
virtual ~CbmLitNearestHitTofMerger()
Destructor.
TrackPropagatorPtr fLinePropagator
void SetDistance(litfloat distance)
void SetTrackParam(const CbmLitTrackParam *par)
void SetHit(const CbmLitHit *hit)
void SetTrack(const CbmLitTrack *track)
Data class for track parameters.
Base data class for track.
const CbmLitTrackParam * GetParamLast() const
LitTrackQa GetQuality() const