PandaRoot
PndHoughData Class Reference

#include <PndHoughData.h>

Public Member Functions

 PndHoughData (TClonesArray *fTubeArray)
 
virtual ~PndHoughData ()
 
void AddHits (TClonesArray *hits, TString branchName)
 Adds hits to the used data structure for faster access. Data are stored in different maps. More...
 
void AddHit (FairLink link)
 Adds a sigle hit to the used data structure for faster access. Data are stored in different maps. More...
 
void CreateGEMNeighborhoodData ()
 For all GEM hits all other GEM hits in a certain distance (hier 1.5 cm) are counted and stored as neighbors of the GEM hit. More...
 
void CreateSTTNeighborhoodData ()
 For all STT hits all other STT neighbors are counted and stored in a map. More...
 
void Init (int NBins1=450, int NBins2=450)
 Initializes the Hough space. More...
 
void clear ()
 Clears all data maps. More...
 
std::vector< FairHit * > GetHits () const
 Returns a vector of all hits in the event. More...
 
std::vector< FairLink > GetLinks () const
 Returns a vector of all FairLinks in the event. More...
 
PndSttGeometryMapGetGeometryMap () const
 Returns the geometry map for a fast access. More...
 
PndSttStrawMapGetStrawMap () const
 Returns the straw map for a fast access. More...
 
std::map< FairLink, FairHit * > GetMapFairLinktoFairHit () const
 Returns the map linking FairLinks to FairHits. More...
 
std::map< FairLink, Double_t > GetMapFairLinktoIsochrone () const
 Returns the map linking FairLinks to isochrone radii. More...
 
std::map< FairLink, Double_t > GetMapFairLinktoIsochroneError () const
 Returns the map linking FairLinks to isochrone radius errors. More...
 
std::map< FairLink, Int_t > GetMapFairLinktoTubeId () const
 Returns the map linking FairLinks to corresponding tubeId. More...
 
std::map< int, FairHit * > GetMapTubetoHit () const
 Returns the map linking a tube to a FairHit. More...
 
std::vector< int > GetHittedTubes ()
 Returns a vector of all hitted tubes. More...
 
std::vector< FairLink > GetGEMNeighbors (FairLink link)
 Returns a vector of all GEM hits in a distance d < 1.5 cm from a certain GEM hit. More...
 
int GetNumOfGEMNeighbors (FairLink link)
 Returns the number of GEM hits in a distance d < 1.5 cm. More...
 
double GetNumOfSTTNeighbors (FairLink link)
 Returns the number of neighbored STT hits. The return value is a double (not a int) to avoid a necessary type cast in the ghost reduction functon. More...
 
PndHoughSpaceGetHoughSpace ()
 Returns the Hough space. More...
 

Detailed Description

PndHoughData

Author
Anna Alicke a.ali.nosp@m.cke@.nosp@m.fz-ju.nosp@m.elic.nosp@m.h.de
Since
29.10.2018 02.02.2021
Version
3.0

PANDA class for fast access to STT data Task level RECO

Definition at line 31 of file PndHoughData.h.

Constructor & Destructor Documentation

◆ PndHoughData()

PndHoughData::PndHoughData ( TClonesArray *  fTubeArray)

◆ ~PndHoughData()

virtual PndHoughData::~PndHoughData ( )
inlinevirtual

Definition at line 36 of file PndHoughData.h.

References AddHit(), AddHits(), CreateGEMNeighborhoodData(), CreateSTTNeighborhoodData(), and i.

37  {
38  delete fGeometryMap;
39  delete fPndHoughSpace;
40  for (size_t i = 0; i < fHits.size(); ++i)
41  delete fHits.at(i);
42  }
unsigned int i
Definition: P4_F32vec4.h:21

Member Function Documentation

◆ AddHit()

void PndHoughData::AddHit ( FairLink  link)

Adds a sigle hit to the used data structure for faster access. Data are stored in different maps.

Referenced by ~PndHoughData().

◆ AddHits()

void PndHoughData::AddHits ( TClonesArray *  hits,
TString  branchName 
)

Adds hits to the used data structure for faster access. Data are stored in different maps.

Referenced by ~PndHoughData().

◆ clear()

void PndHoughData::clear ( void  )
inline

Clears all data maps.

Definition at line 62 of file PndHoughData.h.

References PndHoughSpace::clear().

Referenced by PndHoughTrackFinder::Reset().

63  {
64  fHits.clear();
65  fLinks.clear();
66  fSTTLinks.clear();
67  fGEMLinks.clear();
68  fhittedTubes.clear();
69 
70  fMapFairLinktoFairHit.clear();
71  fMapFairLinktoIsochrone.clear();
72  fMapFairLinktoIsochroneError.clear();
73  fMapFairLinktoTubeId.clear();
74  fMapTubetoHit.clear();
75 
76  fGEMNeighbors.clear();
77  fMapNumberhittedSTTNeighbors.clear();
78 
79  fPndHoughSpace->clear();
80  }
void clear()
Clears the Hough space.
Definition: PndHoughSpace.h:49

◆ CreateGEMNeighborhoodData()

void PndHoughData::CreateGEMNeighborhoodData ( )

For all GEM hits all other GEM hits in a certain distance (hier 1.5 cm) are counted and stored as neighbors of the GEM hit.

Referenced by PndHoughTrackFinder::CreateNeighborhood(), and ~PndHoughData().

◆ CreateSTTNeighborhoodData()

void PndHoughData::CreateSTTNeighborhoodData ( )

For all STT hits all other STT neighbors are counted and stored in a map.

Referenced by PndHoughTrackFinder::CreateNeighborhood(), and ~PndHoughData().

◆ GetGEMNeighbors()

std::vector<FairLink> PndHoughData::GetGEMNeighbors ( FairLink  link)
inline

Returns a vector of all GEM hits in a distance d < 1.5 cm from a certain GEM hit.

Definition at line 102 of file PndHoughData.h.

102 { return fGEMNeighbors[link]; };

◆ GetGeometryMap()

PndSttGeometryMap* PndHoughData::GetGeometryMap ( ) const
inline

Returns the geometry map for a fast access.

Definition at line 86 of file PndHoughData.h.

86 { return fGeometryMap; }

◆ GetHits()

std::vector<FairHit *> PndHoughData::GetHits ( ) const
inline

Returns a vector of all hits in the event.

Definition at line 82 of file PndHoughData.h.

82 { return fHits; }

◆ GetHittedTubes()

std::vector<int> PndHoughData::GetHittedTubes ( )
inline

Returns a vector of all hitted tubes.

Definition at line 100 of file PndHoughData.h.

100 { return fhittedTubes; };

◆ GetHoughSpace()

PndHoughSpace* PndHoughData::GetHoughSpace ( )
inline

Returns the Hough space.

Definition at line 108 of file PndHoughData.h.

108 { return fPndHoughSpace; };

◆ GetLinks()

std::vector<FairLink> PndHoughData::GetLinks ( ) const
inline

Returns a vector of all FairLinks in the event.

Definition at line 84 of file PndHoughData.h.

84 { return fLinks; }

◆ GetMapFairLinktoFairHit()

std::map<FairLink, FairHit *> PndHoughData::GetMapFairLinktoFairHit ( ) const
inline

Returns the map linking FairLinks to FairHits.

Definition at line 90 of file PndHoughData.h.

Referenced by PndHoughTrackFinder::GetMapFairLinktoFairHit(), PndHoughMerge::PndHoughMerge(), and PndHoughTrackCorrection::PndHoughTrackCorrection().

90 { return fMapFairLinktoFairHit; }

◆ GetMapFairLinktoIsochrone()

std::map<FairLink, Double_t> PndHoughData::GetMapFairLinktoIsochrone ( ) const
inline

Returns the map linking FairLinks to isochrone radii.

Definition at line 92 of file PndHoughData.h.

Referenced by PndHoughTrackCorrection::PndHoughTrackCorrection().

92 { return fMapFairLinktoIsochrone; }

◆ GetMapFairLinktoIsochroneError()

std::map<FairLink, Double_t> PndHoughData::GetMapFairLinktoIsochroneError ( ) const
inline

Returns the map linking FairLinks to isochrone radius errors.

Definition at line 94 of file PndHoughData.h.

94 { return fMapFairLinktoIsochroneError; }

◆ GetMapFairLinktoTubeId()

std::map<FairLink, Int_t> PndHoughData::GetMapFairLinktoTubeId ( ) const
inline

Returns the map linking FairLinks to corresponding tubeId.

Definition at line 96 of file PndHoughData.h.

96 { return fMapFairLinktoTubeId; }

◆ GetMapTubetoHit()

std::map<int, FairHit *> PndHoughData::GetMapTubetoHit ( ) const
inline

Returns the map linking a tube to a FairHit.

Definition at line 98 of file PndHoughData.h.

98 { return fMapTubetoHit; }

◆ GetNumOfGEMNeighbors()

int PndHoughData::GetNumOfGEMNeighbors ( FairLink  link)
inline

Returns the number of GEM hits in a distance d < 1.5 cm.

Definition at line 104 of file PndHoughData.h.

104 { return fGEMNeighbors[link].size(); };

◆ GetNumOfSTTNeighbors()

double PndHoughData::GetNumOfSTTNeighbors ( FairLink  link)
inline

Returns the number of neighbored STT hits. The return value is a double (not a int) to avoid a necessary type cast in the ghost reduction functon.

Definition at line 106 of file PndHoughData.h.

106 { return fMapNumberhittedSTTNeighbors[link]; };

◆ GetStrawMap()

PndSttStrawMap* PndHoughData::GetStrawMap ( ) const
inline

Returns the straw map for a fast access.

Definition at line 88 of file PndHoughData.h.

88 { return fStrawMap; }

◆ Init()

void PndHoughData::Init ( int  NBins1 = 450,
int  NBins2 = 450 
)
inline

Initializes the Hough space.

Definition at line 53 of file PndHoughData.h.

References PndHoughSpace::Init(), PndHoughSpace::SetNBins1(), and PndHoughSpace::SetNBins2().

Referenced by PndHoughTrackFinder::Init().

54  {
55  fNbins1 = NBins1;
56  fNbins2 = NBins2;
57  fPndHoughSpace->SetNBins1(fNbins1);
58  fPndHoughSpace->SetNBins2(fNbins2);
59  fPndHoughSpace->Init();
60  }
void Init()
Initializes the Hough space.
virtual void SetNBins1(double n)
Sets the number of bins in x direction of the Hough space.
Definition: PndHoughSpace.h:35
virtual void SetNBins2(double n)
Sets the number of bins in y direction of the Hough space.
Definition: PndHoughSpace.h:37

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