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++) {
74 if (zParamMap.find(hit->
GetZ()) == zParamMap.end()) {
75 std::cout <<
"-E- CbmLitAllHitsTofMerger::DoMerge: Z position " << hit->
GetZ()
76 <<
" not found in map. Something is wrong.\n";
80 fFilter->Update(&tpar, hit, chi);
88 tofTracks.push_back(tofTrack);
Hit-to-track merging in TOF detector attaching all hits in the validation region.
Base data class for hits.
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
CbmLitAllHitsTofMerger()
Constructor.
TrackPropagatorPtr fFieldPropagator
virtual ~CbmLitAllHitsTofMerger()
Destructor.
virtual LitStatus DoMerge(HitPtrVector &hits, TrackPtrVector &tracks, TofTrackPtrVector &tofTracks)
Inherited from CbmLitHitToTrackMerger.
TrackPropagatorPtr fLinePropagator
Base data class for hits.
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