![]() |
PandaRoot
|
#include <PndHoughTrackFinder.h>
Public Member Functions | |
PndHoughTrackFinder () | |
PndHoughTrackFinder (TClonesArray *tubeArray) | |
virtual | ~PndHoughTrackFinder () |
virtual void | SetBinningX (double bin) |
Sets the number of bins in x direction for the Hough space. More... | |
virtual void | SetBinningY (double bin) |
Sets the number of bins in y direction for the Hough space. More... | |
virtual void | SetNBinsSeg (Int_t n) |
Sets the number of bins used for the segmentation preselection algorithm. More... | |
virtual void | SetBz (double B) |
Sets the z component of the magnetic field. More... | |
virtual void | SetCutMergeByHoughSpace (float cut) |
Sets the cut value for the distance of two maxima in the Hough space which have to be merged. More... | |
virtual void | SetWithGPU (bool cuda) |
Sets a bool for deciding to use cuda. More... | |
virtual void | SetWithGhostReduction (bool ghostred) |
Sets a bool for deciding to use a ghost reduction. More... | |
virtual void | SetPreselectedTrackCands (std::vector< PndTrackCand > cands) |
virtual void | UseDefaultPreselection (bool pres) |
virtual void | SetCombinedSkewed (TClonesArray *skewed) |
void | Init () |
Initializes the data structure and the Hough space of the HoughtrackFinder. More... | |
void | Reset () |
Resets the data for a new event. More... | |
void | AddHits (TClonesArray *hits, TString branchName) |
Adds hits to the data structure of the HoughTrackFinder. More... | |
void | CreateNeighborhood () |
Creates the neighborhood parameters for all investigated hits. More... | |
void | FindTracks () |
Main function of the HoughTrackFinder, which finds the tracks. More... | |
void | Preselection () |
Here all data are preselected in smaller tracklets. More... | |
void | FindHoughMaxima () |
Performs a Hough transformation for all preselected tracklets. The found track parameters are stored in fPreselectedTrackCircles. More... | |
TVector2 | calcPhiRange (PndTrackCand &trackCand) |
bool | IsInPhiRange (FairHit *hit, double phiLow, double phiHigh) |
void | AddSkewedHits (int i) |
void | AddOtherDetectorHits (int i, TString type) |
PndApollonius::TripletSolution | FromPndTrackToTripletSolution (PndTrack &track, PndHoughData *fData) |
std::vector< PndApollonius::TripletSolution > | CombineIdenticalSolutionsFinal (std::vector< PndApollonius::TripletSolution > &solutions, Double_t ratioOfSameHits) |
PndTrack | FromTripletSolutionToPndTrack (PndApollonius::TripletSolution &sol, Double_t B) |
Converts a TripletSolution to a PndTrack. More... | |
double | CalcRatioSameHits (PndApollonius::TripletSolution &sol, std::vector< PndApollonius::TripletSolution > &AlreadyFoundSolutions) |
PndTrackCand | GetPreselectedTrackCand (int i) |
Returns a specific preselected track candidate. More... | |
int | GetNumPreselectedTrackCands () |
Returns the number of preselected track candidates. More... | |
TVector3 | GetPreselectedTrackCircles (int i) |
Returns a the corresponding circle for a specific preselected track candidate. More... | |
int | GetNumPreselectedTrackCircles () |
Returns the number of preselected circles for track candidates. More... | |
PndTrack | GetMergedTrack (int i) |
Returns a specific found track. More... | |
int | GetNumMergedTracks () |
Returns the number of found tracks. More... | |
std::map< FairLink, FairHit * > | GetMapFairLinktoFairHit () |
Returns a specific found track candidate. More... | |
PndHoughData * | GetData () |
Returns the data class of the HoughTrackFinder. More... | |
PANDA class for finding tracks based on a hough transformation Task level RECO
Definition at line 32 of file PndHoughTrackFinder.h.
|
inline |
Definition at line 34 of file PndHoughTrackFinder.h.
|
inline |
Definition at line 36 of file PndHoughTrackFinder.h.
|
inlinevirtual |
Destructor
Definition at line 45 of file PndHoughTrackFinder.h.
void PndHoughTrackFinder::AddHits | ( | TClonesArray * | hits, |
TString | branchName | ||
) |
Adds hits to the data structure of the HoughTrackFinder.
Referenced by Reset().
void PndHoughTrackFinder::AddOtherDetectorHits | ( | int | i, |
TString | type | ||
) |
Referenced by CreateNeighborhood().
void PndHoughTrackFinder::AddSkewedHits | ( | int | i | ) |
Referenced by CreateNeighborhood().
TVector2 PndHoughTrackFinder::calcPhiRange | ( | PndTrackCand & | trackCand | ) |
Referenced by CreateNeighborhood().
double PndHoughTrackFinder::CalcRatioSameHits | ( | PndApollonius::TripletSolution & | sol, |
std::vector< PndApollonius::TripletSolution > & | AlreadyFoundSolutions | ||
) |
Referenced by CreateNeighborhood().
std::vector<PndApollonius::TripletSolution> PndHoughTrackFinder::CombineIdenticalSolutionsFinal | ( | std::vector< PndApollonius::TripletSolution > & | solutions, |
Double_t | ratioOfSameHits | ||
) |
Referenced by CreateNeighborhood().
|
inline |
Creates the neighborhood parameters for all investigated hits.
Definition at line 98 of file PndHoughTrackFinder.h.
References AddOtherDetectorHits(), AddSkewedHits(), calcPhiRange(), CalcRatioSameHits(), CombineIdenticalSolutionsFinal(), PndHoughData::CreateGEMNeighborhoodData(), PndHoughData::CreateSTTNeighborhoodData(), FindHoughMaxima(), FindTracks(), FromPndTrackToTripletSolution(), FromTripletSolutionToPndTrack(), i, IsInPhiRange(), and Preselection().
void PndHoughTrackFinder::FindHoughMaxima | ( | ) |
Performs a Hough transformation for all preselected tracklets. The found track parameters are stored in fPreselectedTrackCircles.
Referenced by CreateNeighborhood().
void PndHoughTrackFinder::FindTracks | ( | ) |
Main function of the HoughTrackFinder, which finds the tracks.
Referenced by CreateNeighborhood().
PndApollonius::TripletSolution PndHoughTrackFinder::FromPndTrackToTripletSolution | ( | PndTrack & | track, |
PndHoughData * | fData | ||
) |
Referenced by CreateNeighborhood().
PndTrack PndHoughTrackFinder::FromTripletSolutionToPndTrack | ( | PndApollonius::TripletSolution & | sol, |
Double_t | B | ||
) |
Converts a TripletSolution to a PndTrack.
[in] | sol | The TripletSolution |
[out] | result | The PndTrack |
Referenced by CreateNeighborhood().
|
inline |
Returns the data class of the HoughTrackFinder.
Definition at line 155 of file PndHoughTrackFinder.h.
|
inline |
Returns a specific found track candidate.
Returns the number of found track candidates. Returns a map linking FairLinks to the corresponding FairHits.
Definition at line 152 of file PndHoughTrackFinder.h.
References PndHoughData::GetMapFairLinktoFairHit().
|
inline |
Returns a specific found track.
Definition at line 140 of file PndHoughTrackFinder.h.
References PndHoughMerge::GetMergedTrack().
|
inline |
Returns the number of found tracks.
Definition at line 143 of file PndHoughTrackFinder.h.
References PndHoughMerge::GetNumMergedTracks().
|
inline |
Returns the number of preselected track candidates.
Definition at line 131 of file PndHoughTrackFinder.h.
|
inline |
Returns the number of preselected circles for track candidates.
Definition at line 137 of file PndHoughTrackFinder.h.
|
inline |
Returns a specific preselected track candidate.
Definition at line 128 of file PndHoughTrackFinder.h.
References i.
|
inline |
Returns a the corresponding circle for a specific preselected track candidate.
Definition at line 134 of file PndHoughTrackFinder.h.
References i.
|
inline |
Initializes the data structure and the Hough space of the HoughtrackFinder.
Definition at line 76 of file PndHoughTrackFinder.h.
References PndHoughData::Init(), and PndSttCA::SetUseGPU().
bool PndHoughTrackFinder::IsInPhiRange | ( | FairHit * | hit, |
double | phiLow, | ||
double | phiHigh | ||
) |
Referenced by CreateNeighborhood().
void PndHoughTrackFinder::Preselection | ( | ) |
Here all data are preselected in smaller tracklets.
Referenced by CreateNeighborhood().
|
inline |
Resets the data for a new event.
Definition at line 83 of file PndHoughTrackFinder.h.
References AddHits(), PndHoughData::clear(), PndSttCA::Reset(), and PndSttCA::SetUseGPU().
|
inlinevirtual |
Sets the number of bins in x direction for the Hough space.
Definition at line 59 of file PndHoughTrackFinder.h.
|
inlinevirtual |
Sets the number of bins in y direction for the Hough space.
Definition at line 61 of file PndHoughTrackFinder.h.
|
inlinevirtual |
Sets the z component of the magnetic field.
Definition at line 65 of file PndHoughTrackFinder.h.
|
inlinevirtual |
Definition at line 74 of file PndHoughTrackFinder.h.
|
inlinevirtual |
Sets the cut value for the distance of two maxima in the Hough space which have to be merged.
Definition at line 67 of file PndHoughTrackFinder.h.
References cut.
|
inlinevirtual |
Sets the number of bins used for the segmentation preselection algorithm.
Definition at line 63 of file PndHoughTrackFinder.h.
|
inlinevirtual |
Definition at line 72 of file PndHoughTrackFinder.h.
|
inlinevirtual |
Sets a bool for deciding to use a ghost reduction.
Definition at line 71 of file PndHoughTrackFinder.h.
|
inlinevirtual |
Sets a bool for deciding to use cuda.
Definition at line 69 of file PndHoughTrackFinder.h.
|
inlinevirtual |
Definition at line 73 of file PndHoughTrackFinder.h.