PandaRoot
PndHoughMerge Class Reference

#include <PndHoughMerge.h>

Public Member Functions

 PndHoughMerge (PndHoughData *data)
 
virtual ~PndHoughMerge ()
 
virtual void SetCutMergeByHoughSpace (float cut)
 Sets the value of the distance in the Hough space within two tracklets have to be merged. More...
 
virtual void SetWithGhostReduction (bool ghostred)
 Sets a bool for deciding to use a ghost reduction. More...
 
virtual void SetUtilities (PndHoughUtilities *utilities)
 
virtual void SetTrackCorrection (PndHoughTrackCorrection *correction)
 
void mergeByHoughSpace (std::vector< TVector3 > &PreselectedCircles, std::vector< PndTrackCand > &TrackCands, double fBz)
 All tracklets are determined that have to be merged. More...
 
void mergeSingle (std::vector< std::vector< int >> &mergeTracks, std::vector< PndTrack > &Tracks, std::vector< PndTrackCand > &TrackCands, double fBz)
 Here all tracklets are merged. More...
 
double findMedian (std::vector< double > a)
 
bool IsGhost (std::vector< double > &trackcirc)
 Determines whether the specified track is a ghost. More...
 
void CalculateGhostReductionParameters (std::vector< double > &trackcirc)
 Calculates the ghost reduction parameters. More...
 
void CountHits ()
 Counts the number of hits of different detector parts for a specific track candidate. More...
 
PndTrack GetMergedTrack (int i)
 Returns a specific merged track. More...
 
int GetNumMergedTracks ()
 Returns a specific merged track candidate. More...
 
void UpdateMergedTrack (int i, PndTrack &track)
 Returns the number of merged track candidates. More...
 

Detailed Description

PndHoughMerge

Author
Anna Alicke a.ali.nosp@m.cke@.nosp@m.fz-ju.nosp@m.elic.nosp@m.h.de
Since
23.06.2019 23.11.2021
Version
3.1

PANDA class for merging single tracklets Task level RECO

Definition at line 27 of file PndHoughMerge.h.

Constructor & Destructor Documentation

◆ PndHoughMerge()

PndHoughMerge::PndHoughMerge ( PndHoughData data)
inline

Definition at line 29 of file PndHoughMerge.h.

References PndHoughData::GetMapFairLinktoFairHit().

29  : fCutMergeByHoughSpace(5.), fWithGhostReduction(kTRUE)
30 
31  {
32 
33  // fPndHoughUtilities = new PndHoughUtilities(data);
34  // fPndHoughTransformation = new PndHoughTransformation(data);
35 
36  ioman = FairRootManager::Instance();
37  fMapFairLinktoFairHit = data->GetMapFairLinktoFairHit();
38  fMergedTracks.clear();
39  // fMergedTrackCands.clear();
40  fData = data;
41  };
std::map< FairLink, FairHit * > GetMapFairLinktoFairHit() const
Returns the map linking FairLinks to FairHits.
Definition: PndHoughData.h:90

◆ ~PndHoughMerge()

virtual PndHoughMerge::~PndHoughMerge ( )
inlinevirtual

Definition at line 43 of file PndHoughMerge.h.

43 { fMergedTracks.clear(); };

Member Function Documentation

◆ CalculateGhostReductionParameters()

void PndHoughMerge::CalculateGhostReductionParameters ( std::vector< double > &  trackcirc)

Calculates the ghost reduction parameters.

Referenced by SetTrackCorrection().

◆ CountHits()

void PndHoughMerge::CountHits ( )

Counts the number of hits of different detector parts for a specific track candidate.

Referenced by SetTrackCorrection().

◆ findMedian()

double PndHoughMerge::findMedian ( std::vector< double >  a)

Referenced by SetTrackCorrection().

◆ GetMergedTrack()

PndTrack PndHoughMerge::GetMergedTrack ( int  i)
inline

Returns a specific merged track.

Definition at line 66 of file PndHoughMerge.h.

References i.

Referenced by PndHoughTrackFinder::GetMergedTrack().

66 { return fMergedTracks[i]; };
unsigned int i
Definition: P4_F32vec4.h:21

◆ GetNumMergedTracks()

int PndHoughMerge::GetNumMergedTracks ( )
inline

Returns a specific merged track candidate.

Returns the number of merged track.

Definition at line 70 of file PndHoughMerge.h.

Referenced by PndHoughTrackFinder::GetNumMergedTracks().

70 { return fMergedTracks.size(); };

◆ IsGhost()

bool PndHoughMerge::IsGhost ( std::vector< double > &  trackcirc)

Determines whether the specified track is a ghost.

Referenced by SetTrackCorrection().

◆ mergeByHoughSpace()

void PndHoughMerge::mergeByHoughSpace ( std::vector< TVector3 > &  PreselectedCircles,
std::vector< PndTrackCand > &  TrackCands,
double  fBz 
)

All tracklets are determined that have to be merged.

Referenced by SetTrackCorrection().

◆ mergeSingle()

void PndHoughMerge::mergeSingle ( std::vector< std::vector< int >> &  mergeTracks,
std::vector< PndTrack > &  Tracks,
std::vector< PndTrackCand > &  TrackCands,
double  fBz 
)

Here all tracklets are merged.

Referenced by SetTrackCorrection().

◆ SetCutMergeByHoughSpace()

virtual void PndHoughMerge::SetCutMergeByHoughSpace ( float  cut)
inlinevirtual

Sets the value of the distance in the Hough space within two tracklets have to be merged.

Definition at line 45 of file PndHoughMerge.h.

References cut.

45 { fCutMergeByHoughSpace = cut; };

◆ SetTrackCorrection()

virtual void PndHoughMerge::SetTrackCorrection ( PndHoughTrackCorrection correction)
inlinevirtual

Definition at line 51 of file PndHoughMerge.h.

References CalculateGhostReductionParameters(), CountHits(), findMedian(), IsGhost(), mergeByHoughSpace(), and mergeSingle().

51 { fPndHoughTrackCorrection = correction; };

◆ SetUtilities()

virtual void PndHoughMerge::SetUtilities ( PndHoughUtilities utilities)
inlinevirtual

Definition at line 49 of file PndHoughMerge.h.

49 { fPndHoughUtilities = utilities; }

◆ SetWithGhostReduction()

virtual void PndHoughMerge::SetWithGhostReduction ( bool  ghostred)
inlinevirtual

Sets a bool for deciding to use a ghost reduction.

Definition at line 47 of file PndHoughMerge.h.

47 { fWithGhostReduction = ghostred; }

◆ UpdateMergedTrack()

void PndHoughMerge::UpdateMergedTrack ( int  i,
PndTrack track 
)
inline

Returns the number of merged track candidates.

Definition at line 73 of file PndHoughMerge.h.

References i.

73 { fMergedTracks[i] = track; };
unsigned int i
Definition: P4_F32vec4.h:21

The documentation for this class was generated from the following file: