16 #ifndef PndHoughMerge_H_ 17 #define PndHoughMerge_H_ 36 ioman = FairRootManager::Instance();
38 fMergedTracks.clear();
55 void mergeByHoughSpace(std::vector<TVector3> &PreselectedCircles, std::vector<PndTrackCand> &TrackCands,
double fBz);
57 void mergeSingle(std::vector<std::vector<int>> &mergeTracks, std::vector<PndTrack> &Tracks, std::vector<PndTrackCand> &TrackCands,
double fBz);
60 bool IsGhost(std::vector<double> &trackcirc);
76 FairRootManager *ioman =
nullptr;
83 std::map<FairLink, FairHit *> fMapFairLinktoFairHit;
84 std::vector<PndTrack> fMergedTracks;
87 std::vector<std::vector<double>> fMaxima_x;
88 std::vector<std::vector<double>> fMaxima_y;
89 std::vector<std::vector<double>> fMaxima_r;
93 float fCutMergeByHoughSpace;
98 double fCounterHittedNeighborsRel;
101 bool fGEMNeighborCut;
102 bool fSTTNeighborCut;
103 bool fWithGhostReduction;
virtual void SetCutMergeByHoughSpace(float cut)
Sets the value of the distance in the Hough space within two tracklets have to be merged...
bool IsGhost(std::vector< double > &trackcirc)
Determines whether the specified track is a ghost.
void mergeSingle(std::vector< std::vector< int >> &mergeTracks, std::vector< PndTrack > &Tracks, std::vector< PndTrackCand > &TrackCands, double fBz)
Here all tracklets are merged.
virtual void SetTrackCorrection(PndHoughTrackCorrection *correction)
int GetNumMergedTracks()
Returns a specific merged track candidate.
std::map< FairLink, FairHit * > GetMapFairLinktoFairHit() const
Returns the map linking FairLinks to FairHits.
void mergeByHoughSpace(std::vector< TVector3 > &PreselectedCircles, std::vector< PndTrackCand > &TrackCands, double fBz)
All tracklets are determined that have to be merged.
virtual void SetUtilities(PndHoughUtilities *utilities)
void CountHits()
Counts the number of hits of different detector parts for a specific track candidate.
PndHoughMerge(PndHoughData *data)
void CalculateGhostReductionParameters(std::vector< double > &trackcirc)
Calculates the ghost reduction parameters.
virtual void SetWithGhostReduction(bool ghostred)
Sets a bool for deciding to use a ghost reduction.
PndTrack GetMergedTrack(int i)
Returns a specific merged track.
double findMedian(std::vector< double > a)
void UpdateMergedTrack(int i, PndTrack &track)
Returns the number of merged track candidates.